Author serhiy.storchaka
Recipients ezio.melotti, michael.foord, serhiy.storchaka, vstinner
Date 2017-10-03.12:46:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507034767.15.0.213398074469.issue31676@psf.upfronthosting.co.za>
In-reply-to
Content
I have found a strange failure when run the bigmem tests.

0:20:19 load avg: 1.04 [116/407/1] test_cgitb
test test_cgitb failed -- Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_cgitb.py", line 23, in test_html
    raise ValueError("Hello World")
ValueError: Hello World

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/test/test_cgitb.py", line 27, in test_html
    html = cgitb.html(sys.exc_info())
  File "/home/serhiy/py/cpython/Lib/cgitb.py", line 117, in html
    records = inspect.getinnerframes(etb, context)
  File "/home/serhiy/py/cpython/Lib/inspect.py", line 1483, in getinnerframes
    frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)
  File "/home/serhiy/py/cpython/Lib/inspect.py", line 1445, in getframeinfo
    lines, lnum = findsource(frame)
  File "/home/serhiy/py/cpython/Lib/inspect.py", line 780, in findsource
    module = getmodule(object, file)
  File "/home/serhiy/py/cpython/Lib/inspect.py", line 739, in getmodule
    f = getabsfile(module)
  File "/home/serhiy/py/cpython/Lib/inspect.py", line 708, in getabsfile
    _filename = getsourcefile(object) or getfile(object)
  File "/home/serhiy/py/cpython/Lib/inspect.py", line 693, in getsourcefile
    if os.path.exists(filename):
  File "/home/serhiy/py/cpython/Lib/genericpath.py", line 19, in exists
    os.stat(path)
ValueError: embedded null byte

0:20:19 load avg: 1.04 [117/407/2] test_csv -- test_cgitb failed


It is not reproduced when run test_cgitb separately.
History
Date User Action Args
2017-10-03 12:46:07serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, ezio.melotti, michael.foord
2017-10-03 12:46:07serhiy.storchakasetmessageid: <1507034767.15.0.213398074469.issue31676@psf.upfronthosting.co.za>
2017-10-03 12:46:07serhiy.storchakalinkissue31676 messages
2017-10-03 12:46:06serhiy.storchakacreate