➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 vstinner
收信人 martin.panter, ned.deily, neologix, pitrou, python-dev, vstinner
日期 2015-03-03.01:49:14
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1425347355.3.0.570071996512.issue23285@psf.upfronthosting.co.za>
In-reply-to
内容
Note: I found the bug while working on a patch for #22181.

My test is this shell script:

$ while true; do ./python -c 'import os, signal; signal.setitimer(signal.ITIMER_REAL, 0.001, 0.0001); signal.signal(signal.SIGALRM, lambda *args: print(".", end="")); print("urandom"); x=os.urandom(5000); print("ok"); signal.alarm(0)'; if [ $? -ne 142 -a $? -ne 0 ]; then break; fi done  

The test calls print() in a signal handler which can likely create a reentrant call, which is forbidden. But Python handles this case, it's fine.

After removing all debug prints and reverting the fix on fileio.c, the test doesn't crash with the assertion error anymore. Before, an assertion failed because fileio_write() returned Py_None with an exception set.
历史
日期 用户 动作 参数
2015-03-03 01:49:15vstinner修改recipients: + vstinner, pitrou, ned.deily, neologix, python-dev, martin.panter
2015-03-03 01:49:15vstinner修改messageid: <1425347355.3.0.570071996512.issue23285@psf.upfronthosting.co.za>
2015-03-03 01:49:15vstinner链接issue23285 messages
2015-03-03 01:49:14vstinner创建