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
select.select() sleeps 200 ms, the process is supposed to get a signal every 100 ms, but the test says that the signal handler was not called during the test. All tests pass, the issue seems to be specific to macOS.
Maybe select() cannot be interrupted by SIGALRM on macOS?
Activity
vstinner commentedon Nov 26, 2018
test_sleep() of test_eintr fails on VSTS/macOS.
select.select() sleeps 200 ms, the process is supposed to get a signal every 100 ms, but the test says that the signal handler was not called during the test. All tests pass, the issue seems to be specific to macOS.
Maybe select() cannot be interrupted by SIGALRM on macOS?
https://dev.azure.com/Python/cpython/_build/results?buildId=34604&view=logs
2018-11-26T12:51:16.6867210Z FAIL: test_sleep (main.TimeEINTRTest)
2018-11-26T12:51:16.6868140Z ----------------------------------------------------------------------
2018-11-26T12:49:29.9119300Z os.uname: posix.uname_result(sysname='Darwin', nodename='Mac-329.local', release='17.7.0', version='Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64', machine='x86_64')
I added the check (which fails) last week, ensure that the signal handler has been called at least once:
pablogsal commentedon Nov 28, 2018
Some buildbots failing with this problem:
https://buildbot.python.org/all/#/builders/145/builds/849
pablogsal commentedon Nov 28, 2018
I will investigate with MacOS Mojave this week.
vstinner commentedon Nov 28, 2018
I'm unable to reproduce the issue using "./python.exe Lib/test/eintrdata/eintr_tester.py -v SelectEINTRTest.test_select" on macOS 10.13.6.
vstinner commentedon Nov 29, 2018
New changeset 2956bff by Victor Stinner in branch 'master':
bpo-35189, bpo-35316: Make test_eintr less strict (GH-10782)
2956bff
miss-islington commentedon Nov 29, 2018
New changeset 2fa5b2a by Miss Islington (bot) in branch '3.7':
bpo-35189, bpo-35316: Make test_eintr less strict (GH-10782)
2fa5b2a
miss-islington commentedon Nov 29, 2018
New changeset 833a706 by Miss Islington (bot) in branch '3.6':
bpo-35189, bpo-35316: Make test_eintr less strict (GH-10782)
833a706
vstinner commentedon Nov 29, 2018
Ok, so I leave the issue open.
vstinner commentedon Dec 5, 2018
I close the issue.
@pablo: You are free to continue to investigate why sometimes test_sleep() is not interrupted by any signal.
vstinner commentedon Dec 5, 2018
Note: I just fixed another test_eintr bug on macOS, bpo-35363.