[lxml-dev] [BUG] lxml-2* hangs on interpreter shutdown with gtk-mainloop
René 'Necoro' Neumann
lists at necoro.eu
Tue Mar 4 00:58:08 CET 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm developing a PyGTK-application that uses lxml to validate plugin-XMLs.
After upgrading to lxml-2*, I noticed, that my application is not shut
down correctly (i.e. I close the application, but it still runs in the
background).
After evaluating a little bit, I got the test case attached. This case
hangs at the end: Example output:
necoro at Devoty ~ % ./test.py
lxml.etree: (2, 0, 2, 0)
libxml used: (2, 6, 31)
libxml compiled: (2, 6, 31)
libxslt used: (1, 1, 22)
libxslt compiled: (1, 1, 22)
Destroy...
Destroyed
Now after the GTK-Main ... So the main has finished
Important notes:
- - it does not hang if I use etree.XML instead of etree.parse
- - it does not hang if gobject.threads_init() is not called
- - works with lxml-1.3.6
A quick glance with gdb:
(gdb) bt
#0 0xb7f97410 in __kernel_vsyscall ()
#1 0xb7e5248e in sem_wait () from /lib/libpthread.so.0
#2 0xb7f1ea38 in PyThread_acquire_lock () from /usr/lib/libpython2.5.so.1.0
(No further information as I don't have debug information in all my
libraries ;))
Would be great, if anyone has an idea or is able to fix it :)
Regards,
Necoro
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHzJCQ4UOg/zhYFuARAtqLAJ92Wc18PFIcQ/e1ppi7P27GNkAHAwCfeC58
l3/QshqSiSVfXlBWw9Jz9sc=
=Dj8o
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 745 bytes
Desc: not available
Url : http://codespeak.net/pipermail/lxml-dev/attachments/20080304/f89f5080/attachment.py
More information about the lxml-dev
mailing list