[issue25277] test_sigwaitinfo() of test_eintr hangs on randomly on FreeBSD buildbots

2017-05-10 Thread STINNER Victor
STINNER Victor added the comment: New changeset dab10f4f5b52c6de1aac3a8b5dc87d2eb0223a6c by Victor Stinner in branch '3.5': [3.5] bpo-30320, bpo-25277: backport test_eintr enhancements from master to 3.5 (#1532) https://github.com/python/cpython/commit/dab10f4f5b52c6de1aac3a8b5dc87d2eb0223a6c

[issue25277] test_sigwaitinfo() of test_eintr hangs on randomly on FreeBSD buildbots

2017-05-10 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1632 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue25277] test_sigwaitinfo() of test_eintr hangs on randomly on FreeBSD buildbots

2015-12-12 Thread Martin Panter
Martin Panter added the comment: Did you consider blocking the signal before spawning the child? I haven’t used signals much, so I could be wrong, but it seems sigwaitinfo() is meant to be called with the signal blocked. Something like this: pthread_sigmask(SIG_BLOCK, {signum}) try: t0 = .

[issue25277] test_sigwaitinfo() of test_eintr hangs on randomly on FreeBSD buildbots

2015-10-12 Thread STINNER Victor
STINNER Victor added the comment: I hope that 2 seconds should be enough to workaround the lack of real synchronization between the parent and the child process. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue25277] test_sigwaitinfo() of test_eintr hangs on randomly on FreeBSD buildbots

2015-10-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 605eda657884 by Victor Stinner in branch '3.5': Issue #25277: Use a longer sleep in test_eintr to reduce the risk of race https://hg.python.org/cpython/rev/605eda657884 -- ___ Python tracker

[issue25277] test_sigwaitinfo() of test_eintr hangs on randomly on FreeBSD buildbots

2015-10-09 Thread STINNER Victor
STINNER Victor added the comment: The bug was reproduced with faulthandler: FAIL: test_all (test.test_eintr.EINTRTests) Timeout (0:10:00)! Thread 0x000802006400 (most recent call first): File "/usr/home/buildbot/python/3.x.koobs-freebsd10/build/Lib/test/eintrdata/eintr_tester.py", line 4