-
-
Notifications
You must be signed in to change notification settings - Fork 30.8k
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
Segmentation fault when using a subclassed sqlite3.Cursor on 3.11.x #99886
Labels
3.11
only security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-crash
A hard crash of the interpreter, possibly with a core dump
Comments
tipabu
added
the
type-crash
A hard crash of the interpreter, possibly with a core dump
label
Nov 29, 2022
erlend-aasland
added
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
and removed
topic-sqlite3
labels
Nov 29, 2022
cc. @markshannon |
I can repro the error on Python 3.11@head on Windows 11, and indeed not in 3.12. I am looking into this. |
Thanks, Ken. Ditto; I've reproduced on 3.11 on WSL and on macOS 12; not on |
Fidget-Spinner
added a commit
that referenced
this issue
Dec 4, 2022
…ries (#99902) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Can confirm #99902 addresses the issue -- thanks for the quick turnaround! |
Great! Thanks for reporting back. |
openstack-mirroring
pushed a commit
to openstack/swift
that referenced
this issue
Jul 4, 2023
Jammy only offers a py311 RC, so include the __slots__ hack to avoid the segfault from python/cpython#99886. Fix up a test to work with the slotted connection. Change-Id: I0e928bcb3810e391297300f4949024db3cf87d05
openstack-mirroring
pushed a commit
to openstack/openstack
that referenced
this issue
Jul 4, 2023
* Update swift from branch 'master' to 1b0d87179260a6b2dee4331d7b2840addc8aad35 - Merge "CI: test under py311" - CI: test under py311 Jammy only offers a py311 RC, so include the __slots__ hack to avoid the segfault from python/cpython#99886. Fix up a test to work with the slotted connection. Change-Id: I0e928bcb3810e391297300f4949024db3cf87d05
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.11
only security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-crash
A hard crash of the interpreter, possibly with a core dump
Crash report / Error messages
When using a custom
Cursor
object that sets attributes on itself as part of__init__
, segfaults occur when the cursor is GC'ed. For example, given arepro.py
likerunning
gdb -q -ex run -ex 'bt 40' -ex c --args python -X dev repro.py </dev/null
gives me output like(Note that line 14 is
del cur
)Your environment
v3.10.0
-- no crashv3.11.0
-- crashmain
branch -- no crash3.11
branch -- crashLinked PRs
The text was updated successfully, but these errors were encountered: