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 lobais
Recipients lobais
Date 2008-01-03.23:28:40
SpamBayes Score 0.0016519054
Marked as misclassified No
Message-id <1199402921.07.0.182156121035.issue1731@psf.upfronthosting.co.za>
In-reply-to
Content
I have a pygtk program, that uses a fairly lot of threads in a pool. All
of these threads are setDaemon to ensure the application shuts down when
I call gtk.main_quit()

About every second time I close the app, I get one or more errors from
places in the program where a thread seams to have woken up, and now
find all attributes None.

This time I even got a message relating til the GIL:

...
for errortype in (IOError, LogOnError, socket.error, EOFError):
exceptions.AttributeError 'NoneType' object has no attribute 'error'
python: Python/pystate.c:497: PyGILState_Ensure: Assertion (assertion)
'autoInterpreterState' failed.
Afbrudt (SIGABRT)

the socket reference simply comes from "import socket" in the beginning
of the module.

As the errors only occur during application shutdown, it has no
practical effect, but it confuses users to post tons of bug reports.
History
Date User Action Args
2008-01-03 23:28:41lobaissetspambayes_score: 0.00165191 -> 0.0016519054
recipients: + lobais
2008-01-03 23:28:41lobaissetspambayes_score: 0.00165191 -> 0.00165191
messageid: <1199402921.07.0.182156121035.issue1731@psf.upfronthosting.co.za>
2008-01-03 23:28:40lobaislinkissue1731 messages
2008-01-03 23:28:40lobaiscreate