New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_eintr: test_open() hangs randomly on x86-64 El Capitan 3.x buildbot #79544
Comments
test_open() of test_eintr hangs randomly on x86-64 El Capitan 3.x buildbot. test_eintr failed but then passed when run again. pythoninfo: platform.platform: Darwin-15.6.0-x86_64-i386-64bit # macOS 10.11 (El Capitan) https://buildbot.python.org/all/#/builders/93/builds/1574 test_all (test.test_eintr.EINTRTests) ... FAIL ====================================================================== Traceback (most recent call last):
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/test/test_eintr.py", line 18, in test_all
script_helper.assert_python_ok("-u", tester)
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/test/support/script_helper.py", line 157, in assert_python_ok
return _assert_python(True, *args, **env_vars)
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/test/support/script_helper.py", line 143, in _assert_python
res.fail(cmd_line)
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/test/support/script_helper.py", line 70, in fail
raise AssertionError("Process return code is %d\n"
AssertionError: Process return code is 1
command line: ['/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/python.exe', '-X', 'faulthandler', '-I', '-u', '/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/test/eintrdata/eintr_tester.py'] stdout: --- stderr: ---------------------------------------------------------------------- Ran 1 test in 605.488s FAILED (failures=1) |
I'm unable to reproduce the bug on macOS 10.13.6 using: ./python.exe -m test -F test_eintr --timeout=60 I modified the test to display immediately result into stdout: diff --git a/Lib/test/test_eintr.py b/Lib/test/test_eintr.py
index 25f86d3..47b89d3 100644
--- a/Lib/test/test_eintr.py
+++ b/Lib/test/test_eintr.py
@@ -1,6 +1,8 @@
import os
+import sys
import signal
import unittest
+import subprocess
from test import support
from test.support import script_helper
@@ -15,7 +17,9 @@ class EINTRTests(unittest.TestCase):
# thread (for reliable signal delivery).
tester = support.findfile("eintr_tester.py", subdir="eintrdata")
# use -u to try to get the full output if the test hangs or crash
- script_helper.assert_python_ok("-u", tester)
+ proc = subprocess.run([sys.executable, "-u", tester, "-v"])
+ if proc.returncode:
+ self.fail("fail")
if __name__ == "__main__": |
I stopped my manual test after 71 iterations. |
Oh. That's just a variant of the old bpo-25234. |
Follow-up: bpo-35425, "test_eintr fails randomly on AMD64 FreeBSD 10-STABLE Non-Debug 3.7: TypeError: 'int' object is not callable". |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: