Bug 198015

Summary: k3b crashes while ripping to mp3, flac [QMetaCallEvent::placeMetaCall, K3bExternalEncoder::slotExternalProgramOutput]
Product: [Applications] k3b Reporter: Marcel <wittemar>
Component: generalAssignee: Sebastian Trueg <trueg>
Status: RESOLVED FIXED    
Severity: crash CC: btunell, bugzilla.kde, cfarrell1980, exquisiteirony, fabian, fresh.road1272, grimble00060, JMett-Horka, juanfco.ruiz, kde_bugs, kevin.kofler, killerfox512, liquidsky89, matthiasweimar, michalm, rdieter, robert.graf
Priority: NOR    
Version: 1.66.0   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Proposed patch

Description Marcel 2009-06-27 01:40:41 UTC
Application that crashed: k3b
Version of the application: 1.66.0
KDE Version: 4.2.90 (KDE 4.2.90 (KDE 4.3 Beta2)) "release 138"
Qt Version: 4.5.1
Operating System: Linux 2.6.27.23-0.1-default x86_64
Distribution: "openSUSE 11.1 (x86_64)"

What I was doing when the application crashed:
K3b is crashing while ripping from an audio-cd to mp3. I'm using KDE 4.3 from the Build-Service, k3b from packman on openSUSE 11.1

 -- Backtrace:
Application: K3b (k3b), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f237cce4750 (LWP 15311))]

Thread 3 (Thread 0x7f2364e28950 (LWP 15312)):
#0  0x00007f2372ff5662 in select () from /lib64/libc.so.6
#1  0x00007f237bfe49d6 in QProcessManager::run (this=0x80c870) at io/qprocess_unix.cpp:305
#2  0x00007f237bf1cf22 in QThreadPrivate::start (arg=0x80c870) at thread/qthread_unix.cpp:189
#3  0x00007f237bca9070 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f2372ffc10d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f2363e26950 (LWP 15973)):
#0  0x00007f2372fa7832 in memset () from /lib64/libc.so.6
#1  0x00007f2362ba991a in sgio_setup_scsi_cmd (d=<value optimized out>, cmdp=0x7f2363e254e0 "�", cmd_len=12, in_size=0, out_size=30576) at /usr/include/bits/string3.h:85
#2  0x00007f2362ba834a in generic_scsi_read (d=0x7f2363191010, p=0x369df50, begin=<value optimized out>, sectors=13, read_cmd=0xff <Address 0xff out of bounds>, len=131072, in_size=0, out_size=30576)
    at scsi_interface.c:836
