-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Segfault in gc while finalizing #135115
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
Comments
Python: Specifically The other crash was with a non-debug build of 3.13, slightly older build. |
I've uploaded core, cpython and venv tarballs |
Unfortunately, there's very little we can do without a repro. There's tons of ways to cause a crash during a garbage collection, many of which are due to misuse of the C API or |
ctypes were not used. c extensions are present, however these are relatively well-known: yaml, pydantic-core, wrapt. I would love to be able to investigate this further, or help someone else investigate this further. |
If there are extensions active, then there's a very real possibility this is a bug in one of those.
That would be good as a last resort. The test suite takes 10 hours, right? My favorite debugger for Python core files is PyStack, I suggest trying that on the core file and seeing which objects are causing the crash, and what the program was doing when it happened. That should give us a much better idea of where to look. |
Did you try to reproduce your issue with a debug build of Python? It's usually the |
Uh oh!
There was an error while loading. Please reload this page.
Crash report
What happened?
I believe I have been able to hit this twice by now, though the incidence is low: about 10 hours of running unit tests back-to-back yielded me one crash where a core dump was captured.
Setup: mostly pure python (with wrapt, cyaml and pydantic), with threads (opentelemetry-sdk helper thread) and some form of multi- or sub-processing (pytest-xdist).
Tracback:
gdb session:
https://gist.github.com/dimaqq/cd87dfdad4e0cc1d5832fa226e516ff0
Admittedly I'm a little rusty with gdb and a bit out of my depth when it comes to GC.
CPython versions tested on:
3.13
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
No response
The text was updated successfully, but these errors were encountered: