Bug 231348 - K3b crashes when I am canceling file adding dialog in the middle!
Summary: K3b crashes when I am canceling file adding dialog in the middle!
Status: RESOLVED FIXED
Alias: None
Product: k3b
Classification: Applications
Component: general (show other bugs)
Version: 1.90.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Michał Małek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-19 21:20 UTC by Avinandan Bhattacharyya
Modified: 2010-05-26 15:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 1.92.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Avinandan Bhattacharyya 2010-03-19 21:20:33 UTC
Application: k3b (1.90.0)
KDE Platform Version: 4.4.1 (KDE 4.4.1)
Qt Version: 4.6.2
Operating System: Linux 2.6.32-16-generic i686
Distribution: Ubuntu lucid (development branch)

-- Information about the crash:
In the K3b I was adding some song into a audio CD project, in the middle I had to close to prevent flood in the Audio CD project, then I pressed 'cencel' then the whole K3b program crashed :( 

Extra information with the bug report. 

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

Thread 5 (Thread 0xb4fedb70 (LWP 2327)):
#0  0x00b77422 in __kernel_vsyscall ()
#1  0x00470342 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x0232bc1e in thread_sleep (ti=0x1) at thread/qthread_unix.cpp:398
#3  0x0232bdc0 in QThread::sleep (secs=2) at thread/qthread_unix.cpp:412
#4  0x00c90609 in K3b::MediaCache::PollThread::run (this=0xa044580) at /build/buildd/k3b-1.90.0~rc1/libk3b/tools/k3bmediacache.cpp:106
#5  0x0232c32e in QThreadPrivate::start (arg=0xa044580) at thread/qthread_unix.cpp:248
#6  0x0046b96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0x0261192e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 4 (Thread 0xb47ecb70 (LWP 2328)):
#0  0x00b77422 in __kernel_vsyscall ()
#1  0x00470342 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x0232bc1e in thread_sleep (ti=0x1) at thread/qthread_unix.cpp:398
#3  0x0232bdc0 in QThread::sleep (secs=2) at thread/qthread_unix.cpp:412
#4  0x00c90609 in K3b::MediaCache::PollThread::run (this=0xa0470a0) at /build/buildd/k3b-1.90.0~rc1/libk3b/tools/k3bmediacache.cpp:106
#5  0x0232c32e in QThreadPrivate::start (arg=0xa0470a0) at thread/qthread_unix.cpp:248
#6  0x0046b96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#7  0x0261192e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 3 (Thread 0xb3ed7b70 (LWP 2352)):
#0  0x00b77422 in __kernel_vsyscall ()
#1  0x00470015 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/tls/i686/cmov/libpthread.so.0
#2  0x012319d7 in ?? () from /usr/lib/libQtWebKit.so.4
#3  0x01231a21 in ?? () from /usr/lib/libQtWebKit.so.4
#4  0x0046b96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#5  0x0261192e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread 0xb3112b70 (LWP 2436)):
[KCrash Handler]
#6  QMutex::lock (this=0xfffeff4e) at thread/qmutex.cpp:150
#7  0x0232be4e in QThreadPrivate::finish (arg=0xa643738) at thread/qthread_unix.cpp:270
#8  0x0232c336 in ~__pthread_cleanup_class (arg=0xa643738) at /usr/include/pthread.h:535
#9  QThreadPrivate::start (arg=0xa643738) at thread/qthread_unix.cpp:253
#10 0x0046b96e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#11 0x0261192e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 1 (Thread 0xb77aa760 (LWP 2296)):
#0  0x00b77422 in __kernel_vsyscall ()
#1  0x02603af6 in poll () from /lib/tls/i686/cmov/libc.so.6
#2  0x00bebd60 in ?? () from /usr/lib/libxcb.so.1
#3  0x00bec2cb in ?? () from /usr/lib/libxcb.so.1
#4  0x00bec667 in xcb_writev () from /usr/lib/libxcb.so.1
#5  0x0038ad79 in _XSend () from /usr/lib/libX11.so.6
#6  0x0035f7ec in ?? () from /usr/lib/libX11.so.6
#7  0x0035f898 in _XFlushGCCache () from /usr/lib/libX11.so.6
#8  0x0037c14f in XSetClipMask () from /usr/lib/libX11.so.6
#9  0x069e1e1b in x11ClearClipRegion (this=0xa4e3cb0, clipRegion=..., op=Qt::NoClip) at painting/qpaintengine_x11.cpp:188
#10 QX11PaintEngine::updateClipRegion_dev (this=0xa4e3cb0, clipRegion=..., op=Qt::NoClip) at painting/qpaintengine_x11.cpp:2051
#11 0x069e758c in QX11PaintEngine::updateState (this=0xa4e3cb0, state=...) at painting/qpaintengine_x11.cpp:1105
#12 0x06923574 in QPainterPrivate::updateStateImpl (this=0xaeea998, newState=0xa68beb0) at painting/qpainter.cpp:892
#13 0x0692363c in QPainterPrivate::updateState (this=0xaeea998, newState=0xa68beb0) at painting/qpainter.cpp:920
#14 0x06927527 in QPainter::save (this=0xbfa363bc) at painting/qpainter.cpp:1590
#15 0x036eb09a in ?? () from /usr/lib/kde4/plugins/styles/oxygen.so
#16 0x037235c8 in ?? () from /usr/lib/kde4/plugins/styles/oxygen.so
#17 0x0242dc7a in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x9d7d918, receiver=0xa0574a8, event=0xbfa36b94) at kernel/qcoreapplication.cpp:819
#18 0x067b84b9 in QApplicationPrivate::notify_helper (this=0x9d7d918, receiver=0xa0574a8, e=0xbfa36b94) at kernel/qapplication.cpp:4296
#19 0x067bf0f9 in QApplication::notify (this=0xbfa37c20, receiver=0xa0574a8, e=0xbfa36b94) at kernel/qapplication.cpp:4265
#20 0x099c4efa in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#21 0x0242e9db in QCoreApplication::notifyInternal (this=0xbfa37c20, receiver=0xa0574a8, event=0xbfa36b94) at kernel/qcoreapplication.cpp:704
#22 0x0681f966 in QCoreApplication::sendSpontaneousEvent (this=0xa05eb00, pdev=0xa105d5c, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0xa0e70a8)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#23 QWidgetPrivate::drawWidget (this=0xa05eb00, pdev=0xa105d5c, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0xa0e70a8) at kernel/qwidget.cpp:5339
#24 0x068207a5 in QWidgetPrivate::paintSiblingsRecursive (this=0x9f32d90, pdev=0xa105d5c, siblings=..., index=46, rgn=..., offset=..., flags=4, sharedPainter=0x0, backingStore=0xa0e70a8)
    at kernel/qwidget.cpp:5452
#25 0x0681f6b5 in QWidgetPrivate::drawWidget (this=0x9f32d90, pdev=0xa105d5c, rgn=..., offset=..., flags=<value optimized out>, sharedPainter=0x0, backingStore=0xa0e70a8) at kernel/qwidget.cpp:5388
#26 0x069f6720 in QWidgetBackingStore::sync (this=0xa0e70a8) at painting/qbackingstore.cpp:1291
#27 0x0680fb23 in QWidgetPrivate::syncBackingStore (this=0x9f32d90) at kernel/qwidget.cpp:1672
#28 0x06816e06 in QWidget::event (this=0xa067880, event=0xaf19ee8) at kernel/qwidget.cpp:8291
#29 0x06c31a07 in QMainWindow::event (this=0xa067880, event=0xaf19ee8) at widgets/qmainwindow.cpp:1433
#30 0x09ab6964 in KMainWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#31 0x09afe6df in KXmlGuiWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#32 0x067b84dc in QApplicationPrivate::notify_helper (this=0x9d7d918, receiver=0xa067880, e=0xaf19ee8) at kernel/qapplication.cpp:4300
#33 0x067bf0f9 in QApplication::notify (this=0xbfa37c20, receiver=0xa067880, e=0xaf19ee8) at kernel/qapplication.cpp:4265
#34 0x099c4efa in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#35 0x0242e9db in QCoreApplication::notifyInternal (this=0xbfa37c20, receiver=0xa067880, event=0xaf19ee8) at kernel/qcoreapplication.cpp:704
#36 0x02431413 in QCoreApplication::sendEvent (receiver=0x0, event_type=0, data=0x9d5cd20) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#37 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x9d5cd20) at kernel/qcoreapplication.cpp:1345
#38 0x0243157d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1238
#39 0x0245aa6f in QCoreApplication::sendPostedEvents (s=0x9d830c0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#40 postEventSourceDispatch (s=0x9d830c0) at kernel/qeventdispatcher_glib.cpp:276
#41 0x062ba395 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#42 0x062be088 in ?? () from /lib/libglib-2.0.so.0
#43 0x062be268 in g_main_context_iteration () from /lib/libglib-2.0.so.0
#44 0x0245a565 in QEventDispatcherGlib::processEvents (this=0x9d5c848, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#45 0x06877f65 in QGuiEventDispatcherGlib::processEvents (this=0x9d5c848, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#46 0x0242cff9 in QEventLoop::processEvents (this=0xbfa37b74, flags=) at kernel/qeventloop.cpp:149
#47 0x0242d44a in QEventLoop::exec (this=0xbfa37b74, flags=...) at kernel/qeventloop.cpp:201
#48 0x0243163f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:981
#49 0x067b8577 in QApplication::exec () at kernel/qapplication.cpp:3579
#50 0x0817ca94 in main (argc=1, argv=0xbfa37fe4) at /build/buildd/k3b-1.90.0~rc1/src/main.cpp:165

Possible duplicates by query: bug 228333, bug 206960.

Reported using DrKonqi
Comment 1 Michał Małek 2010-03-23 13:25:08 UTC
SVN commit 1106602 by mmalek:

Ensure AudioFileAnalyzer thread is finished after "Cancel" is pressed in AudioTrackAddingDialog
BUG: 231348

 M  +3 -2      libk3b/core/k3bthread.h  
 M  +6 -5      libk3b/core/k3bthreadjob.cpp  
 M  +4 -3      libk3b/core/k3bthreadjob.h  
 M  +2 -2      src/k3bapplication.cpp  
 M  +3 -2      src/projects/k3baudiotrackaddingdialog.cpp  
 M  +1 -1      src/projects/k3baudiotrackaddingdialog.h  


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