python25 core dumps

David J Brooks freysman at comcast.net
Wed Nov 14 19:07:36 PST 2007


On Wednesday 14 November 2007 05:57:52 pm Heiko Wundram (Beenic) wrote:
> Am Mittwoch, 14. November 2007 23:15:36 schrieb David J Brooks:
> > Since upgrading to 7.0-BETA2 most of my python based programs fail with
> > Segmentation fault: 11 (core dumped). It seems to be limited to gui based
> > programs using Gtk or Qt. Any idea what's going on there? Hints on how to
> > analyze the python.core files would be helpful too.
>
> Easy way to get info from the backtrace:
>
> gdb /usr/local/bin/python <path to>/python.core
>
> Then, enter the "back" command in the post-mortem debugging session and
> post the output here. Someone (maybe even me) should be able to give you a
> hint where to look further from there.

Ok. Here's what gdb shows for a crash from Gramps (built with py-Gtk2):

(gdb) back
#0  0x29ea37fd in delete_aspell_speller () from /usr/local/lib/libaspell.so.16
#1  0x29e03b3d in gtkspell_set_language_internal () 
from /usr/local/lib/libgtkspell.so.0
#2  0x29e04084 in gtkspell_set_language () 
from /usr/local/lib/libgtkspell.so.0
#3  0x29af90ae in ?? () 
from /usr/local/lib/python2.5/site-packages/gtk-2.0/gtkspell.so
#4  0x29cdf180 in ?? ()
#5  0x29d28ff4 in ?? ()
#6  0x00000000 in ?? ()
#7  0xbfbf5218 in ?? ()
#8  0xbfbf5220 in ?? ()
#9  0x29d284cc in ?? ()
#10 0x29af9681 in ?? () 
from /usr/local/lib/python2.5/site-packages/gtk-2.0/gtkspell.so
#11 0x00000000 in ?? ()
#12 0x29d28ff4 in ?? ()
#13 0x28308080 in ?? ()
#14 0xbfbf53c8 in ?? ()
#15 0x080b131a in PyEval_EvalFrameEx ()
Previous frame identical to this frame (corrupt stack?)
(gdb)                        

For comparison, this is what a crash from eric4 (built with PyQt4) looks like:

(gdb) back
#0  0x29224448 in typeinfo name for sipQApplication ()
   from /usr/local/lib/python2.5/site-packages/PyQt4/QtGui.so
#1  0x29595531 in sm_performSaveYourself () from /usr/local/lib/libQtGui.so.4
#2  0x295956a1 in sm_saveYourselfCallback () from /usr/local/lib/libQtGui.so.4
#3  0x29aed10b in _SmcProcessMessage () from /usr/local/lib/libSM.so.6
#4  0x29afffa3 in IceProcessMessages () from /usr/local/lib/libICE.so.6
#5  0x2958f5c8 in QSmSocketReceiver::socketActivated () 
from /usr/local/lib/libQtGui.so.4
#6  0x2958f62f in QSmSocketReceiver::qt_metacall () 
from /usr/local/lib/libQtGui.so.4
#7  0x287bc15f in QMetaObject::activate () from /usr/local/lib/libQtCore.so.4
#8  0x287bc6d2 in QMetaObject::activate () from /usr/local/lib/libQtCore.so.4
#9  0x287d8b33 in QSocketNotifier::activated () 
from /usr/local/lib/libQtCore.so.4
#10 0x287c1e1f in QSocketNotifier::event () from /usr/local/lib/libQtCore.so.4
#11 0x295467bd in QApplicationPrivate::notify_helper () 
from /usr/local/lib/libQtGui.so.4
#12 0x2954c8fe in QApplication::notify () from /usr/local/lib/libQtGui.so.4
#13 0x291b4a13 in sipQApplication::notify () 
from /usr/local/lib/python2.5/site-packages/PyQt4/QtGui.so
#14 0x287ab07b in QCoreApplication::notifyInternal () 
from /usr/local/lib/libQtCore.so.4
#15 0x287ccaf3 in socketNotifierSourceDispatch () 
from /usr/local/lib/libQtCore.so.4
#16 0x28852886 in g_main_context_dispatch () 
from /usr/local/lib/libglib-2.0.so.0
#17 0x28855c02 in g_main_context_check () from /usr/local/lib/libglib-2.0.so.0
#18 0x28856185 in g_main_context_iteration () 
from /usr/local/lib/libglib-2.0.so.0
#19 0x287ccf78 in QEventDispatcherGlib::processEvents () 
from /usr/local/lib/libQtCore.so.4
#20 0x295bd965 in QGuiEventDispatcherGlib::processEvents () 
from /usr/local/lib/libQtGui.so.4
#21 0x287aac31 in QCoreApplication::processEvents () 
from /usr/local/lib/libQtCore.so.4
#22 0x28623966 in meth_QCoreApplication_processEvents ()
   from /usr/local/lib/python2.5/site-packages/PyQt4/QtCore.so
#23 0x080b131a in PyEval_EvalFrameEx ()
#24 0x080b1fab in PyEval_EvalFrameEx ()
#25 0x080b1fab in PyEval_EvalFrameEx ()
#26 0x080b2919 in PyEval_EvalCodeEx ()
#27 0x080b2a67 in PyEval_EvalCode ()
#28 0x080c9fc6 in Py_CompileString ()
#29 0x080ca070 in PyRun_FileExFlags ()
#30 0x080cb569 in PyRun_SimpleFileExFlags ()
#31 0x08056ef1 in Py_Main ()
#32 0x080563b5 in main ()
(gdb)

I tried tovidgui (build with Tkinter) and it did not crash.

David
-- 
Federal law prohibits deleting this message.


More information about the freebsd-questions mailing list