Bug 196509 - K3B crashes when deleting a directory opened in K3B
Summary: K3B crashes when deleting a directory opened in K3B
Status: RESOLVED UNMAINTAINED
Alias: None
Product: k3b
Classification: Applications
Component: general (show other bugs)
Version: 1.66.0
Platform: Unlisted Binaries Linux
: NOR crash
Target Milestone: ---
Assignee: Sebastian Trueg
URL:
Keywords:
: 203257 208095 210227 218321 232237 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-06-14 18:19 UTC by Gregor Petrin
Modified: 2010-03-28 13:19 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
bt full log for crash from bug 196509 (15.53 KB, text/plain)
2009-06-15 10:07 UTC, Oliver Putz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gregor Petrin 2009-06-14 18:19:15 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 139"
Qt Version: 4.5.1
Operating System: Linux 2.6.27.23-0.1-pae i686
Distribution: "openSUSE 11.1 (i586)"

What I was doing when the application crashed:
I was able to reproduce the crash several times:

1) Open a directory in the K3B filesystem browser
2) Delete this directory from another program (Krusader in my case)

This causes K3B to immediately crash.



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

Thread 3 (Thread 0xb132fb90 (LWP 17587)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb7bdef62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb7c3e0f9 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb7c3e285 in QThread::sleep(unsigned long) () from /usr/lib/libQtCore.so.4
#4  0xb7efe771 in K3b::MediaCache::PollThread::run() () from /usr/lib/libk3b.so.6
#5  0xb7c3e70e in ?? () from /usr/lib/libQtCore.so.4
#6  0xb7bdb1b5 in start_thread () from /lib/libpthread.so.0
#7  0xb4c123be in clone () from /lib/libc.so.6

Thread 2 (Thread 0xb056eb90 (LWP 17637)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb7bdef62 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb7c3f6fc in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQtCore.so.4
#3  0xb7c34c26 in ?? () from /usr/lib/libQtCore.so.4
#4  0xb7c3e70e in ?? () from /usr/lib/libQtCore.so.4
#5  0xb7bdb1b5 in start_thread () from /lib/libpthread.so.0
#6  0xb4c123be in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb4714700 (LWP 17539)):
[KCrash Handler]
#6  0x078c0505 in ?? ()
#7  0xb7d2739a in QPersistentModelIndex::parent() const () from /usr/lib/libQtCore.so.4
#8  0xb65e4a11 in QItemSelectionModel::isSelected(QModelIndex const&) const () from /usr/lib/libQtGui.so.4
#9  0xb65cd7d5 in QTreeView::drawRow(QPainter*, QStyleOptionViewItem const&, QModelIndex const&) const () from /usr/lib/libQtGui.so.4
#10 0xb65d4d87 in QTreeView::drawTree(QPainter*, QRegion const&) const () from /usr/lib/libQtGui.so.4
#11 0xb65d5684 in QTreeView::paintEvent(QPaintEvent*) () from /usr/lib/libQtGui.so.4
#12 0xb60890fe in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#13 0xb6447c13 in QFrame::event(QEvent*) () from /usr/lib/libQtGui.so.4
#14 0xb64e7def in QAbstractScrollArea::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#15 0xb6599bd7 in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#16 0xb65d3e96 in QTreeView::viewportEvent(QEvent*) () from /usr/lib/libQtGui.so.4
#17 0xb64ea3f5 in ?? () from /usr/lib/libQtGui.so.4
#18 0xb7d31cea in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#19 0xb603267a in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#20 0xb603aa82 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#21 0xb7769b9d in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#22 0xb7d32adb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#23 0xb603d7ee in QCoreApplication::sendSpontaneousEvent(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#24 0xb6090e69 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/libQtGui.so.4
#25 0xb624e965 in ?? () from /usr/lib/libQtGui.so.4
#26 0xb6081956 in QWidgetPrivate::syncBackingStore() () from /usr/lib/libQtGui.so.4
#27 0xb6089565 in QWidget::event(QEvent*) () from /usr/lib/libQtGui.so.4
#28 0xb6465327 in QMainWindow::event(QEvent*) () from /usr/lib/libQtGui.so.4
#29 0xb784e147 in KMainWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#30 0xb78935ac in KXmlGuiWindow::event(QEvent*) () from /usr/lib/libkdeui.so.5
#31 0xb603269c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#32 0xb603aa82 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#33 0xb7769b9d in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#34 0xb7d32adb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#35 0xb7d33725 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQtCore.so.4
#36 0xb7d3391d in QCoreApplication::sendPostedEvents(QObject*, int) () from /usr/lib/libQtCore.so.4
#37 0xb7d5e90f in ?? () from /usr/lib/libQtCore.so.4
#38 0xb4aa49c8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#39 0xb4aa8083 in ?? () from /usr/lib/libglib-2.0.so.0
#40 0xb4aa8241 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#41 0xb7d5e558 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#42 0xb60d2975 in ?? () from /usr/lib/libQtGui.so.4
#43 0xb7d310fa in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#44 0xb7d3153a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#45 0xb7d339e9 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#46 0xb6032517 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#47 0x08167fdc in main ()

Reported using DrKonqi
Comment 1 Oliver Putz 2009-06-15 10:05:48 UTC
I can confirm this crash with a more or less recent svn checkout with KDE-4.2.4 (+personal patch to fix bug 195986 for me).

Simple (more verbose) backtrace:

Starting program: /home/oliver/k3b/multimedia/k3b/build/src/k3b --nofork
[Thread debugging using libthread_db enabled]
[New Thread 0x7fe2ccefc750 (LWP 25396)]
[New Thread 0x40b1a950 (LWP 25397)]
[New Thread 0x42715950 (LWP 25417)]
[New Thread 0x4131b950 (LWP 25419)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fe2ccefc750 (LWP 25396)]
0x0000000000520d0a in K3b::MetaItemModel::parent (this=0xb1ddc0, index=@0x117cde0)
    at /home/oliver/k3b/multimedia/k3b/src/k3bmetaitemmodel.cpp:467
467	    if ( !index.isValid() || !node || node->isPlace() )
#0  0x0000000000520d0a in K3b::MetaItemModel::parent (this=0xb1ddc0, index=@0x117cde0)
    at /home/oliver/k3b/multimedia/k3b/src/k3bmetaitemmodel.cpp:467
#1  0x00007fe2c7326a3b in QPersistentModelIndex::parent (this=<value optimized out>) at kernel/qabstractitemmodel.h:369
#2  0x00007fe2c6b372b1 in QItemSelectionModel::isSelected (this=<value optimized out>, index=@0x7fffd4f42f00)
    at itemviews/qitemselectionmodel.h:108
#3  0x00007fe2c6b1eccd in QTreeView::drawRow (this=0xb22c10, painter=0x7fffd4f43320, option=@0x7fffd4f43140, index=@0x1198bd0)
    at itemviews/qtreeview.cpp:1562
#4  0x00007fe2c6b24639 in QTreeView::drawTree (this=0xb22c10, painter=0x7fffd4f43320, region=<value optimized out>)
    at itemviews/qtreeview.cpp:1401
#5  0x00007fe2c6b24e17 in QTreeView::paintEvent (this=0xb22c10, event=0x7fffd4f43ee0) at itemviews/qtreeview.cpp:1279
#6  0x00007fe2c6650718 in QWidget::event (this=0xb22c10, event=0x7fffd4f43ee0) at kernel/qwidget.cpp:7659
#7  0x00007fe2c69cdc8b in QFrame::event (this=0xb22c10, e=0x7fffd4f43ee0) at widgets/qframe.cpp:559
#8  0x00007fe2c6aee70d in QAbstractItemView::viewportEvent (this=0xb22c10, event=0x7fffd4f43ee0)
    at itemviews/qabstractitemview.cpp:1471
#9  0x00007fe2c6b28dd2 in QTreeView::viewportEvent (this=0xb22c10, event=0x7fffd4f43ee0) at itemviews/qtreeview.cpp:1264
#10 0x00007fe2c73313c7 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value optimized out>, receiver=0xb1fce0, 
    event=0x7fffd4f43ee0) at kernel/qcoreapplication.cpp:726
#11 0x00007fe2c65fd31c in QApplicationPrivate::notify_helper (this=0x832b10, receiver=0xb1fce0, e=0x7fffd4f43ee0)
    at kernel/qapplication.cpp:4053
#12 0x00007fe2c6605f8e in QApplication::notify (this=0x7fffd4f44f00, receiver=0xb1fce0, e=0x7fffd4f43ee0)
    at kernel/qapplication.cpp:4022
#13 0x00007fe2c80bae7d in KApplication::notify (this=0x7fffd4f44f00, receiver=0xb1fce0, event=0x7fffd4f43ee0)
    at /var/tmp/portage/kde-base/kdelibs-4.2.4-r1/work/kdelibs-4.2.4/kdeui/kernel/kapplication.cpp:307
#14 0x00007fe2c733192b in QCoreApplication::notifyInternal (this=0x7fffd4f44f00, receiver=0xb1fce0, event=0x7fffd4f43ee0)
    at kernel/qcoreapplication.cpp:606
#15 0x00007fe2c66534da in QWidgetPrivate::drawWidget (this=0xaa2300, pdev=0x97b758, rgn=@0x7fffd4f44360, offset=@0x7fffd4f44350, 
    flags=<value optimized out>, sharedPainter=0x0, backingStore=0x976c70)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:216
