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.

Author vstinner
Recipients martin.panter, ned.deily, neologix, pitrou, python-dev, vstinner
Date 2015-03-03.01:49:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2015-03-03 01:49:15vstinnersetrecipients: + vstinner, pitrou, ned.deily, neologix, python-dev, martin.panter
2015-03-03 01:49:15vstinnersetmessageid: <>
2015-03-03 01:49:15vstinnerlinkissue23285 messages
2015-03-03 01:49:14vstinnercreate