Bug 249941

Summary: crash - k3b when Rip Video DVD selected
Product: [Applications] k3b Reporter: jamundso
Component: generalAssignee: Michał Małek <michalm>
Status: RESOLVED FIXED    
Severity: crash CC: trueg
Priority: NOR    
Version: 2.0.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 2.0.2

Description jamundso 2010-09-02 21:42:06 UTC
Application: k3b (2.0.0)
KDE Platform Version: 4.4.5 (KDE 4.4.5)
Qt Version: 4.6.3
Operating System: Linux 2.6.34.6-47.fc13.x86_64 x86_64
Distribution: "Fedora release 13 (Goddard)"

-- Information about the crash:
Rip Video DVD selected while a video DVD is active on the left. Crashed after I select Rip off the menu.

 -- Backtrace:
Application: K3b (k3b), signal: Segmentation fault
82	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f3957567820 (LWP 3049))]

Thread 3 (Thread 0x7f3949837710 (LWP 3079)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:212
#1  0x0000003013670b15 in thread_sleep (ti=0x7f3949836cc0) at thread/qthread_unix.cpp:398
#2  0x0000003013670cc6 in QThread::sleep (secs=<value optimized out>) at thread/qthread_unix.cpp:412
#3  0x00000032188ac545 in K3b::MediaCache::PollThread::run (this=0x1186b40) at /usr/src/debug/k3b-2.0.0/libk3b/tools/k3bmediacache.cpp:106
#4  0x00000030136711a5 in QThreadPrivate::start (arg=0x1186b40) at thread/qthread_unix.cpp:248
#5  0x0000003009e07761 in start_thread (arg=0x7f3949837710) at pthread_create.c:301
#6  0x00000030092e14ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 2 (Thread 0x7f3948e36710 (LWP 3080)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:212
#1  0x0000003013670b15 in thread_sleep (ti=0x7f3948e35cc0) at thread/qthread_unix.cpp:398
#2  0x0000003013670cc6 in QThread::sleep (secs=<value optimized out>) at thread/qthread_unix.cpp:412
#3  0x00000032188ac545 in K3b::MediaCache::PollThread::run (this=0x1149ec0) at /usr/src/debug/k3b-2.0.0/libk3b/tools/k3bmediacache.cpp:106
#4  0x00000030136711a5 in QThreadPrivate::start (arg=0x1149ec0) at thread/qthread_unix.cpp:248
#5  0x0000003009e07761 in start_thread (arg=0x7f3948e36710) at pthread_create.c:301
#6  0x00000030092e14ed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

Thread 1 (Thread 0x7f3957567820 (LWP 3049)):
[KCrash Handler]
#5  0x000000301376739d in QObjectPrivate::clearGuards (object=<value optimized out>) at kernel/qobject.cpp:498
#6  0x0000003013768e3c in QObject::~QObject (this=0x1497520, __in_chrg=<value optimized out>) at kernel/qobject.cpp:853
#7  0x00000032188af2d9 in K3b::Process::~Process (this=0x1497520, __in_chrg=<value optimized out>) at /usr/src/debug/k3b-2.0.0/libk3b/tools/k3bprocess.cpp:119
#8  0x0000000000558ff0 in K3b::VideoDVDRippingPreview::generatePreview (this=0x130a270, dvd=..., title=1, chapter=0) at /usr/src/debug/k3b-2.0.0/src/rip/videodvd/k3bvideodvdrippingpreview.cpp:49
#9  0x000000000055c322 in K3b::VideoDVDTitleModel::setVideoDVD (this=0x1309ad0, dvd=<value optimized out>) at /usr/src/debug/k3b-2.0.0/src/rip/videodvd/k3bvideodvdtitlemodel.cpp:186
#10 0x000000000054bc20 in K3b::VideoDVDRippingView::reloadMedium (this=0x1304460) at /usr/src/debug/k3b-2.0.0/src/rip/videodvd/k3bvideodvdrippingview.cpp:220
#11 0x000000000050a718 in K3b::DirView::showMediumInfo (this=0x1277b10, medium=...) at /usr/src/debug/k3b-2.0.0/src/k3bdirview.cpp:193
#12 0x000000000050a92f in K3b::DirView::showDevice (this=0x1277b10, dev=0x1159b30) at /usr/src/debug/k3b-2.0.0/src/k3bdirview.cpp:167
#13 0x0000000000512f22 in K3b::MainWindow::videoDvdRip (this=0x1184c40, dev=0x1159b30) at /usr/src/debug/k3b-2.0.0/src/k3b.cpp:1603
#14 0x0000000000514ad6 in K3b::MainWindow::qt_metacall (this=0x1184c40, _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0x7fff6d931150)
    at /usr/src/debug/k3b-2.0.0/x86_64-redhat-linux-gnu/src/k3b.moc:185
#15 0x0000003013766a36 in QMetaObject::activate (sender=0x115ff00, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x7fff6d931150) at kernel/qobject.cpp:3295
#16 0x0000003213ba6422 in QAction::triggered (this=<value optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#17 0x0000003213ba7b5b in QAction::activate (this=0x115ff00, event=<value optimized out>) at kernel/qaction.cpp:1255
#18 0x0000003213fac9e9 in QMenuPrivate::activateCausedStack (this=0x13b2bb0, causedStack=..., action=0x115ff00, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1002
#19 0x0000003213fb1dda in QMenuPrivate::activateAction (this=0x13b2bb0, action=0x115ff00, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1094
#20 0x0000003214ad09fe in KMenu::mouseReleaseEvent (this=0x13c3bf0, e=<value optimized out>) at /usr/src/debug/kdelibs-4.4.5/kdeui/widgets/kmenu.cpp:471
#21 0x0000003213bf648a in QWidget::event (this=0x13c3bf0, event=0x7fff6d931da0) at kernel/qwidget.cpp:8044
#22 0x0000003213fb3ddb in QMenu::event (this=0x13c3bf0, e=0x7fff6d931da0) at widgets/qmenu.cpp:2421
#23 0x0000003213bab39c in QApplicationPrivate::notify_helper (this=0xee44e0, receiver=0x13c3bf0, e=0x7fff6d931da0) at kernel/qapplication.cpp:4306
#24 0x0000003213bb1e2d in QApplication::notify (this=<value optimized out>, receiver=0x13c3bf0, e=0x7fff6d931da0) at kernel/qapplication.cpp:3871
#25 0x0000003214a07016 in KApplication::notify (this=0x7fff6d932aa0, receiver=0x13c3bf0, event=0x7fff6d931da0) at /usr/src/debug/kdelibs-4.4.5/kdeui/kernel/kapplication.cpp:302
#26 0x0000003013753ddc in QCoreApplication::notifyInternal (this=0x7fff6d932aa0, receiver=0x13c3bf0, event=0x7fff6d931da0) at kernel/qcoreapplication.cpp:726
#27 0x0000003213bb101e in sendEvent (receiver=0x13c3bf0, event=0x7fff6d931da0, alienWidget=0x0, nativeWidget=0x13c3bf0, buttonDown=0x321462f088, lastMouseReceiver=..., spontaneous=true)
    at ../../src/corelib/kernel/qcoreapplication.h:215
#28 QApplicationPrivate::sendMouseEvent (receiver=0x13c3bf0, event=0x7fff6d931da0, alienWidget=0x0, nativeWidget=0x13c3bf0, buttonDown=0x321462f088, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:2971
#29 0x0000003213c235cd in QETWidget::translateMouseEvent (this=0x13c3bf0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4314
#30 0x0000003213c21acc in QApplication::x11ProcessEvent (this=0x7fff6d932aa0, event=0x7fff6d9326c0) at kernel/qapplication_x11.cpp:3513
#31 0x0000003213c4ab92 in x11EventSourceDispatch (s=0xedde90, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#32 0x000000300d63bd02 in g_main_dispatch (context=0xedd920) at gmain.c:1960
#33 IA__g_main_context_dispatch (context=0xedd920) at gmain.c:2513
#34 0x000000300d63fae8 in g_main_context_iterate (context=0xedd920, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2591
#35 0x000000300d63fc9c in IA__g_main_context_iteration (context=0xedd920, may_block=1) at gmain.c:2654
#36 0x0000003013779863 in QEventDispatcherGlib::processEvents (this=0xea8a60, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#37 0x0000003213c4a84e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#38 0x0000003013752822 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#39 0x0000003013752aec in QEventLoop::exec (this=0x7fff6d9329f0, flags=...) at kernel/qeventloop.cpp:201
#40 0x00000030137561bb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#41 0x0000000000516ce4 in main (argc=3, argv=0x7fff6d933678) at /usr/src/debug/k3b-2.0.0/src/main.cpp:151

Reported using DrKonqi
Comment 1 jamundso 2010-09-02 21:52:44 UTC
Dup'd. oops.

*** This bug has been marked as a duplicate of bug 246849 ***
Comment 2 Michał Małek 2010-09-04 23:03:50 UTC
SVN commit 1171692 by mmalek:

Fixed GPF: prevent double-delete by using QObject::deleteLater() on process object
BUG: 249941


 M  +1 -0      ChangeLog  
 M  +7 -6      src/rip/videodvd/k3bvideodvdrippingpreview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1171692
Comment 3 Michał Małek 2010-09-04 23:04:07 UTC
SVN commit 1171693 by mmalek:

Fixed GPF: prevent double-delete by using QObject::deleteLater() on process object
BUG: 249941

 M  +1 -0      ChangeLog  
 M  +10 -11    src/rip/videodvd/k3bvideodvdrippingpreview.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1171693