#16 0x00007fe2c67f490d in QWidgetBackingStore::sync (this=0x976c70) at painting/qbackingstore.cpp:1260
#17 0x00007fe2c664580a in QWidgetPrivate::syncBackingStore (this=0x98ba50) at kernel/qwidget.cpp:1602
#18 0x00007fe2c665061d in QWidget::event (this=0x975da0, event=0x11407e0) at kernel/qwidget.cpp:7799
#19 0x00007fe2c69e6cdb in QMainWindow::event (this=0x975da0, event=0x11407e0) at widgets/qmainwindow.cpp:1402
#20 0x00007fe2c817d17e in KXmlGuiWindow::event (this=0x117c9a0, ev=0xb1ddc0)
    at /var/tmp/portage/kde-base/kdelibs-4.2.4-r1/work/kdelibs-4.2.4/kdeui/xmlgui/kxmlguiwindow.cpp:131
#21 0x00007fe2c65fd34d in QApplicationPrivate::notify_helper (this=0x832b10, receiver=0x975da0, e=0x11407e0)
    at kernel/qapplication.cpp:4057
#22 0x00007fe2c6605f8e in QApplication::notify (this=0x7fffd4f44f00, receiver=0x975da0, e=0x11407e0) at kernel/qapplication.cpp:4022
#23 0x00007fe2c80bae7d in KApplication::notify (this=0x7fffd4f44f00, receiver=0x975da0, event=0x11407e0)
    at /var/tmp/portage/kde-base/kdelibs-4.2.4-r1/work/kdelibs-4.2.4/kdeui/kernel/kapplication.cpp:307
