Crash organising files

Maximilian Kossick maximilian.kossick at googlemail.com
Sun Sep 7 09:51:21 CEST 2008


On Sun, Sep 7, 2008 at 7:01 AM, Seb Ruiz <ruiz at kde.org> wrote:
> Reproducible every time. Happens when organising from local or non
> local collection.
>
> Max, what do you think of this?
>

This is the first time that I've seen a pointer to a QHash:)
That shoudn't cause a crash though, but everything else seems to work.
Please check if it works without those two lines of AFT code. If it
does, you might try to use a QHash that's not shared across multiple
threads (i.e. use QHash instead of QHash* inside ScanResultProcessor)

Max

> Application: Amarok (amarok), signal SIGSEGV
> [Thread debugging using libthread_db enabled]
> [New Thread 0xb3afdb00 (LWP 1341)]
> [New Thread 0xa7c78b90 (LWP 1665)]
> [New Thread 0xa926db90 (LWP 1377)]
> [New Thread 0xa9a6eb90 (LWP 1376)]
> [New Thread 0xaa2ffb90 (LWP 1372)]
> [New Thread 0xaad45b90 (LWP 1371)]
> [New Thread 0xabd47b90 (LWP 1365)]
> [New Thread 0xac548b90 (LWP 1364)]
> [New Thread 0xacf16b90 (LWP 1363)]
> [New Thread 0xaf391b90 (LWP 1362)]
> [New Thread 0xaeb90b90 (LWP 1358)]
> [New Thread 0xafc63b90 (LWP 1349)]
> [New Thread 0xb0464b90 (LWP 1348)]
> [New Thread 0xb0ca7b90 (LWP 1347)]
> [New Thread 0xb1518b90 (LWP 1345)]
> [KCrash handler]
> #6  0xaf3a945a in QBasicAtomicInt::operator!= (this=0x8, value=1)
>    at /usr/include/qt4/QtCore/qbasicatomic.h:71
> #7  0xaf3b9ff0 in QHash<QString, QString>::detach (this=0x807d244)
>    at /usr/include/qt4/QtCore/qhash.h:286
> #8  0xaf3ba41d in QHash<QString, QString>::insert (this=0x807d244,
>    akey=@0xbf8fcf08, avalue=@0xbf8fce98)
>    at /usr/include/qt4/QtCore/qhash.h:738
> #9  0xaf3bef5a in ScanResultProcessor::addTrack (this=0xbf8fd084,
>    trackData=@0xa3d95e0, albumArtistId=126)
>    at /data/kdesvn/extragear/multimedia/amarok/src/collection/sqlcollection/ScanResultProcessor.cpp:342
> #10 0xaf3bf8bb in ScanResultProcessor::processDirectory (this=0xbf8fd084,
>    data=@0xbf8fd144)
>    at /data/kdesvn/extragear/multimedia/amarok/src/collection/sqlcollection/ScanResultProcessor.cpp:185
> #11 0xaf3c5b44 in SqlCollectionLocation::insertTracks (this=0xa183a30,
>    trackMap=@0xa183a50)
>    at /data/kdesvn/extragear/multimedia/amarok/src/collection/sqlcollection/SqlCollectionLocation.cpp:279
> #12 0xaf3c6332 in SqlCollectionLocation::slotJobFinished (this=0xa183a30,
>    job=0xa243cb8)
>    at /data/kdesvn/extragear/multimedia/amarok/src/collection/sqlcollection/SqlCollectionLocation.cpp:167
> #13 0xaf3c6520 in SqlCollectionLocation::qt_metacall (this=0xa183a30,
>    _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0xbf8fd2cc)
>    at /data/kdesvn/build/amarok/src/collection/sqlcollection/SqlCollectionLocation.moc:71
> #14 0xb68def79 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
> #15 0xb68df642 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
> #16 0xb6b075a3 in KJob::result () from /usr/lib/kde4/lib/libkdecore.so.5
> #17 0xb6b07ac2 in KJob::emitResult () from /usr/lib/kde4/lib/libkdecore.so.5
> #18 0xb6dfd0b8 in KIO::FileCopyJob::slotResult ()
>   from /usr/lib/kde4/lib/libkio.so.5
> #19 0xb6dfdf39 in KIO::FileCopyJob::qt_metacall ()
>   from /usr/lib/kde4/lib/libkio.so.5
> #20 0xb68def79 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
> #21 0xb68df642 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
> #22 0xb6b075a3 in KJob::result () from /usr/lib/kde4/lib/libkdecore.so.5
> #23 0xb6b07ac2 in KJob::emitResult () from /usr/lib/kde4/lib/libkdecore.so.5
> #24 0xb6df744f in KIO::SimpleJob::slotFinished ()
>   from /usr/lib/kde4/lib/libkio.so.5
> #25 0xb6df6f3e in KIO::SimpleJob::qt_metacall ()
>   from /usr/lib/kde4/lib/libkio.so.5
> #26 0xb68def79 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
> #27 0xb68df642 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
> #28 0xb6e98df7 in KIO::SlaveInterface::finished ()
>   from /usr/lib/kde4/lib/libkio.so.5
> #29 0xb6e9afdb in KIO::SlaveInterface::dispatch ()
>   from /usr/lib/kde4/lib/libkio.so.5
> #30 0xb6e9b41d in KIO::SlaveInterface::dispatch ()
>   from /usr/lib/kde4/lib/libkio.so.5
> #31 0xb6e8dfd7 in KIO::Slave::gotInput () from /usr/lib/kde4/lib/libkio.so.5
> #32 0xb6e8f3ad in KIO::Slave::qt_metacall ()
>   from /usr/lib/kde4/lib/libkio.so.5
> #33 0xb68def79 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
> #34 0xb68df642 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
> #35 0xb6dca7c7 in KIO::Connection::readyRead ()
>   from /usr/lib/kde4/lib/libkio.so.5
> #36 0xb6dcb638 in ?? () from /usr/lib/kde4/lib/libkio.so.5
> #37 0xb6dcc47e in KIO::Connection::qt_metacall ()
>   from /usr/lib/kde4/lib/libkio.so.5
> #38 0xb68d88ab in QMetaCallEvent::placeMetaCall ()
>   from /usr/lib/libQtCore.so.4
> #39 0xb68d9c31 in QObject::event () from /usr/lib/libQtCore.so.4
> #40 0xb5c19f9c in QApplicationPrivate::notify_helper ()
>   from /usr/lib/libQtGui.so.4
> #41 0xb5c1ebf9 in QApplication::notify () from /usr/lib/libQtGui.so.4
> #42 0xb7a4e1c3 in KApplication::notify () from /usr/lib/kde4/lib/libkdeui.so.5
> #43 0xb68ca0b9 in QCoreApplication::notifyInternal ()
>   from /usr/lib/libQtCore.so.4
> #44 0xb68cb469 in QCoreApplicationPrivate::sendPostedEvents ()
>   from /usr/lib/libQtCore.so.4
> #45 0xb68cb68d in QCoreApplication::sendPostedEvents ()
>   from /usr/lib/libQtCore.so.4
> #46 0xb68f562f in ?? () from /usr/lib/libQtCore.so.4
> #47 0xb4a75dd6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
> #48 0xb4a79193 in ?? () from /usr/lib/libglib-2.0.so.0
> #49 0xb4a7974e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
> #50 0xb68f59f8 in QEventDispatcherGlib::processEvents ()
>   from /usr/lib/libQtCore.so.4
> #51 0xb5cada25 in ?? () from /usr/lib/libQtGui.so.4
> #52 0xb68c933d in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
> #53 0xb68c94cd in QEventLoop::exec () from /usr/lib/libQtCore.so.4
> #54 0xb68cb74d in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
> #55 0xb5c19897 in QApplication::exec () from /usr/lib/libQtGui.so.4
> #56 0x0804bf68 in main (argc=1, argv=0xbf8fe534)
>    at /data/kdesvn/extragear/multimedia/amarok/src/main.cpp:127
> #0  0xb7f55410 in __kernel_vsyscall ()
>
>
> --
> Seb Ruiz
>
> http://www.sebruiz.net/
> http://amarok.kde.org/
> _______________________________________________
> Amarok-devel mailing list
> Amarok-devel at kde.org
> https://mail.kde.org/mailman/listinfo/amarok-devel
>


More information about the Amarok-devel mailing list