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 erlendaasland
Recipients berker.peksag, erlendaasland, rhettinger, serhiy.storchaka
Date 2021-01-18.12:16:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610972196.33.0.954009353759.issue42862@roundup.psfhosted.org>
In-reply-to
Content
I need some help debugging the Windows issues. There are a handful of tests that fail because the sqlite3 is clinging on to objects or file descriptors. AFAICT, a GC bug. For example, test_open_uri fails with:

PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: [...]

I've tried the following, with no success:
- Remove GC from the Connection type
- Remove the clear method, and modify traverse to only visit Py_TYPE(self) (https://bugs.python.org/issue42866#msg384675)
- Add heap type GC (visit type, GC tracking) to all pysqlite types

Maybe it's best to reopen GH-24135 and continue the work with multi-phase init? That is finalise bpo-40956, add heap type GC (https://bugs.python.org/issue42866#msg384675), establish module state, implement multi-phase init, and then revisit this issue.
History
Date User Action Args
2021-01-18 12:16:36erlendaaslandsetrecipients: + erlendaasland, rhettinger, berker.peksag, serhiy.storchaka
2021-01-18 12:16:36erlendaaslandsetmessageid: <1610972196.33.0.954009353759.issue42862@roundup.psfhosted.org>
2021-01-18 12:16:36erlendaaslandlinkissue42862 messages
2021-01-18 12:16:36erlendaaslandcreate