#24 0x00007fe2c733192b in QCoreApplication::notifyInternal (this=0x7fffd4f44f00, receiver=0x975da0, event=0x11407e0)
    at kernel/qcoreapplication.cpp:606
#25 0x00007fe2c7335135 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x808690)
    at kernel/qcoreapplication.h:213
#26 0x00007fe2c7359dc3 in postEventSourceDispatch (s=<value optimized out>) at kernel/qcoreapplication.h:218
#27 0x00007fe2c2d1a614 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#28 0x00007fe2c2d1c4d7 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#29 0x00007fe2c2d1c5bd in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#30 0x00007fe2c7359aff in QEventDispatcherGlib::processEvents (this=0x81bed0, flags=<value optimized out>)
    at kernel/qeventdispatcher_glib.cpp:324
#31 0x00007fe2c668b21f in QGuiEventDispatcherGlib::processEvents (this=0x117c9a0, flags=<value optimized out>)
    at kernel/qguieventdispatcher_glib.cpp:202
#32 0x00007fe2c7330592 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -722186704})
    at kernel/qeventloop.cpp:149
#33 0x00007fe2c7330725 in QEventLoop::exec (this=0x7fffd4f44e70, flags={i = -722186624}) at kernel/qeventloop.cpp:196
#34 0x00007fe2c73353ee in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#35 0x0000000000539c0f in main (argc=2, argv=0x7fffd4f45c68) at /home/oliver/k3b/multimedia/k3b/src/main.cpp:160
Comment 2 Oliver Putz 2009-06-15 10:07:00 UTC
Created attachment 34542 [details]
bt full log for crash from bug 196509

A more verbose backtrace using "bt full"
Comment 3 eightmillion 2009-08-17 23:10:31 UTC
I can also confirm this crash.
Comment 4 eightmillion 2009-08-17 23:12:22 UTC
I suppose I should also add that I'm using K3b 1.66.0 alpha 2 on KDE 4.3.00
Comment 5 Michał Małek 2009-09-14 20:06:41 UTC
Could you check this bug on current trunk? I cannot reproduce this, maybe it's already fixed. Thanks
Comment 6 Michał Małek 2009-09-24 22:02:21 UTC
*** Bug 208095 has been marked as a duplicate of this bug. ***
Comment 7 Dario Andres 2009-10-11 20:22:28 UTC
*** Bug 210227 has been marked as a duplicate of this bug. ***
Comment 8 Dario Andres 2009-10-11 20:22:55 UTC
*** Bug 203257 has been marked as a duplicate of this bug. ***
Comment 9 Michał Małek 2009-12-29 21:53:49 UTC
*** Bug 218321 has been marked as a duplicate of this bug. ***
Comment 10 markuss 2010-03-16 16:13:14 UTC
In an attempt to clean up old bugs that are not valid for K3b 2.0 (=KDE SC 4.x port) anymore, this is now being marked as UNMAINTAINED.
If this bug is still valid for 2.0, please reopen it.
Comment 11 Michał Małek 2010-03-28 13:19:45 UTC
*** Bug 232237 has been marked as a duplicate of this bug. ***