-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
s390x RHEL7 got crash on the refleak test #102351
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
I will try to debug issue with QEMU.. |
Okay no way to setup through QEMU since I can not get the image of s390x RHEL image. |
And also @vstinner share useful approach for this issue: https://pythondev.readthedocs.io/debug_tools.html#debug-crash-in-garbage-collection-visit-decref |
I've reproduced it on a Mac and bisected to:
|
But I think it may be a red herring (when I touch stuff the crash goes away). Maybe we just need to bump the magic number. |
I suspect this PR needed the magic number bump: #101933 |
Bumping magic number didn't solve this: #102359. |
@iritkatriel, thanks for the heads-up, I'll have a look! |
@iritkatriel: what's your repro on macOS? I can't reproduce it (yet) on my M1 running Ventura 13.1. |
I was running running just a submodule of test_capi didn’t fail. I think something to do with module import/setup? |
When I debug the recount: -2459565876494606883 |
Ah it's because already freed. |
I think it might be the same issue as #102350. |
Ah for my case, it's still happening with the latest commit. |
Clean build? |
Yes with the clean-build. |
Yes, I just got the crash again with main too. Sorry about the noise. |
I think the problem comes from test_watcher_raises_error in Lib/test/test_capi/test_watchers.py. This test registers a dictionary watcher which raises an exception. That takes us to This only happens when I run it with I added |
Further debugging confirmed that the root cause of this issue is #102381. Fixing all code/func/dict dealloc callbacks to temporarily resurrect the object before calling the callback, and to not save references to the object in unraisablehook, makes this issue go away. |
For posterity: the specific repro here requiring |
Fixed in #102382 |
link: https://buildbot.python.org/all/#/builders/217/builds/1082/steps/5/logs/stdio
Linked PRs
The text was updated successfully, but these errors were encountered: