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
Race condition in test_python_to_cpp_to_python_from_process test on 3.9? #2391
Not sure what's going on, but this test failed again on 3.9, completely unrelated to the actual changes.
I don't know what that test is about, but I thought I'd log it.
Do we have a race condition? Does CPython 3.9 have a race condition?
__________________ test_python_to_cpp_to_python_from_process ___________________
def test_python_to_cpp_to_python_from_process():
"""Makes sure there is no GIL deadlock when using processes.
This test is for completion, but it was never an issue.
"""
> assert _run_in_process(_python_to_cpp_to_python) == 0
E assert -11 == 0
E + where -11 = _run_in_process(_python_to_cpp_to_python)
test_gil_scoped.py:81: AssertionError
Is this mostly macOS? I could add an xfail(env.MACOS and env.pyv >= 3.9, reason="Occasional failure, TBD", strict=False) here, to help with unrelated PRs, but a little worried that might cause us to overlook it until Python 3.9 is released and it's too late to fix it if it's on Python's end.
Running 3.9 macOS locally, the tests pass, but I get a segfault popup once in a while:
This is another one, though, it seems. This is described in #2558 and debugged (and hopefully soon resolved) in #2576. Doesn't seem to be related to the issue described here, though.
Activity
henryiii commentedon Aug 14, 2020
We also see a segfault here occasionally for Python 3.9:
EricCousineau-TRI commentedon Aug 14, 2020
Also in
test_python_to_cpp_to_python_from_thread_multiple_parallel:#2396 (comment)
henryiii commentedon Aug 19, 2020
Is this mostly macOS? I could add an
xfail(env.MACOS and env.pyv >= 3.9, reason="Occasional failure, TBD", strict=False)here, to help with unrelated PRs, but a little worried that might cause us to overlook it until Python 3.9 is released and it's too late to fix it if it's on Python's end.henryiii commentedon Aug 20, 2020
test_python_to_cpp_to_python_from_thread_multiple_sequentialtoo. Seems to always be macOS.YannickJadoul commentedon Sep 27, 2020
Anything on this? Is this still happening? If so, we should probably report this to Python before the final release is out.
YannickJadoul commentedon Oct 5, 2020
Another instantiation of this fluke?
EDIT: This is not, though. This is related to #2564
henryiii commentedon Oct 8, 2020
Running 3.9 macOS locally, the tests pass, but I get a segfault popup once in a while:
This happens when one of the XFails fails instead of XPasses.
YannickJadoul commentedon Oct 11, 2020
This is another one, though, it seems. This is described in #2558 and debugged (and hopefully soon resolved) in #2576. Doesn't seem to be related to the issue described here, though.
YannickJadoul commentedon Dec 30, 2020
More info in #2754