Bug 289869

Summary: Amarok crashes when opening a UPnP media server as a collection
Product: [Applications] amarok Reporter: Shane O'Donnell <kde-bugs>
Component: generalAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kde-bugs
Priority: NOR    
Version: 2.4.3   
Target Milestone: 2.6   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Shane O'Donnell 2011-12-26 15:59:15 UTC
Application: amarok (2.4.3)
KDE Platform Version: 4.7.3 (4.7.3) (Compiled from sources)
Qt Version: 4.7.4
Operating System: Linux 2.6.39-gentoo-r3 i686
Distribution: "Gentoo Base System release 2.0.3"

-- Information about the crash:
- What I was doing when the application crashed:

In the collection list a media server is listed and "Counting..." is shown in place of number of tracks.  when clicking on the ">" to open the list Amarok crashes.

The crash can be reproduced every time.

-- Backtrace:
Application: Amarok (amarok), signal: Segmentation fault
[Current thread is 1 (Thread 0xb7866720 (LWP 13554))]

Thread 10 (Thread 0xb5d0db70 (LWP 13556)):
#0  0x45fb66e6 in clock_gettime () from /lib/librt.so.1
#1  0x4a320df8 in qt_gettime() () from /usr/lib/qt4/libQtCore.so.4
#2  0x4a3ed0a5 in QTimerInfoList::timerRepair(timeval const&) () from /usr/lib/qt4/libQtCore.so.4
#3  0x4a3eb8ba in QSystemSemaphorePrivate::modifySemaphore(int) () from /usr/lib/qt4/libQtCore.so.4
#4  0x4a3eb95d in timerSourcePrepareHelper(GTimerSource*, int*) () from /usr/lib/qt4/libQtCore.so.4
#5  0x4af1eded in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#6  0x4af1fb73 in g_main_context_iterate.clone.5 () from /usr/lib/libglib-2.0.so.0
#7  0x4af201c4 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#8  0x4a3ec0f7 in QEventDispatcherGlib::QEventDispatcherGlib(_GMainContext*, QObject*) () from /usr/lib/qt4/libQtCore.so.4
#9  0x4a3bddb9 in QEventLoop::QEventLoop(QObject*) () from /usr/lib/qt4/libQtCore.so.4
#10 0x4a3be052 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/qt4/libQtCore.so.4
#11 0x4a2c83ab in QThread::exec() () from /usr/lib/qt4/libQtCore.so.4
#12 0x4a39fb7b in QMap<int, inotify_event>::freeData () from /usr/lib/qt4/libQtCore.so.4
#13 0x4a2cae12 in QThreadPrivate::start(void*) () from /usr/lib/qt4/libQtCore.so.4
#14 0x45f66e12 in start_thread () from /lib/libpthread.so.0
#15 0x45ea4a5e in clone () from /lib/libc.so.6

Thread 9 (Thread 0xb52a6b70 (LWP 13560)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0x45f6b3ac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x45eb1f1d in pthread_cond_wait () from /lib/libc.so.6
#3  0x4a2cb51f in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/qt4/libQtCore.so.4
#4  0x45d7e720 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#5  0x45d8135c in ThreadWeaver::WorkingHardState::waitForAvailableJob(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#6  0x45d7e36b in ThreadWeaver::WeaverImpl::waitForAvailableJob(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#7  0x45d8144a in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#8  0x45d7e2c3 in ThreadWeaver::WeaverImpl::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#9  0x45d7fe9e in ThreadWeaver::ThreadRunHelper::run(ThreadWeaver::WeaverImpl*, ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#10 0x45d7ff5b in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#11 0x4a2cae12 in QThreadPrivate::start(void*) () from /usr/lib/qt4/libQtCore.so.4
#12 0x45f66e12 in start_thread () from /lib/libpthread.so.0
#13 0x45ea4a5e in clone () from /lib/libc.so.6

Thread 8 (Thread 0xb4aa5b70 (LWP 13561)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0x45f6b3ac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x45eb1f1d in pthread_cond_wait () from /lib/libc.so.6
#3  0x4a2cb51f in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/qt4/libQtCore.so.4
#4  0x45d7e720 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#5  0x45d8135c in ThreadWeaver::WorkingHardState::waitForAvailableJob(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#6  0x45d7e36b in ThreadWeaver::WeaverImpl::waitForAvailableJob(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#7  0x45d8144a in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#8  0x45d7e2c3 in ThreadWeaver::WeaverImpl::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#9  0x45d7fe9e in ThreadWeaver::ThreadRunHelper::run(ThreadWeaver::WeaverImpl*, ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#10 0x45d7ff5b in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#11 0x4a2cae12 in QThreadPrivate::start(void*) () from /usr/lib/qt4/libQtCore.so.4
#12 0x45f66e12 in start_thread () from /lib/libpthread.so.0
#13 0x45ea4a5e in clone () from /lib/libc.so.6

Thread 7 (Thread 0xb42a4b70 (LWP 13562)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0x45f6b3ac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x45eb1f1d in pthread_cond_wait () from /lib/libc.so.6
#3  0x4a2cb51f in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/qt4/libQtCore.so.4
#4  0x45d7e720 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#5  0x45d8135c in ThreadWeaver::WorkingHardState::waitForAvailableJob(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#6  0x45d7e36b in ThreadWeaver::WeaverImpl::waitForAvailableJob(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#7  0x45d8144a in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#8  0x45d7e2c3 in ThreadWeaver::WeaverImpl::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#9  0x45d81469 in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#10 0x45d7e2c3 in ThreadWeaver::WeaverImpl::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#11 0x45d81469 in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#12 0x45d7e2c3 in ThreadWeaver::WeaverImpl::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#13 0x45d7fe9e in ThreadWeaver::ThreadRunHelper::run(ThreadWeaver::WeaverImpl*, ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#14 0x45d7ff5b in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#15 0x4a2cae12 in QThreadPrivate::start(void*) () from /usr/lib/qt4/libQtCore.so.4
#16 0x45f66e12 in start_thread () from /lib/libpthread.so.0
#17 0x45ea4a5e in clone () from /lib/libc.so.6

Thread 6 (Thread 0xb3aa3b70 (LWP 13563)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0x45f6b3ac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x45eb1f1d in pthread_cond_wait () from /lib/libc.so.6
#3  0x4a2cb51f in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/qt4/libQtCore.so.4
#4  0x45d7e720 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#5  0x45d8135c in ThreadWeaver::WorkingHardState::waitForAvailableJob(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#6  0x45d7e36b in ThreadWeaver::WeaverImpl::waitForAvailableJob(ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#7  0x45d8144a in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#8  0x45d7e2c3 in ThreadWeaver::WeaverImpl::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#9  0x45d81469 in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#10 0x45d7e2c3 in ThreadWeaver::WeaverImpl::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#11 0x45d81469 in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#12 0x45d7e2c3 in ThreadWeaver::WeaverImpl::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#13 0x45d81469 in ThreadWeaver::WorkingHardState::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#14 0x45d7e2c3 in ThreadWeaver::WeaverImpl::applyForWork(ThreadWeaver::Thread*, ThreadWeaver::Job*) () from /usr/lib/libthreadweaver.so.4
#15 0x45d7fe9e in ThreadWeaver::ThreadRunHelper::run(ThreadWeaver::WeaverImpl*, ThreadWeaver::Thread*) () from /usr/lib/libthreadweaver.so.4
#16 0x45d7ff5b in ThreadWeaver::Thread::run() () from /usr/lib/libthreadweaver.so.4
#17 0x4a2cae12 in QThreadPrivate::start(void*) () from /usr/lib/qt4/libQtCore.so.4
#18 0x45f66e12 in start_thread () from /lib/libpthread.so.0
#19 0x45ea4a5e in clone () from /lib/libc.so.6

Thread 5 (Thread 0xb227eb70 (LWP 13568)):
#0  0x45f6a680 in __pthread_mutex_unlock_usercnt () from /lib/libpthread.so.0
#1  0x45eb2176 in pthread_mutex_unlock () from /lib/libc.so.6
#2  0x4af1eddb in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#3  0x4af1fb73 in g_main_context_iterate.clone.5 () from /usr/lib/libglib-2.0.so.0
#4  0x4af201c4 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#5  0x4a3ec0f7 in QEventDispatcherGlib::QEventDispatcherGlib(_GMainContext*, QObject*) () from /usr/lib/qt4/libQtCore.so.4
#6  0x4a3bddb9 in QEventLoop::QEventLoop(QObject*) () from /usr/lib/qt4/libQtCore.so.4
#7  0x4a3be052 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/qt4/libQtCore.so.4
#8  0x4a2c83ab in QThread::exec() () from /usr/lib/qt4/libQtCore.so.4
#9  0x4a2c844d in QThread::run() () from /usr/lib/qt4/libQtCore.so.4
#10 0x4a2cae12 in QThreadPrivate::start(void*) () from /usr/lib/qt4/libQtCore.so.4
#11 0x45f66e12 in start_thread () from /lib/libpthread.so.0
#12 0x45ea4a5e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xb1a75b70 (LWP 13640)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0x45f6b3ac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x45eb1f1d in pthread_cond_wait () from /lib/libc.so.6
#3  0x45407dd7 in ?? ()
#4  0x45407e21 in ?? ()
#5  0x45f66e12 in start_thread () from /lib/libpthread.so.0
#6  0x45ea4a5e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xb2a7fb70 (LWP 13972)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0x45f6b3ac in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0x45eb1f1d in pthread_cond_wait () from /lib/libc.so.6
#3  0x4a2cb51f in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/qt4/libQtCore.so.4
#4  0x4dcba852 in at (this=) at ../../include/QtCore/../../src/corelib/tools/qlist.h:457
#5  QGraphicsScenePrivate::touchEventHandler (this=) at graphicsview/qgraphicsscene.cpp:5799
#6  0x4a2cae12 in QThreadPrivate::start(void*) () from /usr/lib/qt4/libQtCore.so.4
#7  0x45f66e12 in start_thread () from /lib/libpthread.so.0
#8  0x45ea4a5e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xa7921b70 (LWP 13973)):
#0  0x45fb66e6 in clock_gettime () from /lib/librt.so.1
#1  0x4a320df8 in qt_gettime() () from /usr/lib/qt4/libQtCore.so.4
#2  0x4a3ed0a5 in QTimerInfoList::timerRepair(timeval const&) () from /usr/lib/qt4/libQtCore.so.4
#3  0x4a3eb8ba in QSystemSemaphorePrivate::modifySemaphore(int) () from /usr/lib/qt4/libQtCore.so.4
#4  0x4a3eb95d in timerSourcePrepareHelper(GTimerSource*, int*) () from /usr/lib/qt4/libQtCore.so.4
#5  0x4af1eded in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#6  0x4af1fb73 in g_main_context_iterate.clone.5 () from /usr/lib/libglib-2.0.so.0
#7  0x4af201c4 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#8  0x4a3ec0f7 in QEventDispatcherGlib::QEventDispatcherGlib(_GMainContext*, QObject*) () from /usr/lib/qt4/libQtCore.so.4
#9  0x4a3bddb9 in QEventLoop::QEventLoop(QObject*) () from /usr/lib/qt4/libQtCore.so.4
#10 0x4a3be052 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/qt4/libQtCore.so.4
#11 0x4a2c83ab in QThread::exec() () from /usr/lib/qt4/libQtCore.so.4
#12 0x4a39fb7b in QMap<int, inotify_event>::freeData () from /usr/lib/qt4/libQtCore.so.4
#13 0x4a2cae12 in QThreadPrivate::start(void*) () from /usr/lib/qt4/libQtCore.so.4
#14 0x45f66e12 in start_thread () from /lib/libpthread.so.0
#15 0x45ea4a5e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb7866720 (LWP 13554)):
[KCrash Handler]
#7  0x4a95e340 in KIO::SchedulerPrivate::cancelJob(KIO::SimpleJob*) () from /usr/lib/libkio.so.5
#8  0x4a95e513 in KIO::Scheduler::cancelJob(KIO::SimpleJob*) () from /usr/lib/libkio.so.5
#9  0xb5d537c3 in Collections::UpnpCollectionBase::~UpnpCollectionBase (this=0x9ab23f8, __in_chrg=<value optimized out>) at /home/system/portage/media-sound/amarok-2.4.3/work/amarok-2.4.3/src/core-impl/collections/upnpcollection/UpnpCollectionBase.cpp:49
#10 0xb5d5c743 in Collections::UpnpSearchCollection::~UpnpSearchCollection (this=0x9ab23f8, __in_chrg=<value optimized out>) at /home/system/portage/media-sound/amarok-2.4.3/work/amarok-2.4.3/src/core-impl/collections/upnpcollection/UpnpSearchCollection.cpp:56
#11 0xb5d5c792 in Collections::UpnpSearchCollection::~UpnpSearchCollection (this=0x9ab23f8, __in_chrg=<value optimized out>) at /home/system/portage/media-sound/amarok-2.4.3/work/amarok-2.4.3/src/core-impl/collections/upnpcollection/UpnpSearchCollection.cpp:58
#12 0x49272f7e in qDeleteAll<QList<Collections::Collection*>::const_iterator> (this=) at /usr/include/qt4/QtCore/qalgorithms.h:322
#13 qDeleteAll<SmartPointerList<Collections::Collection> > (this=) at /usr/include/qt4/QtCore/qalgorithms.h:330
#14 CollectionManager::~CollectionManager (this=) at /home/system/portage/media-sound/amarok-2.4.3/work/amarok-2.4.3/src/core-impl/collections/support/CollectionManager.cpp:137
#15 0x49273152 in CollectionManager::~CollectionManager (this=) at /home/system/portage/media-sound/amarok-2.4.3/work/amarok-2.4.3/src/core-impl/collections/support/CollectionManager.cpp:140
#16 0x4926fd4b in CollectionManager::destroy () at /home/system/portage/media-sound/amarok-2.4.3/work/amarok-2.4.3/src/core-impl/collections/support/CollectionManager.cpp:107
#17 0x4942729f in App::~App (this=) at /home/system/portage/media-sound/amarok-2.4.3/work/amarok-2.4.3/src/App.cpp:248
#18 0x08054f87 in main (argc=164736176, argv=0x9c6eb28) at /home/system/portage/media-sound/amarok-2.4.3/work/amarok-2.4.3/src/main.cpp:287

Reported using DrKonqi
Comment 1 Myriam Schweingruber 2011-12-27 19:38:31 UTC
Could you please upgrade to Amarok 2.5 and try again?

*** This bug has been marked as a duplicate of bug 280255 ***