Antoine Pitrou added the comment: The cause for Stefan's traceback looks quite clear:
Connection_createaggregatefunction() release the GIL (through the PYSQLITE_CON_CALL macro) before calling into sqlite3_create_function_v2, which itself calls the destructor for the old aggregate function, aka. apsw_free_func(), which calls Py_DECREF without re-acquiring the GIL. So apsw needs to sanitize its callbacks implementation here. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16035> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com