#3  0x00007f2362ba8f95 in i_read_mmc2 (d=0x7f2363191010, p=0xff, begin=-1, sectors=287) at scsi_interface.c:889
#4  0x00007f2362bab3d4 in scsi_read_map (d=0x12c1100, p=0x369df50, begin=14980, sectors=13, map=0x7f2362ba8ef0 <i_read_mmc2>) at scsi_interface.c:943
#5  0x00007f2362ba7ba1 in cdda_read (d=0x12c1100, buffer=0x369df50, beginsector=-1, sectors=287) at interface.c:99
#6  0x00007f236299b62b in i_read_c_block (p=0xa51c40, beginword=<value optimized out>, endword=<value optimized out>, callback=0x7f237c5d2a60 <paranoiaCallback(long, int)>) at paranoia.c:1134
#7  0x00007f236299d15f in paranoia_read_limited (p=0xa51c40, callback=0x7f237c5d2a60 <paranoiaCallback(long, int)>, max_retries=5) at paranoia.c:1239
#8  0x00007f237c5d337b in K3b::CdparanoiaLibData::paranoiaRead(void (*)(long, int), int) () from /usr/lib64/libk3b.so.6
#9  0x00007f237c5d3481 in K3b::CdparanoiaLib::read(int*, unsigned int*, bool) () from /usr/lib64/libk3b.so.6
#10 0x00000000004e0341 in K3b::AudioRipJob::ripTrack(int, QString const&) ()
#11 0x00000000004e1317 in K3b::AudioRipJob::run() ()
#12 0x00007f237c5c4145 in K3b::Thread::run() () from /usr/lib64/libk3b.so.6
#13 0x00007f237bf1cf22 in QThreadPrivate::start (arg=0x9d1970) at thread/qthread_unix.cpp:189
#14 0x00007f237bca9070 in start_thread () from /lib64/libpthread.so.0
#15 0x00007f2372ffc10d in clone () from /lib64/libc.so.6
#16 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f237cce4750 (LWP 15311)):
[KCrash Handler]
#5  QMetaCallEvent::placeMetaCall (this=0x1212b00, object=0x0) at kernel/qobject.cpp:489
#6  0x00007f2365855718 in K3bExternalEncoder::slotExternalProgramOutput() () from /usr/lib64/kde4/k3bexternalencoder.so
#7  0x00007f2365855788 in K3bExternalEncoder::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib64/kde4/k3bexternalencoder.so
#8  0x00007f237c0162b8 in QObject::event (this=0xa776d0, e=0x128b8d0) at kernel/qobject.cpp:1118
#9  0x00007f237669278d in QApplicationPrivate::notify_helper (this=0x815c40, receiver=0xa776d0, e=0x128b8d0) at kernel/qapplication.cpp:4057
#10 0x00007f237669aa2a in QApplication::notify (this=0x7fff84d31360, receiver=0xa776d0, e=0x128b8d0) at kernel/qapplication.cpp:4022
#11 0x00007f237b43804b in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#12 0x00007f237c00615c in QCoreApplication::notifyInternal (this=0x7fff84d31360, receiver=0xa776d0, event=0x128b8d0) at kernel/qcoreapplication.cpp:610
#13 0x00007f237c006dda in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x7de6c0) at kernel/qcoreapplication.h:213
#14 0x00007f237c02fc13 in postEventSourceDispatch (s=<value optimized out>) at kernel/qcoreapplication.h:218
#15 0x00007f23728900fb in IA__g_main_context_dispatch (context=0x80b520) at gmain.c:2144
#16 0x00007f23728938cd in g_main_context_iterate (context=0x80b520, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2778
#17 0x00007f2372893a8b in IA__g_main_context_iteration (context=0x80b520, may_block=1) at gmain.c:2841
#18 0x00007f237c02f89f in QEventDispatcherGlib::processEvents (this=0x7de2e0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:324
#19 0x00007f2376729b0f in QGuiEventDispatcherGlib::processEvents (this=0x1212b00, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#20 0x00007f237c0049f2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -2066564832}) at kernel/qeventloop.cpp:149
#21 0x00007f237c004dbd in QEventLoop::exec (this=0x7fff84d2b960, flags={i = -2066564736}) at kernel/qeventloop.cpp:200
#22 0x00007f2376b375fe in QDialog::exec (this=0x7fff84d2bba0) at dialogs/qdialog.cpp:498
#23 0x00000000005306ba in K3b::JobProgressDialog::startJob(K3b::Job*) ()
#24 0x00000000004e5af1 in K3b::AudioRippingDialog::slotStartClicked() ()
#25 0x000000000053ce75 in K3b::InteractionDialog::slotStartClickedInternal() ()
#26 0x000000000053d672 in K3b::InteractionDialog::qt_metacall(QMetaObject::Call, int, void**) ()
#27 0x00000000004e773d in K3b::AudioRippingDialog::qt_metacall(QMetaObject::Call, int, void**) ()
#28 0x00007f237c01bc22 in QMetaObject::activate (sender=0xa898f0, from_signal_index=<value optimized out>, to_signal_index=30, argv=0x28e) at kernel/qobject.cpp:3120
#29 0x00007f2376cc09f7 in QAbstractButton::clicked (this=0x1212b00, _t1=false) at .moc/release-shared/moc_qabstractbutton.cpp:200
#30 0x00007f2376a1c0cb in QAbstractButtonPrivate::emitClicked (this=0xccc830) at widgets/qabstractbutton.cpp:543
#31 0x00007f2376a1dcf2 in QAbstractButtonPrivate::click (this=0xccc830) at widgets/qabstractbutton.cpp:536
#32 0x00007f2376a1df45 in QAbstractButton::mouseReleaseEvent (this=0xa898f0, e=0x7fff84d2ca80) at widgets/qabstractbutton.cpp:1115
#33 0x00007f23766e37ed in QWidget::event (this=0xa898f0, event=0x7fff84d2ca80) at kernel/qwidget.cpp:7521
#34 0x00007f237669278d in QApplicationPrivate::notify_helper (this=0x815c40, receiver=0xa898f0, e=0x7fff84d2ca80) at kernel/qapplication.cpp:4057
#35 0x00007f237669b18a in QApplication::notify (this=<value optimized out>, receiver=0xa898f0, e=0x7fff84d2ca80) at kernel/qapplication.cpp:3759
#36 0x00007f237b43804b in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#37 0x00007f237c00615c in QCoreApplication::notifyInternal (this=0x7fff84d31360, receiver=0xa898f0, event=0x7fff84d2ca80) at kernel/qcoreapplication.cpp:610
#38 0x00007f237669a3d8 in QApplicationPrivate::sendMouseEvent (receiver=0xa898f0, event=0x7fff84d2ca80, alienWidget=0xa898f0, nativeWidget=0x7fff84d2e9a0, buttonDown=<value optimized out>, 
    lastMouseReceiver=@0x7f23770d0f30) at ../../src/corelib/kernel/qcoreapplication.h:216
#39 0x00007f2376704149 in QETWidget::translateMouseEvent (this=0x7fff84d2e9a0, event=<value optimized out>) at kernel/qapplication_x11.cpp:4446
#40 0x00007f23767031b5 in QApplication::x11ProcessEvent (this=0x7fff84d31360, event=0x7fff84d2e600) at kernel/qapplication_x11.cpp:3564
#41 0x00007f237672a384 in x11EventSourceDispatch (s=0x80c1a0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#42 0x00007f23728900fb in IA__g_main_context_dispatch (context=0x80b520) at gmain.c:2144
#43 0x00007f23728938cd in g_main_context_iterate (context=0x80b520, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2778
#44 0x00007f2372893a8b in IA__g_main_context_iteration (context=0x80b520, may_block=1) at gmain.c:2841
#45 0x00007f237c02f89f in QEventDispatcherGlib::processEvents (this=0x7de2e0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:324
#46 0x00007f2376729b0f in QGuiEventDispatcherGlib::processEvents (this=0x1212b00, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#47 0x00007f237c0049f2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -2066552592}) at kernel/qeventloop.cpp:149
#48 0x00007f237c004dbd in QEventLoop::exec (this=0x7fff84d2e930, flags={i = -2066552496}) at kernel/qeventloop.cpp:200
#49 0x00007f2376b375fe in QDialog::exec (this=0x7fff84d2e9a0) at dialogs/qdialog.cpp:498
#50 0x00000000004ec69e in K3b::AudioCdView::startRip() ()
#51 0x00000000004ec858 in K3b::AudioCdView::qt_metacall(QMetaObject::Call, int, void**) ()
#52 0x00007f237c01bc22 in QMetaObject::activate (sender=0xb7ef00, from_signal_index=<value optimized out>, to_signal_index=6, argv=0x28e) at kernel/qobject.cpp:3120
#53 0x00007f237668c777 in QAction::triggered (this=0x1212b00, _t1=false) at .moc/release-shared/moc_qaction.cpp:236
#54 0x00007f237668dbf0 in QAction::activate (this=0xb7ef00, event=<value optimized out>) at kernel/qaction.cpp:1160
#55 0x00007f2376a1dcaa in QAbstractButtonPrivate::click (this=0xb84740) at widgets/qabstractbutton.cpp:525
#56 0x00007f2376a1df45 in QAbstractButton::mouseReleaseEvent (this=0xb82e30, e=0x7fff84d2f420) at widgets/qabstractbutton.cpp:1115
#57 0x00007f2376aefd2a in QToolButton::mouseReleaseEvent (this=0x1212b00, e=0x0) at widgets/qtoolbutton.cpp:709
#58 0x00007f23766e37ed in QWidget::event (this=0xb82e30, event=0x7fff84d2f420) at kernel/qwidget.cpp:7521
#59 0x00007f237669278d in QApplicationPrivate::notify_helper (this=0x815c40, receiver=0xb82e30, e=0x7fff84d2f420) at kernel/qapplication.cpp:4057
#60 0x00007f237669b18a in QApplication::notify (this=<value optimized out>, receiver=0xb82e30, e=0x7fff84d2f420) at kernel/qapplication.cpp:3759
#61 0x00007f237b43804b in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#62 0x00007f237c00615c in QCoreApplication::notifyInternal (this=0x7fff84d31360, receiver=0xb82e30, event=0x7fff84d2f420) at kernel/qcoreapplication.cpp:610
#63 0x00007f237669a3d8 in QApplicationPrivate::sendMouseEvent (receiver=0xb82e30, event=0x7fff84d2f420, alienWidget=0xb82e30, nativeWidget=0x997970, buttonDown=<value optimized out>, 
    lastMouseReceiver=@0x7f23770d0f30) at ../../src/corelib/kernel/qcoreapplication.h:216
#64 0x00007f2376704149 in QETWidget::translateMouseEvent (this=0x997970, event=<value optimized out>) at kernel/qapplication_x11.cpp:4446
#65 0x00007f23767031b5 in QApplication::x11ProcessEvent (this=0x7fff84d31360, event=0x7fff84d30fa0) at kernel/qapplication_x11.cpp:3564
#66 0x00007f237672a384 in x11EventSourceDispatch (s=0x80c1a0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#67 0x00007f23728900fb in IA__g_main_context_dispatch (context=0x80b520) at gmain.c:2144
#68 0x00007f23728938cd in g_main_context_iterate (context=0x80b520, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2778
#69 0x00007f2372893a8b in IA__g_main_context_iteration (context=0x80b520, may_block=1) at gmain.c:2841
#70 0x00007f237c02f89f in QEventDispatcherGlib::processEvents (this=0x7de2e0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:324
#71 0x00007f2376729b0f in QGuiEventDispatcherGlib::processEvents (this=0x1212b00, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#72 0x00007f237c0049f2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -2066541936}) at kernel/qeventloop.cpp:149
#73 0x00007f237c004dbd in QEventLoop::exec (this=0x7fff84d312d0, flags={i = -2066541856}) at kernel/qeventloop.cpp:200
#74 0x00007f237c0070a4 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#75 0x0000000000527737 in main ()

This bug may be a duplicate of or related to bug 182563

Reported using DrKonqi
Comment 1 Dario Andres 2009-06-29 19:11:56 UTC
*** Bug 198309 has been marked as a duplicate of this bug. ***
Comment 2 FiNeX 2009-07-05 11:40:34 UTC
*** Bug 198467 has been marked as a duplicate of this bug. ***
Comment 3 FiNeX 2009-07-05 11:40:43 UTC
*** Bug 198918 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2009-07-15 02:53:12 UTC
*** Bug 200256 has been marked as a duplicate of this bug. ***
Comment 5 Dario Andres 2009-07-26 21:36:18 UTC
*** Bug 201580 has been marked as a duplicate of this bug. ***
Comment 6 Dario Andres 2009-08-07 22:19:13 UTC
*** Bug 203008 has been marked as a duplicate of this bug. ***
Comment 7 Ramón Zarazúa 2009-08-29 03:04:14 UTC
Happens here as well, the problem seems to be with the OpenSuSE build. I was encoding to FLAC though
Comment 8 Ramón Zarazúa 2009-08-30 01:01:53 UTC
Reported to OpenSuSE Bugzilla:
https://bugzilla.novell.com/show_bug.cgi?id=535456
Comment 9 Ben Boeckel 2009-08-30 02:31:10 UTC
Why did you close this as invalid? The one I reported that's one of the duplicates is with Fedora. It's not just OpenSuSE. Bugzilla needs to have some way to get more information from the duplicate reports without having to click through each one. :/
Comment 10 Rex Dieter 2009-08-30 04:40:10 UTC
yeah, the justification for such is missing, reopening.

(feel free to revert when/if such information is provided).
Comment 11 Ramón Zarazúa 2009-08-30 19:48:34 UTC
Even if the application ripps the disc successfully. It still hangs at the very end, getting stuck on 99%

after attaching gdb, and interrupting on intervals, it seems to be stuck on K3bExternalEncoder::slotExternalProgramOutput() with the following backtrace:

Thread 2 (Thread 0x7f36edf81950 (LWP 7896)):
#0  0x00007f36fc034662 in select () from /lib64/libc.so.6
#1  0x00007f370500c1a6 in QProcessManager::run (this=0x80c980) at io/qprocess_unix.cpp:296
#2  0x00007f3704f43e65 in QThreadPrivate::start (arg=0x80c980) at thread/qthread_unix.cpp:188
#3  0x00007f3704cd0070 in start_thread () from /lib64/libpthread.so.0                        
#4  0x00007f36fc03b10d in clone () from /lib64/libc.so.6                                     
#5  0x0000000000000000 in ?? ()                                                              

Thread 1 (Thread 0x7f3705d0f750 (LWP 7895)):
#0  QProcess::canReadLine (this=0x13a4960) at ../../src/corelib/tools/qringbuffer_p.h:215
#1  0x00007f36ee9ae718 in K3bExternalEncoder::slotExternalProgramOutput() () from /usr/lib64/kde4/k3bexternalencoder.so
#2  0x00007f36ee9ae788 in K3bExternalEncoder::qt_metacall(QMetaObject::Call, int, void**) ()                           
   from /usr/lib64/kde4/k3bexternalencoder.so                                                                          
#3  0x00007f370503d8a8 in QObject::event (this=0x9c4b40, e=0x997d60) at kernel/qobject.cpp:1111                        
#4  0x00007f36ff6deb0d in QApplicationPrivate::notify_helper (this=0x80d210, receiver=0x9c4b40, e=0x997d60)            
    at kernel/qapplication.cpp:4056                                                                                    
#5  0x00007f36ff6e6d9a in QApplication::notify (this=0x7fffb5a83e60, receiver=0x9c4b40, e=0x997d60)                    
    at kernel/qapplication.cpp:4021                                                                                    
#6  0x00007f370445c71b in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5                     
#7  0x00007f370502d94c in QCoreApplication::notifyInternal (this=0x7fffb5a83e60, receiver=0x9c4b40, event=0x997d60)    
    at kernel/qcoreapplication.cpp:610                                                                                 
#8  0x00007f370502e5ca in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x7df170)        
    at kernel/qcoreapplication.h:213                                                                                   
#9  0x00007f37050570b3 in postEventSourceDispatch (s=<value optimized out>) at kernel/qcoreapplication.h:218           
#10 0x00007f36fb8cf0fb in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0                                                    
#11 0x00007f36fb8d28cd in ?? () from /usr/lib64/libglib-2.0.so.0                                                       
#12 0x00007f36fb8d2a8b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0                                 
#13 0x00007f3705056d3f in QEventDispatcherGlib::processEvents (this=0x7dedd0, flags=<value optimized out>)             
    at kernel/qeventdispatcher_glib.cpp:327                                                                            
#14 0x00007f36ff775fef in QGuiEventDispatcherGlib::processEvents (this=0x12e95a0, flags=<value optimized out>)         
    at kernel/qguieventdispatcher_glib.cpp:202                                                                         
#15 0x00007f370502c1d2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -1247288288})              
    at kernel/qeventloop.cpp:149                                                                                       
#16 0x00007f370502c5a4 in QEventLoop::exec (this=0x7fffb5a7e460, flags={i = -1247288192}) at kernel/qeventloop.cpp:201 
#17 0x00007f36ffb5875e in QDialog::exec (this=0x7fffb5a7e6a0) at dialogs/qdialog.cpp:498                               
#18 0x00000000005306ba in K3b::JobProgressDialog::startJob(K3b::Job*) ()                                               
#19 0x00000000004e5af1 in K3b::AudioRippingDialog::slotStartClicked() ()                                               
#20 0x000000000053ce75 in K3b::InteractionDialog::slotStartClickedInternal() ()                                        
#21 0x000000000053d672 in K3b::InteractionDialog::qt_metacall(QMetaObject::Call, int, void**) ()                       
#22 0x00000000004e773d in K3b::AudioRippingDialog::qt_metacall(QMetaObject::Call, int, void**) ()                      
#23 0x00007f37050426e2 in QMetaObject::activate (sender=0x11ec6a0, from_signal_index=<value optimized out>,            
    to_signal_index=30, argv=0x135) at kernel/qobject.cpp:3113                                                         
#24 0x00007f36ffce3287 in QAbstractButton::clicked (this=0x12e95a0, _t1=false)                                         
    at .moc/release-shared/moc_qabstractbutton.cpp:200                                                                 
#25 0x00007f36ffa3d58b in QAbstractButtonPrivate::emitClicked (this=0x12013e0) at widgets/qabstractbutton.cpp:543      
#26 0x00007f36ffa3f1b2 in QAbstractButtonPrivate::click (this=0x12013e0) at widgets/qabstractbutton.cpp:536            
#27 0x00007f36ffa3f405 in QAbstractButton::mouseReleaseEvent (this=0x11ec6a0, e=0x7fffb5a7f580)                        
    at widgets/qabstractbutton.cpp:1115                                                                                
#28 0x00007f36ff72faed in QWidget::event (this=0x11ec6a0, event=0x7fffb5a7f580) at kernel/qwidget.cpp:7549             
#29 0x00007f36ff6deb0d in QApplicationPrivate::notify_helper (this=0x80d210, receiver=0x11ec6a0, e=0x7fffb5a7f580)     
    at kernel/qapplication.cpp:4056                                            
#30 0x00007f36ff6e74fa in QApplication::notify (this=<value optimized out>, receiver=0x11ec6a0, e=0x7fffb5a7f580)      
    at kernel/qapplication.cpp:3758                                                                                    
#31 0x00007f370445c71b in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5                     
#32 0x00007f370502d94c in QCoreApplication::notifyInternal (this=0x7fffb5a83e60, receiver=0x11ec6a0, event=0x7fffb5a7f580)
    at kernel/qcoreapplication.cpp:610                                                                                    
#33 0x00007f36ff6e6748 in QApplicationPrivate::sendMouseEvent (receiver=0x11ec6a0, event=0x7fffb5a7f580,                  
    alienWidget=0x11ec6a0, nativeWidget=0x7fffb5a814a0, buttonDown=<value optimized out>, lastMouseReceiver=@0x7f37000f2f30)
    at ../../src/corelib/kernel/qcoreapplication.h:216                                                                      
#34 0x00007f36ff750509 in QETWidget::translateMouseEvent (this=0x7fffb5a814a0, event=<value optimized out>)                 
    at kernel/qapplication_x11.cpp:4407                                                                                     
