bpo-40010: COMPUTE_EVAL_BREAKER() checks for subinterpreter#19087
Conversation
COMPUTE_EVAL_BREAKER() now also checks if the Python thread state belongs to the main interpreter. Don't break the evaluation loop if there are pending signals but the Python thread state it belongs to a subinterpeter. * Add _Py_IsMainThread() function. * Add _Py_ThreadCanHandleSignals() function.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot AMD64 RHEL8 3.x has failed when building commit d2a8e5b. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/89/builds/473 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Tests result: FAILURE then FAILURE == 406 tests OK. 10 slowest tests:
1 test failed: 13 tests skipped: 1 re-run test: Total duration: 11 min 14 sec Click to see traceback logsTraceback (most recent call last):
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-x86_64/build/Lib/test/test_smtplib.py", line 1117, in test_with_statement
code, message = smtp.noop()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-x86_64/build/Lib/smtplib.py", line 518, in noop
return self.docmd("noop")
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-x86_64/build/Lib/smtplib.py", line 425, in docmd
return self.getreply()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL8-x86_64/build/Lib/smtplib.py", line 398, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
smtplib.SMTPServerDisconnected: Connection unexpectedly closed
|
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot AMD64 Fedora Stable 3.x has failed when building commit d2a8e5b. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/41/builds/478 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Tests result: FAILURE then FAILURE == 406 tests OK. 10 slowest tests:
1 test failed: 13 tests skipped: 1 re-run test: Total duration: 11 min 27 sec Click to see traceback logsTraceback (most recent call last):
File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64/build/Lib/test/test_smtplib.py", line 1117, in test_with_statement
code, message = smtp.noop()
File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64/build/Lib/smtplib.py", line 518, in noop
return self.docmd("noop")
File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64/build/Lib/smtplib.py", line 425, in docmd
return self.getreply()
File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64/build/Lib/smtplib.py", line 398, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
smtplib.SMTPServerDisconnected: Connection unexpectedly closed
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64/build/Lib/test/test_smtplib.py", line 1127, in test_with_statement_QUIT_failure
smtp.noop()
File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64/build/Lib/smtplib.py", line 518, in noop
return self.docmd("noop")
File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64/build/Lib/smtplib.py", line 425, in docmd
return self.getreply()
File "/home/buildbot/buildarea/3.x.cstratak-fedora-stable-x86_64/build/Lib/smtplib.py", line 398, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
smtplib.SMTPServerDisconnected: Connection unexpectedly closed
|
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot AMD64 RHEL7 3.x has failed when building commit d2a8e5b. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/4/builds/510 Failed tests:
Failed subtests:
Summary of the results of the build (if available): == Tests result: FAILURE then FAILURE == 405 tests OK. 10 slowest tests:
1 test failed: 14 tests skipped: 1 re-run test: Total duration: 10 min 7 sec Click to see traceback logsTraceback (most recent call last):
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/test/test_smtplib.py", line 1117, in test_with_statement
code, message = smtp.noop()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/smtplib.py", line 518, in noop
return self.docmd("noop")
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/smtplib.py", line 425, in docmd
return self.getreply()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/smtplib.py", line 398, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
smtplib.SMTPServerDisconnected: Connection unexpectedly closed
Traceback (most recent call last):
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/test/test_smtplib.py", line 1127, in test_with_statement_QUIT_failure
smtp.noop()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/smtplib.py", line 518, in noop
return self.docmd("noop")
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/smtplib.py", line 425, in docmd
return self.getreply()
File "/home/buildbot/buildarea/3.x.cstratak-RHEL7-x86_64/build/Lib/smtplib.py", line 398, in getreply
raise SMTPServerDisconnected("Connection unexpectedly closed")
smtplib.SMTPServerDisconnected: Connection unexpectedly closed
|
Sorry, something went wrong.
COMPUTE_EVAL_BREAKER() now also checks if the Python thread state
belongs to the main interpreter. Don't break the evaluation loop if
there are pending signals but the Python thread state it belongs to a
subinterpeter.
https://bugs.python.org/issue40010