Bug 242461

Summary: Crash after cdrecord exited because of invalid option
Product: [Unmaintained] kfile Reporter: Clemens Eisserer <linuxhippy>
Component: kfileplacesviewAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: afiestas, faure, lkjoel, sbrandt
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 4.7.3
Sentry Crash Report:

Description Clemens Eisserer 2010-06-22 11:23:26 UTC
Version:           1.92.0 (using Devel) 
OS:                Linux

When I tried to burn a DVD, cdrecord complained about something lile ~"-p 2.4 is not a valid option". When closing the message dialog k3b crashed.
I am running KDE-4.4.85 + QT4.7Beta.

Thread 1 (Thread 0xb775e780 (LWP 2039)):
[KCrash Handler]
#7  0x01e4baa9 in QUrl::QUrl (this=0xbf902258, other=...) at io/qurl.cpp:4145
#8  0x0252c53a in KUrl::KUrl (this=0xbf902258, _u=...) at /usr/src/debug/kdelibs-4.4.85/kdecore/io/kurl.cpp:472
#9  0x0384fe37 in KDirListerCache::forgetDirs (this=0x9e7ea28, lister=0xa0aa380, _url=..., notify=false) at /usr/src/debug/kdelibs-4.4.85/kio/kio/kdirlister.cpp:484
#10 0x03850cfd in KDirListerCache::forgetDirs (this=0x9e7ea28, lister=0xa0aa380) at /usr/src/debug/kdelibs-4.4.85/kio/kio/kdirlister.cpp:462
#11 0x03850ee4 in KDirLister::~KDirLister (this=0xa0aa380, __in_chrg=<value optimized out>) at /usr/src/debug/kdelibs-4.4.85/kio/kio/kdirlister.cpp:1949
#12 0x03850fd3 in KDirLister::~KDirLister (this=0xa0aa380, __in_chrg=<value optimized out>) at /usr/src/debug/kdelibs-4.4.85/kio/kio/kdirlister.cpp:1953
#13 0x01eac0e6 in QObjectPrivate::deleteChildren (this=0xa12cba8) at kernel/qobject.cpp:1982
#14 0x01eb08b4 in QObject::~QObject (this=0xa137270, __in_chrg=<value optimized out>) at kernel/qobject.cpp:971
#15 0x03afa996 in KFilePlacesItem::~KFilePlacesItem (this=0xa137270, __in_chrg=<value optimized out>) at /usr/src/debug/kdelibs-4.4.85/kfile/kfileplacesitem.cpp:66
#16 0x03afa9c3 in KFilePlacesItem::~KFilePlacesItem (this=0xa137270, __in_chrg=<value optimized out>) at /usr/src/debug/kdelibs-4.4.85/kfile/kfileplacesitem.cpp:66
#17 0x03aff196 in qDeleteAll<QList<KFilePlacesItem*>::const_iterator> (this=0xa0b3dc8) at /usr/include/QtCore/qalgorithms.h:322
#18 qDeleteAll<QList<KFilePlacesItem*> > (this=0xa0b3dc8) at /usr/include/QtCore/qalgorithms.h:330
#19 KFilePlacesModel::Private::_k_reloadBookmarks (this=0xa0b3dc8) at /usr/src/debug/kdelibs-4.4.85/kfile/kfileplacesmodel.cpp:440
#20 0x03aff2c6 in KFilePlacesModel::Private::_k_deviceRemoved (this=0xa0b3dc8, udi=...) at /usr/src/debug/kdelibs-4.4.85/kfile/kfileplacesmodel.cpp:358
#21 0x03b00718 in KFilePlacesModel::qt_metacall (this=0xa08ae70, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbf9026b8)
    at /usr/src/debug/kdelibs-4.4.85/i686-redhat-linux-gnu/kfile/kfileplacesmodel.moc:93
#22 0x01e9f06b in QMetaObject::metacall (object=0xa08ae70, cl=QMetaObject::InvokeMetaMethod, idx=28, argv=0xbf9026b8) at kernel/qmetaobject.cpp:237
#23 0x01eae085 in QMetaObject::activate (sender=0x9cccd40, m=0x3681528, local_signal_index=1, argv=0xbf9026b8) at kernel/qobject.cpp:3305
#24 0x036094a4 in Solid::DeviceNotifier::deviceRemoved (this=0x9cccd40, _t1=...) at /usr/src/debug/kdelibs-4.4.85/i686-redhat-linux-gnu/solid/solid/devicenotifier.moc:94
#25 0x0360bdfd in Solid::DeviceManagerPrivate::_k_deviceRemoved (this=0x9cccd40, udi=...) at /usr/src/debug/kdelibs-4.4.85/solid/solid/devicemanager.cpp:204
#26 0x0360c285 in Solid::DeviceManagerPrivate::qt_metacall (this=0x9cccd40, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbf902858)
    at /usr/src/debug/kdelibs-4.4.85/i686-redhat-linux-gnu/solid/solid/devicemanager_p.moc:80
