[Kdenlive-devel] Compiling KDEnlive with extra debug symbols?
Aleksander Adamowski
aleksander.adamowski at olo.org.pl
Sat Sep 5 14:19:37 UTC 2009
Hi!
I have a reproducible crash problem in KDEnlive (select a DV clip,
play it in clip monitor, pause, then select any other DV clip -
instant crash) and would like to debug it and possibly try to make a
patch.
I've compiled my MLT and KDEnlive from sources based on instructions
from http://www.kdenlive.org/user-manual/downloading-and-installing-kdenlive/installing-source.
However, gdb fails to show adequate debug information when I reproduce
the crash:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f40698ee950 (LWP 1740)]
0x00007f405bbc3610 in ?? ()
(gdb) where full
#0 0x00007f405bbc3610 in ?? ()
No symbol table info available.
#1 0x00007f407d211459 in start_thread (arg=<value optimized out>) at
pthread_create.c:154
pd = (struct pthread *) 0x7f40698ee950
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0,
7568800041745786965, 8392704, 0, 139915029954624, 139914953993728,
-7527462673437939627, -7527417358756206507}, mask_was_saved = 0}},
priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0,
canceltype = 0}}}
not_first_call = <value optimized out>
robust = <value optimized out>
#2 0x00007f407d70ffcd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
No locals.
#3 0x0000000000000000 in ?? ()
No symbol table info available.
(gdb) thread apply all bt
Thread 25 (Thread 0x7f40698ee950 (LWP 1740)):
#0 0x00007f405bbc3610 in ?? ()
#1 0x00007f407d211459 in start_thread (arg=<value optimized out>) at
pthread_create.c:154
#2 0x00007f407d70ffcd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#3 0x0000000000000000 in ?? ()
Thread 1 (Thread 0x7f4081a4b750 (LWP 1714)):
#0 0x00007f407d211c95 in pthread_join (threadid=139914625608016,
thread_return=0x0) at pthread_join.c:89
#1 0x00007f406f24b785 in consumer_stop (parent=<value optimized out>)
at consumer_sdl_preview.c:242
#2 0x00007f408165fbd2 in mlt_consumer_stop (this=0x7f405c00ed10) at
mlt_consumer.c:941
#3 0x00007f408143500e in Mlt::Consumer::stop () from
/usr/local/lib/libmlt++.so.2
#4 0x0000000000481cc3 in Render::setProducer (this=0x2de08e0,
producer=0x47c8030, position=-1) at
/home/olo/misc/soft/Graphics/KDEnlive/kde4/kdenlive/kdenlive/src/renderer.cpp:856
#5 0x00000000004784fa in Monitor::slotSetXml (this=0x2dcb5d0,
clip=0x3d2b030, position=-1) at
/home/olo/misc/soft/Graphics/KDEnlive/kde4/kdenlive/kdenlive/src/monitor.cpp:709
#6 0x000000000047ed71 in Monitor::qt_metacall (this=0x2dcb5d0,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>,
_a=0x7fff89a88aa0) at
/home/olo/misc/soft/Graphics/KDEnlive/kde4/kdenlive/kdenlive/build/src/cmake_bindir/monitor.moc:253
#7 0x00007f407f1481f2 in QMetaObject::activate (sender=0x297f820,
from_signal_index=<value optimized out>, to_signal_index=27,
argv=0xffffffffffffffff) at kernel/qobject.cpp:3069
#8 0x0000000000466d5d in ProjectList::clipSelected
(this=0x7f40698ee9e0, _t1=0x3d2b030) at
/home/olo/misc/soft/Graphics/KDEnlive/kde4/kdenlive/kdenlive/build/src/cmake_bindir/projectlist.moc:215
#9 0x000000000046dbaa in ProjectList::slotClipSelected
(this=0x297f820) at
/home/olo/misc/soft/Graphics/KDEnlive/kde4/kdenlive/kdenlive/src/projectlist.cpp:248
#10 0x00000000004716d0 in ProjectList::qt_metacall (this=0x297f820,
_c=QMetaObject::InvokeMetaMethod, _id=-512, _a=0x7fff89a88d10) at
/home/olo/misc/soft/Graphics/KDEnlive/kde4/kdenlive/kdenlive/build/src/cmake_bindir/projectlist.moc:192
#11 0x00007f407f1481f2 in QMetaObject::activate (sender=0x2aa22a0,
from_signal_index=<value optimized out>, to_signal_index=104,
argv=0xffffffffffffffff) at kernel/qobject.cpp:3069
#12 0x00007f407e8a7f20 in QTreeWidgetPrivate::_q_selectionChanged
(this=0x29e9d50, selected=<value optimized out>,
deselected=@0x7fff89a88fa0) at itemviews/qtreewidget.cpp:2303
#13 0x00007f407e8b2194 in QTreeWidget::qt_metacall (this=0x2aa22a0,
_c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>,
_a=0x7fff89a88f10) at .moc/release-shared/moc_qtreewidget.cpp:154
#14 0x00000000004b2daf in ProjectListView::qt_metacall
(this=0x7f40698ee9e0, _c=QMetaObject::InvokeMetaMethod, _id=1740,
_a=0xffffffffffffffff) at
/home/olo/misc/soft/Graphics/KDEnlive/kde4/kdenlive/kdenlive/build/src/cmake_bindir/projectlistview.moc:74
#15 0x00007f407f1481f2 in QMetaObject::activate (sender=0x2bd3750,
from_signal_index=<value optimized out>, to_signal_index=4,
argv=0xffffffffffffffff) at kernel/qobject.cpp:3069
#16 0x00007f407e8822b7 in QItemSelectionModel::selectionChanged
(this=0x7f40698ee9e0, _t1=<value optimized out>, _t2=<value optimized
out>) at .moc/release-shared/moc_qitemselectionmodel.cpp:146
#17 0x00007f407e88af02 in QItemSelectionModel::emitSelectionChanged
(this=0x2bd3750, newSelection=@0x0, oldSelection=@0x7fff89a89020) at
itemviews/qitemselectionmodel.cpp:1544
#18 0x00007f407e88b281 in QItemSelectionModel::select (this=0x2bd3750,
selection=<value optimized out>, command=<value optimized out>) at
itemviews/qitemselectionmodel.cpp:1055
#19 0x00007f407e870852 in QTreeViewPrivate::select (this=0x29e9d50,
topIndex=@0x0, bottomIndex=<value optimized out>, command={i =
-1985440176}) at itemviews/qtreeview.cpp:3612
#20 0x00007f407e8713e0 in QTreeView::setSelection (this=0x2aa22a0,
rect=<value optimized out>, command={i = -1985439840}) at
itemviews/qtreeview.cpp:2187
#21 0x00007f407e8374b7 in QAbstractItemView::mousePressEvent
(this=0x2aa22a0, event=<value optimized out>) at
itemviews/qabstractitemview.cpp:1512
#22 0x00007f407e36daa6 in QWidget::event (this=0x2aa22a0,
event=0x7fff89a8a480) at kernel/qwidget.cpp:7512
#23 0x00007f407e70740b in QFrame::event (this=0x2aa22a0,
e=0x7fff89a8a480) at widgets/qframe.cpp:559
#24 0x00007f407e83c2bd in QAbstractItemView::viewportEvent
(this=0x2aa22a0, event=0x7fff89a8a480) at
itemviews/qabstractitemview.cpp:1466
#25 0x00007f407e872ef0 in QTreeView::viewportEvent (this=0x2aa22a0,
event=0x7fff89a8a480) at itemviews/qtreeview.cpp:1257
#26 0x00007f407f131a68 in
QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value
optimized out>, receiver=0x2a63b30, event=0x7fff89a8a480) at
kernel/qcoreapplication.cpp:718
#27 0x00007f407e31c75c in QApplicationPrivate::notify_helper
(this=0x285f060, receiver=0x2a63b30, e=0x7fff89a8a480) at
kernel/qapplication.cpp:4080
#28 0x00007f407e3250da in QApplication::notify (this=<value optimized
out>, receiver=0x2a63b30, e=0x7fff89a8a480) at
kernel/qapplication.cpp:3786
#29 0x00007f4080dc726b in KApplication::notify (this=0x7fff89a8b380,
receiver=0x2a63b30, event=0x7fff89a8a480) at
/build/buildd/kde4libs-4.2.2/kdeui/kernel/kapplication.cpp:307
#30 0x00007f407f13275c in QCoreApplication::notifyInternal
(this=0x7fff89a8b380, receiver=0x2a63b30, event=0x7fff89a8a480) at
kernel/qcoreapplication.cpp:602
#31 0x00007f407e324328 in QApplicationPrivate::sendMouseEvent
(receiver=0x2a63b30, event=0x7fff89a8a480, alienWidget=0x2a63b30,
nativeWidget=0x29df540, buttonDown=<value optimized out>,
lastMouseReceiver=@0x7f407ed80eb0)
at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#32 0x00007f407e38de19 in QETWidget::translateMouseEvent
(this=0x29df540, event=<value optimized out>) at
kernel/qapplication_x11.cpp:4425
#33 0x00007f407e38ca88 in QApplication::x11ProcessEvent
(this=0x7fff89a8b380, event=0x7fff89a8afc0) at
kernel/qapplication_x11.cpp:3543
#34 0x00007f407e3b5464 in x11EventSourceDispatch (s=0x2862ce0,
callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#35 0x00007f407936820a in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
#36 0x00007f407936b8e0 in ?? () from /usr/lib/libglib-2.0.so.0
#37 0x00007f407936ba7c in g_main_context_iteration () from
/usr/lib/libglib-2.0.so.0
#38 0x00007f407f15be6f in QEventDispatcherGlib::processEvents
(this=0x284b740, flags=<value optimized out>) at
kernel/qeventdispatcher_glib.cpp:323
#39 0x00007f407e3b4bef in QGuiEventDispatcherGlib::processEvents
(this=0x7f40698ee9e0, flags=<value optimized out>) at
kernel/qguieventdispatcher_glib.cpp:202
#40 0x00007f407f131002 in QEventLoop::processEvents (this=<value
optimized out>, flags={i = -1985432912}) at kernel/qeventloop.cpp:149
#41 0x00007f407f1313cd in QEventLoop::exec (this=0x7fff89a8b2f0,
flags={i = -1985432832}) at kernel/qeventloop.cpp:200
#42 0x00007f407f133694 in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:880
#43 0x0000000000443565 in main (argc=2, argv=0x7fff89a8b8d8) at
/home/olo/misc/soft/Graphics/KDEnlive/kde4/kdenlive/kdenlive/src/main.cpp:86
Current language: auto; currently c
#0 0x00007f405bbc3610 in ?? ()
(gdb) info threads
* 25 Thread 0x7f40698ee950 (LWP 1740) 0x00007f405bbc3610 in ?? ()
1 Thread 0x7f4081a4b750 (LWP 1714) 0x00007f407d211c95 in
pthread_join (threadid=139914625608016, thread_return=0x0) at
pthread_join.c:89
(gdb) quit
The program is running. Exit anyway? (y or n) y
Am I missing something in the build procedure? I'm not very familiar
with cmake. Are there any additional compilation options that would
result in binaries with more debug information?
--
Best Regards,
Aleksander Adamowski
http://olo.org.pl
More information about the Kdenlive
mailing list