-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
[subinterpreters] crash in _elementtree when parsing in parallel #92123
Comments
#90619 is another Kodi crash, but the stack trace looks different. |
FTR, I am unable to reproduce on macOS (3.9 through 3.11), but I can reproduce on Debian 3.10 (though not on 3.11). |
Also interrupting the script with Ctrl+C sometimes produces a crash:
|
Just regarding the macOS reproducibility, it appears to be flakey, but if i increase the NTHREAD to 20, it segfaults reasonably regularly (~1 in 5). I was also able to repro with NTHREAD=8, but was less consistent (~1 in 10), whilst i was unable to repro using NTHREAD=4 My repro is using Python 3.11.1 on arm64 macOS. Built from source, no patches
Ive attached 2 x logs from crashes. Not sure if they are of any use. If there is something else i can provide, let me know and i'll try and wrangle it up. python3.11-2023-01-02-152005.ips.txt |
Heres a more complete crash generated from macos universal 3.11.1 installer. |
- add state pointer to TreeBuilderObject - add state pointer to XMLParserObject
I'll give it a run this weekend |
Looks to be good from my testing. Cant get it to crash with the repro anymore using commit fee7a99 |
Thanks, both of you! @kumaraditya303 IMO, we can close this now, or do you want to fix the pyexpat C API first? |
Yeah, lets close this now, will handle rest in specific issue. |
Crash report
I have Kodi crashing when certain add-ons are enabled. I traced the error to _elementtree and repurposed a script from #90228 to reproduce the bug. See bug.py.txt
Error messages
Your environment
python --with-pydebug 3.10.2
Linux 5.17.1-zen1-1-zen #1 ZEN SMP PREEMPT Mon, 28 Mar 2022 21:56:46 +0000 x86_64 GNU/Linux
Linked PRs
_elementtree
types to heap types #99221The text was updated successfully, but these errors were encountered: