This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Oren Milman
Recipients Oren Milman
Date 2017-10-11.19:09:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507748958.42.0.213398074469.issue31764@psf.upfronthosting.co.za>
In-reply-to
Content
The following code causes a crash:
import sqlite3
cursor = sqlite3.Cursor.__new__(sqlite3.Cursor)
cursor.close()

this is because pysqlite_cursor_close() (in Modules/_sqlite/cursor.c) assumes
that `self->connection` is not NULL, and passes it to pysqlite_check_thread(),
which crashes.


I would open a PR to fix this soon.
History
Date User Action Args
2017-10-11 19:09:18Oren Milmansetrecipients: + Oren Milman
2017-10-11 19:09:18Oren Milmansetmessageid: <1507748958.42.0.213398074469.issue31764@psf.upfronthosting.co.za>
2017-10-11 19:09:18Oren Milmanlinkissue31764 messages
2017-10-11 19:09:18Oren Milmancreate