[Scribus] How do I help debug the segfaults?
Jeremy C. Reed
reed
Sun Oct 26 02:50:02 CET 2003
On Sat, 25 Oct 2003, Alex wrote:
> How can I help debug it? Is there a program I could run that could have
> scribus as its child process, so it could monitor all its system calls,
> etc. to help narrow down the problem when scribus segfaults? I'd be
> happy to use it and then send in bug reports based on its data.
Try using strace.
Or gdb. Here is a real example (because scribus often crashes on me too):
$ gdb `type -p scribus` /home/reed/company/labels/scribus.core
GNU gdb 5.0nb1
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386--netbsdelf"...(no debugging symbols found)...
Core was generated by `scribus'.
Program terminated with signal 11, Segmentation fault.
...
(gdb) bt
#0 0x81feff9 in ScribusApp::keyPressEvent ()
#1 0x4855a56b in QWidget::event () from /usr/pkg/qt3/lib/libqt-mt.so.3
#2 0x485f112f in QMainWindow::event () from /usr/pkg/qt3/lib/libqt-mt.so.3
#3 0x484d31a3 in QApplication::internalNotify ()
from /usr/pkg/qt3/lib/libqt-mt.so.3
#4 0x484d2b38 in QApplication::notify () from /usr/pkg/qt3/lib/libqt-mt.so.3
#5 0x48486480 in QETWidget::translateKeyEvent ()
from /usr/pkg/qt3/lib/libqt-mt.so.3
#6 0x48482e50 in QApplication::x11ProcessEvent ()
from /usr/pkg/qt3/lib/libqt-mt.so.3
#7 0x48494c53 in QEventLoop::processEvents ()
from /usr/pkg/qt3/lib/libqt-mt.so.3
#8 0x484e6faa in QEventLoop::enterLoop () from
/usr/pkg/qt3/lib/libqt-mt.so.3
#9 0x484e6f07 in QEventLoop::exec () from /usr/pkg/qt3/lib/libqt-mt.so.3
#10 0x484d32fa in QApplication::exec () from /usr/pkg/qt3/lib/libqt-mt.so.3
#11 0x822777c in main ()
#12 0x808f320 in ___start ()
Jeremy C. Reed
http://bsd.reedmedia.net/
More information about the scribus
mailing list