#35 0x00007f36ff74f543 in QApplication::x11ProcessEvent (this=0x7fffb5a83e60, event=0x7fffb5a81100)                         
    at kernel/qapplication_x11.cpp:3548                                                                                     
#36 0x00007f36ff776864 in x11EventSourceDispatch (s=0x81acc0, callback=0, user_data=0x0)                                    
    at kernel/qguieventdispatcher_glib.cpp:146                                                                              
#37 0x00007f36fb8cf0fb in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0                                       
#38 0x00007f36fb8d28cd in ?? () from /usr/lib64/libglib-2.0.so.0                                                            
#39 0x00007f36fb8d2a8b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0                                      
#40 0x00007f3705056d3f in QEventDispatcherGlib::processEvents (this=0x7dedd0, flags=<value optimized out>)                  
    at kernel/qeventdispatcher_glib.cpp:327                                                                                 
#41 0x00007f36ff775fef in QGuiEventDispatcherGlib::processEvents (this=0x12e95a0, flags=<value optimized out>)              
    at kernel/qguieventdispatcher_glib.cpp:202                                                                              
#42 0x00007f370502c1d2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -1247276048})                   
    at kernel/qeventloop.cpp:149                                                                                            
#43 0x00007f370502c5a4 in QEventLoop::exec (this=0x7fffb5a81430, flags={i = -1247275952}) at kernel/qeventloop.cpp:201      
#44 0x00007f36ffb5875e in QDialog::exec (this=0x7fffb5a814a0) at dialogs/qdialog.cpp:498                                    
#45 0x00000000004ec69e in K3b::AudioCdView::startRip() ()                                                                           
#46 0x00000000004ec858 in K3b::AudioCdView::qt_metacall(QMetaObject::Call, int, void**) ()                                  
#47 0x00007f37050426e2 in QMetaObject::activate (sender=0xa710a0, from_signal_index=<value optimized out>,                  
    to_signal_index=6, argv=0x135) at kernel/qobject.cpp:3113                                                               
#48 0x00007f36ff6d8af7 in QAction::triggered (this=0x12e95a0, _t1=false) at .moc/release-shared/moc_qaction.cpp:236         
#49 0x00007f36ff6d9f70 in QAction::activate (this=0xa710a0, event=<value optimized out>) at kernel/qaction.cpp:1160         
#50 0x00007f36ffa3f16a in QAbstractButtonPrivate::click (this=0xa76450) at widgets/qabstractbutton.cpp:525                  
#51 0x00007f36ffa3f405 in QAbstractButton::mouseReleaseEvent (this=0xa72de0, e=0x7fffb5a81f20)                              
    at widgets/qabstractbutton.cpp:1115                                                                                     
#52 0x00007f36ffb10e7a in QToolButton::mouseReleaseEvent (this=0x12e95a0, e=0x0) at widgets/qtoolbutton.cpp:709             
#53 0x00007f36ff72faed in QWidget::event (this=0xa72de0, event=0x7fffb5a81f20) at kernel/qwidget.cpp:7549                   
#54 0x00007f36ff6deb0d in QApplicationPrivate::notify_helper (this=0x80d210, receiver=0xa72de0, e=0x7fffb5a81f20)           
    at kernel/qapplication.cpp:4056                                                                                         
#55 0x00007f36ff6e74fa in QApplication::notify (this=<value optimized out>, receiver=0xa72de0, e=0x7fffb5a81f20)            
    at kernel/qapplication.cpp:3758
#56 0x00007f370445c71b in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#57 0x00007f370502d94c in QCoreApplication::notifyInternal (this=0x7fffb5a83e60, receiver=0xa72de0, event=0x7fffb5a81f20)
    at kernel/qcoreapplication.cpp:610
#58 0x00007f36ff6e6748 in QApplicationPrivate::sendMouseEvent (receiver=0xa72de0, event=0x7fffb5a81f20,
    alienWidget=0xa72de0, nativeWidget=0x9aebf0, buttonDown=<value optimized out>, lastMouseReceiver=@0x7f37000f2f30)
    at ../../src/corelib/kernel/qcoreapplication.h:216
#59 0x00007f36ff750509 in QETWidget::translateMouseEvent (this=0x9aebf0, event=<value optimized out>)
    at kernel/qapplication_x11.cpp:4407
#60 0x00007f36ff74f543 in QApplication::x11ProcessEvent (this=0x7fffb5a83e60, event=0x7fffb5a83aa0)
    at kernel/qapplication_x11.cpp:3548
#61 0x00007f36ff776864 in x11EventSourceDispatch (s=0x81acc0, callback=0, user_data=0x0)
    at kernel/qguieventdispatcher_glib.cpp:146
#62 0x00007f36fb8cf0fb in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#63 0x00007f36fb8d28cd in ?? () from /usr/lib64/libglib-2.0.so.0
#64 0x00007f36fb8d2a8b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#65 0x00007f3705056d3f in QEventDispatcherGlib::processEvents (this=0x7dedd0, flags=<value optimized out>)
    at kernel/qeventdispatcher_glib.cpp:327
#66 0x00007f36ff775fef in QGuiEventDispatcherGlib::processEvents (this=0x12e95a0, flags=<value optimized out>)
    at kernel/qguieventdispatcher_glib.cpp:202
#67 0x00007f370502c1d2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -1247265392})
    at kernel/qeventloop.cpp:149
#68 0x00007f370502c5a4 in QEventLoop::exec (this=0x7fffb5a83dd0, flags={i = -1247265312}) at kernel/qeventloop.cpp:201
#69 0x00007f370502e894 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#70 0x0000000000527737 in main ()
Comment 12 Dario Andres 2009-09-05 20:51:49 UTC
*** Bug 206402 has been marked as a duplicate of this bug. ***
Comment 13 Kevin Kofler 2009-09-26 21:34:09 UTC
I agree with FiNeX, it's the same bug as for FLAC (bug 198467).

AFAICT, the fix is simple, there's an unsafe delete d->process; in K3bExternalEncoder::initExternalEncoder which can interfere with slot processing, changing that to if (d->process) d->process->deleteLater(); should fix this crash.
Comment 14 Kevin Kofler 2009-09-26 21:41:24 UTC
Created attachment 37189 [details]
Proposed patch

Can anybody please test the attached patch?
Comment 15 Dario Andres 2009-09-27 13:58:36 UTC
*** Bug 208667 has been marked as a duplicate of this bug. ***
Comment 16 Dario Andres 2009-10-02 01:05:52 UTC
*** Bug 209154 has been marked as a duplicate of this bug. ***
Comment 17 Michał Małek 2009-10-18 22:45:00 UTC
*** Bug 210988 has been marked as a duplicate of this bug. ***
Comment 18 Michał Małek 2009-10-24 12:13:17 UTC
@Kevin Kofler: I couldn't reproduce this issue but I agree, with your diagnose (and treatment, too). I will apply your patch.
@anyone who experienced this crash: feel free to reopen this bug if this will happen again.
Comment 19 Michał Małek 2009-10-24 12:16:03 UTC
SVN commit 1039678 by mmalek:

Fixed crash caused by a slot called on a deleted process object. Patch by Kevin Kofler, thanks!
BUG: 198015

 M  +4 -2      k3bexternalencoder.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1039678
Comment 20 Michał Małek 2009-10-24 20:54:42 UTC
*** Bug 198882 has been marked as a duplicate of this bug. ***
Comment 21 Jonathan Thomas 2009-11-15 20:27:54 UTC
*** Bug 214699 has been marked as a duplicate of this bug. ***
Comment 22 Dario Andres 2010-02-04 02:12:23 UTC
*** Bug 225394 has been marked as a duplicate of this bug. ***