You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_eintr: test_open() hangs randomly on x86-64 El Capitan 3.x buildbot #79544
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_okreturn _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 failraiseAssertionError("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:
---
........ss.s.ss.Timeout (0:10:00)!
Thread 0x00007fff7c082000 (most recent call first):
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/test/eintrdata/eintr_tester.py", line 349 in python_open
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/test/eintrdata/eintr_tester.py", line 345 in _test_open
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/test/support/init.py", line 596 in wrapper
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/test/eintrdata/eintr_tester.py", line 353 in test_open
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/unittest/case.py", line 642 in run
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/unittest/case.py", line 702 in __call__
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/unittest/suite.py", line 122 in run
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/unittest/suite.py", line 84 in __call__
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/unittest/suite.py", line 122 in run
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/unittest/suite.py", line 84 in __call__
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/unittest/runner.py", line 176 in run
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/unittest/main.py", line 271 in runTests
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/unittest/main.py", line 101 in __init__
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/test/eintrdata/eintr_tester.py", line 527 in <module>
---
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__":
Activity
vstinner commentedon Nov 30, 2018
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
======================================================================
FAIL: test_all (test.test_eintr.EINTRTests)
----------------------------------------------------------------------
stdout:
---
---
stderr:
---
........ss.s.ss.Timeout (0:10:00)!
Thread 0x00007fff7c082000 (most recent call first):
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/test/eintrdata/eintr_tester.py", line 349 in python_open
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/test/eintrdata/eintr_tester.py", line 345 in _test_open
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/test/support/init.py", line 596 in wrapper
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/test/eintrdata/eintr_tester.py", line 353 in test_open
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/unittest/case.py", line 642 in run
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/unittest/case.py", line 702 in __call__
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/unittest/suite.py", line 122 in run
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/unittest/suite.py", line 84 in __call__
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/unittest/suite.py", line 122 in run
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/unittest/suite.py", line 84 in __call__
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/unittest/runner.py", line 176 in run
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/unittest/main.py", line 271 in runTests
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/unittest/main.py", line 101 in __init__
File "/Users/buildbot/buildarea/3.x.billenstein-elcapitan/build/Lib/test/eintrdata/eintr_tester.py", line 527 in <module>
---
----------------------------------------------------------------------
Ran 1 test in 605.488s
FAILED (failures=1)
Warning -- files was modified by test_eintr
Before: []
After: ['@test_57532_tmp']
test test_eintr failed
vstinner commentedon Nov 30, 2018
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:
vstinner commentedon Nov 30, 2018
I stopped my manual test after 71 iterations.
vstinner commentedon Dec 4, 2018
Oh. That's just a variant of the old bpo-25234.
vstinner commentedon Dec 4, 2018
New changeset 4752e65 by Victor Stinner in branch 'master':
bpo-35363, test_eintr: skip test_open() on macOS (GH-10896)
4752e65
vstinner commentedon Dec 5, 2018
New changeset 93d038c by Victor Stinner in branch '3.6':
bpo-35363, test_eintr: skip test_open() on macOS (GH-10896) (GH-10912)
93d038c
vstinner commentedon Dec 5, 2018
New changeset c93e3b0 by Victor Stinner in branch '3.7':
bpo-35363, test_eintr: skip test_open() on macOS (GH-10896) (GH-10911)
c93e3b0
vstinner commentedon Dec 5, 2018
New changeset aa8ae90 by Victor Stinner in branch 'master':
bpo-35363: test_eintr runs eintr_tester.py in verbose mode (GH-10965)
aa8ae90
miss-islington commentedon Dec 5, 2018
New changeset 0fc3b2f by Miss Islington (bot) in branch '3.7':
bpo-35363: test_eintr runs eintr_tester.py in verbose mode (GH-10965)
0fc3b2f
miss-islington commentedon Dec 5, 2018
New changeset 4699f2a by Miss Islington (bot) in branch '3.6':
bpo-35363: test_eintr runs eintr_tester.py in verbose mode (GH-10965)
4699f2a
vstinner commentedon Dec 6, 2018
New changeset 0644b33 by Victor Stinner in branch 'master':
bpo-35363: test_eintr uses print(flush=True) (GH-10990)
0644b33
miss-islington commentedon Dec 6, 2018
New changeset 560fa4d by Miss Islington (bot) in branch '3.7':
bpo-35363: test_eintr uses print(flush=True) (GH-10990)
560fa4d
miss-islington commentedon Dec 6, 2018
New changeset 3f0e8e2 by Miss Islington (bot) in branch '3.6':
bpo-35363: test_eintr uses print(flush=True) (GH-10990)
3f0e8e2
vstinner commentedon Dec 6, 2018
Follow-up: bpo-35425, "test_eintr fails randomly on AMD64 FreeBSD 10-STABLE Non-Debug 3.7: TypeError: 'int' object is not callable".