Sometimes there is a segfault also on exit. Here is the backtrace from gdb with python:
Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x00007ffff65ac6fe in ?? () from /usr/lib/pymodules/python2.6/PyQt4/QtGui.so
#2 0x00007ffff1c227f9 in ?? () from /usr/lib/pymodules/python2.6/sip.so
#3 0x000000000046d2d8 in ?? ()
#4 0x000000000044e577 in ?? ()
#5 0x0000000000450a77 in PyDict_SetItem ()
#6 0x000000000045297e in _PyModule_Clear ()
#7 0x00000000004bb5fa in PyImport_Cleanup ()
#8 0x00000000004c922f in Py_Finalize ()
#9 0x00000000004c88a3 in ?? ()
#10 0x00000000004c8e75 in ?? ()
#11 0x00000000004c9d30 in PyRun_SimpleFileExFlags ()
#12 0x000000000041a7ff in Py_Main ()
#13 0x00007ffff69d8c4d in __libc_start_main (main=<value optimized out>, argc=<value optimized out>,
ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>,
rtld_fini=<value optimized out>, stack_end=0x7fffffffda08) at libc-start.c:226
#14 0x00000000004199f9 in _start ()
Actually, sometimes #0 is different. Here is another backtrace from another exit:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff60d1190 in vtable for QPaintDevice () from /usr/lib/libQtGui.so.4
(gdb) bt
#0 0x00007ffff60d1190 in vtable for QPaintDevice () from /usr/lib/libQtGui.so.4
#1 0x00007ffff65ac6fe in ?? () from /usr/lib/pymodules/python2.6/PyQt4/QtGui.so
#2 0x00007ffff1c227f9 in ?? () from /usr/lib/pymodules/python2.6/sip.so
#3 0x000000000046d2d8 in ?? ()
#4 0x000000000044e577 in ?? ()
#5 0x0000000000450a77 in PyDict_SetItem ()
#6 0x000000000045297e in _PyModule_Clear ()
#7 0x00000000004bb5fa in PyImport_Cleanup ()
#8 0x00000000004c922f in Py_Finalize ()
#9 0x00000000004c88a3 in ?? ()
#10 0x00000000004c8e75 in ?? ()
#11 0x00000000004c9d30 in PyRun_SimpleFileExFlags ()
#12 0x000000000041a7ff in Py_Main ()
#13 0x00007ffff69d8c4d in __libc_start_main (main=<value optimized out>, argc=<value optimized out>,
ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>,
rtld_fini=<value optimized out>, stack_end=0x7fffffffda08) at libc-start.c:226
#14 0x00000000004199f9 in _start ()
Sometimes there is a segfault also on exit. Here is the backtrace from gdb with python:
Actually, sometimes #0 is different. Here is another backtrace from another exit: