[PyKDE] pyqt/mysqld thread deadlock

Kaleb Pederson kibab at icehouse.net
Wed Jan 1 23:04:44 CET 2003


On Wednesday 01 January 2003 01:42 pm, Martin v. Löwis wrote:
> Kaleb Pederson wrote:
> > (gdb) thread 1
> > #0  0x4024b1be in select () from /lib/libc.so.6
>
> See the source of PyImport_ImportModuleEx. It acquires the import lock,
> so you are holding the import lock while QApplication_exec_loop is
> running. That means you deadlock.
>
> gem.src.gui.gui should not run the mainloop, but expose a function to
> run the mainloop, which the importer of gui should then invoke.
>
> Regards,
> Martin

It works beautifully!  Thank you for all the help.  It would have taken me a 
long time to figure that one out by myself.

--Kaleb





More information about the Python-list mailing list