#27 0x01e9f06b in QMetaObject::metacall (object=0x9cccd40, cl=QMetaObject::InvokeMetaMethod, idx=7, argv=0xbf902858) at kernel/qmetaobject.cpp:237
#28 0x01eae085 in QMetaObject::activate (sender=0x9ccfd08, m=0x36825e0, local_signal_index=1, argv=0xbf902858) at kernel/qobject.cpp:3305
#29 0x0361e534 in Solid::Ifaces::DeviceManager::deviceRemoved (this=0x9ccfd08, _t1=...) at /usr/src/debug/kdelibs-4.4.85/i686-redhat-linux-gnu/solid/solid/ifaces/devicemanager.moc:94
#30 0x0364df0a in Solid::Backends::Hal::HalManager::slotDeviceRemoved (this=0x9ccfd08, udi=...) at /usr/src/debug/kdelibs-4.4.85/solid/solid/backends/hal/halmanager.cpp:250
#31 0x0364dffa in Solid::Backends::Hal::HalManager::qt_metacall (this=0x9ccfd08, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbf902a0c)
    at /usr/src/debug/kdelibs-4.4.85/i686-redhat-linux-gnu/solid/solid/backends/hal/halmanager.moc:78
#32 0x007db4cc in QDBusConnectionPrivate::deliverCall (this=0x9ccf7b0, object=0x9ccfd08, msg=..., metaTypes=..., slotIdx=7) at qdbusintegrator.cpp:909
#33 0x007e63e8 in QDBusCallDeliveryEvent::placeMetaCall (this=0xa0aa830, object=0x9ccfd08) at qdbusintegrator_p.h:103
#34 0x01eabf7e in QObject::event (this=0x9ccfd08, e=0xa0aa830) at kernel/qobject.cpp:1244
#35 0x0892a85c in QApplicationPrivate::notify_helper (this=0x9bb4090, receiver=0x9ccfd08, e=0xa0aa830) at kernel/qapplication.cpp:4345
#36 0x089311d6 in QApplication::notify (this=0xbf905a84, receiver=0x9ccfd08, e=0xa0aa830) at kernel/qapplication.cpp:3749
#37 0x0333636b in KApplication::notify (this=0xbf905a84, receiver=0x9ccfd08, event=0xa0aa830) at /usr/src/debug/kdelibs-4.4.85/kdeui/kernel/kapplication.cpp:302
#38 0x01e99a73 in QCoreApplication::notifyInternal (this=0xbf905a84, receiver=0x9ccfd08, event=0xa0aa830) at kernel/qcoreapplication.cpp:726
#39 0x01e9cd34 in sendEvent (receiver=0x0, event_type=0, data=0x9b91490) at kernel/qcoreapplication.h:215
#40 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x9b91490) at kernel/qcoreapplication.cpp:1367
#41 0x01e9ceae in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1260
#42 0x01ec44f0 in sendPostedEvents (s=0x9bb6120) at kernel/qcoreapplication.h:220
#43 postEventSourceDispatch (s=0x9bb6120) at kernel/qeventdispatcher_glib.cpp:276
#44 0x04380525 in g_main_dispatch (context=0x9bb6098) at gmain.c:1960
#45 IA__g_main_context_dispatch (context=0x9bb6098) at gmain.c:2513
#46 0x04384268 in g_main_context_iterate (context=0x1c0490, block=1, dispatch=1, self=0x9bb42d8) at gmain.c:2591
#47 0x04384449 in IA__g_main_context_iteration (context=0x9bb6098, may_block=1) at gmain.c:2654
#48 0x01ec3fd6 in QEventDispatcherGlib::processEvents (this=0x9bb3bf8, flags=...) at kernel/qeventdispatcher_glib.cpp:412
#49 0x089dacc6 in QGuiEventDispatcherGlib::processEvents (this=0x9bb3bf8, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#50 0x01e9860a in QEventLoop::processEvents (this=0xbf903230, flags=...) at kernel/qeventloop.cpp:149
#51 0x01e9894a in QEventLoop::exec (this=0xbf903230, flags=...) at kernel/qeventloop.cpp:201
#52 0x08e41a54 in QDialog::exec (this=0xbf903338) at dialogs/qdialog.cpp:546
#53 0x08164dfb in _start ()


Reproducible: Didn't try
Comment 1 Michał Małek 2010-06-22 21:46:10 UTC
Crash is caused by kdelibs (and/or Qt) so I'm redirecting this report to kdelibs.
As for cdrecord error please try to reproduce it, open new bug report and attach debugging output if you won't get crash.
Comment 2 Nicolas L. 2010-08-15 23:17:16 UTC
*** Bug 247495 has been marked as a duplicate of this bug. ***
Comment 3 David Faure 2011-10-20 13:10:01 UTC
I fixed today a crash in forgetDirs when accessing item->url, just after item is inserted into the QCache.

I confirm that bug 247495 looks similar, at least it was a crash in forgetDirs itself, so likely the same issue.

commit 35f9a67a3dd7b89fd424625094bf432847e89eb5
Author: David Faure <faure@kde.org>
Date:   Thu Oct 20 14:25:47 2011 +0200

    Inserting into QCache must be done last, since it might delete the item.
    
    -> fixes possible crash.
    Thanks to Lukáš Tinkl and to the Coverity tool for pointing this out!
Comment 4 Jekyll Wu 2011-12-10 05:35:45 UTC
*** Bug 240717 has been marked as a duplicate of this bug. ***
Comment 5 Jekyll Wu 2011-12-10 05:36:09 UTC
*** Bug 251260 has been marked as a duplicate of this bug. ***