Bug 329011

Summary: Amarok randomly crashes (segfault) when playing music [@ SqlRegistry::emptyCache]
Product: [Applications] amarok Reporter: Mirco <mirco.bugs>
Component: Collections/LocalAssignee: Amarok Bugs <amarok-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: arm4design, farl.rmz, fastsimplmail, giggi1999, l.jirkovsky, mail, matej, nick, ralf-engels, roger
Priority: NOR Keywords: drkonqi
Version First Reported In: 2.8.0   
Target Milestone: 2.9   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 2.9
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Mirco 2013-12-19 16:49:47 UTC
Application: amarok (2.8.0)
KDE Platform Version: 4.10.5 "release 1"
Qt Version: 4.8.4
Operating System: Linux 3.7.10-1.16-desktop i686
Distribution: "openSUSE 12.3 (i586)"

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

Nothing but starting Amarok and play some music (flac-files, maybe others too)

- Unusual behavior I noticed:

When I start playing music, amarok is not responding until the track has played about 8 seconds.
Also, the whole desktop environment seems to lag for that time.

- Custom settings of the application:

There are no extraordinary settings I am aware of, but I'm using playwolf/spielwolf.

The crash can be reproduced every time.

-- Backtrace:
Application: Amarok (amarok), signal: Segmentation fault
Using host libthread_db library "/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0xad0f9740 (LWP 4047))]

Thread 19 (Thread 0xa9da9b40 (LWP 4050)):
#0  0xb53cab54 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0xb586b624 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libc.so.6
#2  0xaa79bb00 in my_service_thread_sleep () from /usr/lib/libmysqld.so.18
#3  0xaa616807 in ma_checkpoint_background () from /usr/lib/libmysqld.so.18
#4  0xb53c6b5e in start_thread () from /lib/libpthread.so.0
#5  0xb585dede in clone () from /lib/libc.so.6

Thread 18 (Thread 0x9fefcb40 (LWP 4051)):
#0  0xb53cab54 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0xb586b624 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libc.so.6
#2  0xb5a534cd in wait (time=60000, this=0x9e93b18) at thread/qwaitcondition_unix.cpp:84
#3  QWaitCondition::wait (this=0x9d909d0, mutex=0x9d909cc, time=60000) at thread/qwaitcondition_unix.cpp:158
#4  0xb6efa9ca in AbstractDirectoryWatcher::run (this=0x9d909b8) at /usr/src/debug/amarok-2.8.0/src/scanner/AbstractDirectoryWatcher.cpp:65
#5  0xb4f7f823 in ThreadWeaver::JobRunHelper::runTheJob (this=this@entry=0x9fefc208, th=th@entry=0x9b83ec8, job=job@entry=0x9d909b8) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/Job.cpp:106
#6  0xb4f7f9c3 in ThreadWeaver::Job::execute (this=0x9d909b8, th=0x9b83ec8) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/Job.cpp:135
#7  0xb4f7edc2 in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x9fefc284, parent=0x9e99468, th=th@entry=0x9b83ec8) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/Thread.cpp:95
#8  0xb4f7eeaa in ThreadWeaver::Thread::run (this=0x9b83ec8) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/Thread.cpp:142
#9  0xb5a52f78 in QThreadPrivate::start (arg=0x9b83ec8) at thread/qthread_unix.cpp:338
#10 0xb53c6b5e in start_thread () from /lib/libpthread.so.0
#11 0xb585dede in clone () from /lib/libc.so.6

Thread 17 (Thread 0x9f4ffb40 (LWP 4052)):
#0  0xb5853171 in poll () from /lib/libc.so.6
#1  0xb34a464b in g_poll () from /usr/lib/libglib-2.0.so.0
#2  0xb3495bd0 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0xb3495d31 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0xb5b978af in QEventDispatcherGlib::processEvents (this=0x9eb00480, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#5  0xb5b6439c in QEventLoop::processEvents (this=this@entry=0x9f4ff228, flags=...) at kernel/qeventloop.cpp:149
#6  0xb5b64691 in QEventLoop::exec (this=0x9f4ff228, flags=...) at kernel/qeventloop.cpp:204
#7  0xb5a4fb6c in QThread::exec (this=0x9858138) at thread/qthread.cpp:542
#8  0xb5b4299d in QInotifyFileSystemWatcherEngine::run (this=0x9858138) at io/qfilesystemwatcher_inotify.cpp:256
#9  0xb5a52f78 in QThreadPrivate::start (arg=0x9858138) at thread/qthread_unix.cpp:338
#10 0xb53c6b5e in start_thread () from /lib/libpthread.so.0
#11 0xb585dede in clone () from /lib/libc.so.6

Thread 16 (Thread 0x9eaffb40 (LWP 4053)):
#0  0xb53ca792 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0xb586b5cc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#2  0xb5a53550 in wait (time=4294967295, this=0x9e99530) at thread/qwaitcondition_unix.cpp:86
#3  QWaitCondition::wait (this=0x9e99480, mutex=0x9d7ea28, time=4294967295) at thread/qwaitcondition_unix.cpp:158
#4  0xb4f7d405 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x9e99468, th=0xa037538) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/WeaverImpl.cpp:365
#5  0xb4f8024b in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x9dc5e78, th=0xa037538) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/WorkingHardState.cpp:80
#6  0xb4f7cf6a in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x9e99468, th=0xa037538) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/WeaverImpl.cpp:356
#7  0xb4f803a4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9dc5e78, th=0xa037538) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/WorkingHardState.cpp:71
#8  0xb4f7ce63 in ThreadWeaver::WeaverImpl::applyForWork (this=0x9e99468, th=0xa037538, previous=0x0) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/WeaverImpl.cpp:351
#9  0xb4f803c0 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9dc5e78, th=0xa037538) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/WorkingHardState.cpp:74
#10 0xb4f7ce63 in ThreadWeaver::WeaverImpl::applyForWork (this=0x9e99468, th=0xa037538, previous=0xb0d3978) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/WeaverImpl.cpp:351
#11 0xb4f7edf4 in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x9eaff284, parent=0x9e99468, th=th@entry=0xa037538) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/Thread.cpp:87
#12 0xb4f7eeaa in ThreadWeaver::Thread::run (this=0xa037538) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/Thread.cpp:142
#13 0xb5a52f78 in QThreadPrivate::start (arg=0xa037538) at thread/qthread_unix.cpp:338
#14 0xb53c6b5e in start_thread () from /lib/libpthread.so.0
#15 0xb585dede in clone () from /lib/libc.so.6

Thread 15 (Thread 0x9e0ffb40 (LWP 4054)):
#0  0xb53ca792 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0xb586b5cc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#2  0xb5a53550 in wait (time=4294967295, this=0x9e99530) at thread/qwaitcondition_unix.cpp:86
#3  QWaitCondition::wait (this=0x9e99480, mutex=0x9d7ea28, time=4294967295) at thread/qwaitcondition_unix.cpp:158
#4  0xb4f7d405 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x9e99468, th=0x9ec34468) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/WeaverImpl.cpp:365
#5  0xb4f8024b in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x9dc5e78, th=0x9ec34468) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/WorkingHardState.cpp:80
#6  0xb4f7cf6a in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x9e99468, th=0x9ec34468) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/WeaverImpl.cpp:356
#7  0xb4f803a4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9dc5e78, th=0x9ec34468) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/WorkingHardState.cpp:71
#8  0xb4f7ce63 in ThreadWeaver::WeaverImpl::applyForWork (this=0x9e99468, th=0x9ec34468, previous=0x0) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/WeaverImpl.cpp:351
#9  0xb4f803c0 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9dc5e78, th=0x9ec34468) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/WorkingHardState.cpp:74
#10 0xb4f7ce63 in ThreadWeaver::WeaverImpl::applyForWork (this=0x9e99468, th=0x9ec34468, previous=0xb13f8d8) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/WeaverImpl.cpp:351
#11 0xb4f7edf4 in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x9e0ff284, parent=0x9e99468, th=th@entry=0x9ec34468) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/Thread.cpp:87
#12 0xb4f7eeaa in ThreadWeaver::Thread::run (this=0x9ec34468) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/Thread.cpp:142
#13 0xb5a52f78 in QThreadPrivate::start (arg=0x9ec34468) at thread/qthread_unix.cpp:338
#14 0xb53c6b5e in start_thread () from /lib/libpthread.so.0
#15 0xb585dede in clone () from /lib/libc.so.6

Thread 14 (Thread 0x9d8ffb40 (LWP 4055)):
#0  0xb53ca792 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0xb586b5cc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#2  0xb5a53550 in wait (time=4294967295, this=0x9e99530) at thread/qwaitcondition_unix.cpp:86
#3  QWaitCondition::wait (this=0x9e99480, mutex=0x9d7ea28, time=4294967295) at thread/qwaitcondition_unix.cpp:158
#4  0xb4f7d405 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x9e99468, th=0x9ec36b78) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/WeaverImpl.cpp:365
#5  0xb4f8024b in ThreadWeaver::WorkingHardState::waitForAvailableJob (this=0x9dc5e78, th=0x9ec36b78) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/WorkingHardState.cpp:80
#6  0xb4f7cf6a in ThreadWeaver::WeaverImpl::waitForAvailableJob (this=0x9e99468, th=0x9ec36b78) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/WeaverImpl.cpp:356
#7  0xb4f803a4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x9dc5e78, th=0x9ec36b78) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/WorkingHardState.cpp:71
#8  0xb4f7ce63 in ThreadWeaver::WeaverImpl::applyForWork (this=0x9e99468, th=0x9ec36b78, previous=0xb11b2b8) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/WeaverImpl.cpp:351
#9  0xb4f7edf4 in ThreadWeaver::ThreadRunHelper::run (this=this@entry=0x9d8ff284, parent=0x9e99468, th=th@entry=0x9ec36b78) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/Thread.cpp:87
#10 0xb4f7eeaa in ThreadWeaver::Thread::run (this=0x9ec36b78) at /usr/src/debug/kdelibs-4.10.5/threadweaver/Weaver/Thread.cpp:142
#11 0xb5a52f78 in QThreadPrivate::start (arg=0x9ec36b78) at thread/qthread_unix.cpp:338
#12 0xb53c6b5e in start_thread () from /lib/libpthread.so.0
#13 0xb585dede in clone () from /lib/libc.so.6

Thread 13 (Thread 0x9c8ffb40 (LWP 4056)):
#0  0xb53ca792 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0xb586b5cc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#2  0xb25e165d in ?? () from /usr/lib/libQtWebKit.so.4
#3  0xb25e168f in ?? () from /usr/lib/libQtWebKit.so.4
#4  0xb53c6b5e in start_thread () from /lib/libpthread.so.0
#5  0xb585dede in clone () from /lib/libc.so.6

Thread 12 (Thread 0x9bdffb40 (LWP 4057)):
#0  0xb587113d in clock_gettime () from /lib/libc.so.6
#1  0xb5ab1975 in do_gettime (frac=0x9bdfefa0, sec=0x9bdfef98) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0xb5b983ae in QTimerInfoList::updateCurrentTime (this=0x9957364) at kernel/qeventdispatcher_unix.cpp:354
#4  0x7fffffff in ?? ()
#5  0xb5b9874a in QTimerInfoList::timerWait (this=0x9957364, tm=...) at kernel/qeventdispatcher_unix.cpp:461
#6  0x7fffffff in ?? ()

Thread 11 (Thread 0x95b59b40 (LWP 4060)):
#0  0xb53ca792 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0xb586b5cc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#2  0xb49e224d in QTWTF::TCMalloc_PageHeap::scavengerThread (this=this@entry=0xb4aef580 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#3  0xb49e227f in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0xb4aef580 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#4  0xb53c6b5e in start_thread () from /lib/libpthread.so.0
#5  0xb585dede in clone () from /lib/libc.so.6

Thread 10 (Thread 0x8ef99b40 (LWP 4811)):
#0  0xb53ca792 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0xb586b5cc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#2  0xb34d72b6 in g_cond_wait () from /usr/lib/libglib-2.0.so.0
#3  0xafe8bf5f in ?? () from /usr/lib/libgstreamer-0.10.so.0
#4  0xafe8cf38 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#5  0xb34bbd78 in ?? () from /usr/lib/libglib-2.0.so.0
#6  0xb34bb393 in ?? () from /usr/lib/libglib-2.0.so.0
#7  0xb53c6b5e in start_thread () from /lib/libpthread.so.0
#8  0xb585dede in clone () from /lib/libc.so.6

Thread 9 (Thread 0x8e799b40 (LWP 4812)):
#0  0xb53ca792 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0xb586b5cc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#2  0xb34d72b6 in g_cond_wait () from /usr/lib/libglib-2.0.so.0
#3  0xab771452 in ?? () from /usr/lib/gstreamer-0.10/libgstcoreelements.so
#4  0xafe8bd60 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#5  0xafe8cf38 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#6  0xb34bbd78 in ?? () from /usr/lib/libglib-2.0.so.0
#7  0xb34bb393 in ?? () from /usr/lib/libglib-2.0.so.0
#8  0xb53c6b5e in start_thread () from /lib/libpthread.so.0
#9  0xb585dede in clone () from /lib/libc.so.6

Thread 8 (Thread 0x8df99b40 (LWP 4813)):
#0  0xb584cc71 in write () from /lib/libc.so.6
#1  0xb34d6292 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0xb5b97adb in QEventDispatcherGlib::wakeUp (this=0x97419a0) at kernel/qeventdispatcher_glib.cpp:580
#3  0xb5b690d2 in QCoreApplication::postEvent (receiver=receiver@entry=0x9d452f0, event=event@entry=0x9d043808, priority=priority@entry=0) at kernel/qcoreapplication.cpp:1392
#4  0xb5b691cb in QCoreApplication::postEvent (receiver=0x9d452f0, event=0x9d043808) at kernel/qcoreapplication.cpp:1304
#5  0xb5b7df1c in queued_activate (argv=0x8df98578, c=0x9d45248, signal=4, sender=0x9b802f0) at kernel/qobject.cpp:3432
#6  QMetaObject::activate (sender=0x9b802f0, m=0xab99fd24, local_signal_index=0, argv=0x8df98578) at kernel/qobject.cpp:3508
#7  0xab9665b5 in ?? () from /usr/lib/kde4/plugins/phonon_backend/phonon_gstreamer.so
#8  0xab966bd0 in ?? () from /usr/lib/kde4/plugins/phonon_backend/phonon_gstreamer.so
#9  0xab7548f9 in ?? () from /usr/lib/gstreamer-0.10/libgstcoreelements.so
#10 0xb334f126 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#11 0xb3360f25 in ?? () from /usr/lib/libgobject-2.0.so.0
#12 0xb336912e in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#13 0xb33692a3 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#14 0xab7540b8 in ?? () from /usr/lib/gstreamer-0.10/libgstcoreelements.so
#15 0xaff16641 in ?? () from /usr/lib/libgstbase-0.10.so.0
#16 0xaff1a4fb in ?? () from /usr/lib/libgstbase-0.10.so.0
#17 0xaff1ab80 in ?? () from /usr/lib/libgstbase-0.10.so.0
#18 0xaff1afe6 in ?? () from /usr/lib/libgstbase-0.10.so.0
#19 0xafe62188 in gst_pad_push () from /usr/lib/libgstreamer-0.10.so.0
#20 0xaff2c1bb in ?? () from /usr/lib/libgstbase-0.10.so.0
#21 0xafe62188 in gst_pad_push () from /usr/lib/libgstreamer-0.10.so.0
#22 0xaff2c1bb in ?? () from /usr/lib/libgstbase-0.10.so.0
#23 0xafe62188 in gst_pad_push () from /usr/lib/libgstreamer-0.10.so.0
#24 0xab771dc2 in ?? () from /usr/lib/gstreamer-0.10/libgstcoreelements.so
#25 0xafe8bd60 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#26 0xafe8cf38 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#27 0xb34bbd78 in ?? () from /usr/lib/libglib-2.0.so.0
#28 0xb34bb393 in ?? () from /usr/lib/libglib-2.0.so.0
#29 0xb53c6b5e in start_thread () from /lib/libpthread.so.0
#30 0xb585dede in clone () from /lib/libc.so.6

Thread 7 (Thread 0x8d799b40 (LWP 4814)):
#0  0xb53ca792 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0xb586b5cc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#2  0xb34d72b6 in g_cond_wait () from /usr/lib/libglib-2.0.so.0
#3  0xab771452 in ?? () from /usr/lib/gstreamer-0.10/libgstcoreelements.so
#4  0xafe8bd60 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#5  0xafe8cf38 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#6  0xb34bbd78 in ?? () from /usr/lib/libglib-2.0.so.0
#7  0xb34bb393 in ?? () from /usr/lib/libglib-2.0.so.0
#8  0xb53c6b5e in start_thread () from /lib/libpthread.so.0
#9  0xb585dede in clone () from /lib/libc.so.6

Thread 6 (Thread 0x8cf99b40 (LWP 4815)):
#0  0xb53ca792 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0xb586b5cc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#2  0xb34d72b6 in g_cond_wait () from /usr/lib/libglib-2.0.so.0
#3  0xab771452 in ?? () from /usr/lib/gstreamer-0.10/libgstcoreelements.so
#4  0xafe8bd60 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#5  0xafe8cf38 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#6  0xb34bbd78 in ?? () from /usr/lib/libglib-2.0.so.0
#7  0xb34bb393 in ?? () from /usr/lib/libglib-2.0.so.0
#8  0xb53c6b5e in start_thread () from /lib/libpthread.so.0
#9  0xb585dede in clone () from /lib/libc.so.6

Thread 5 (Thread 0x8c799b40 (LWP 4816)):
#0  0xb53ca792 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0xb586b5cc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#2  0xb34d72b6 in g_cond_wait () from /usr/lib/libglib-2.0.so.0
#3  0xab770822 in ?? () from /usr/lib/gstreamer-0.10/libgstcoreelements.so
#4  0xafe62188 in gst_pad_push () from /usr/lib/libgstreamer-0.10.so.0
#5  0xafe4b464 in gst_proxy_pad_chain_default () from /usr/lib/libgstreamer-0.10.so.0
#6  0xafe62188 in gst_pad_push () from /usr/lib/libgstreamer-0.10.so.0
#7  0xab77fd68 in ?? () from /usr/lib/gstreamer-0.10/libgstcoreelements.so
#8  0xab780319 in ?? () from /usr/lib/gstreamer-0.10/libgstcoreelements.so
#9  0xafe62188 in gst_pad_push () from /usr/lib/libgstreamer-0.10.so.0
#10 0xab771dc2 in ?? () from /usr/lib/gstreamer-0.10/libgstcoreelements.so
#11 0xafe8bd60 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#12 0xafe8cf38 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#13 0xb34bbd78 in ?? () from /usr/lib/libglib-2.0.so.0
#14 0xb34bb393 in ?? () from /usr/lib/libglib-2.0.so.0
#15 0xb53c6b5e in start_thread () from /lib/libpthread.so.0
#16 0xb585dede in clone () from /lib/libc.so.6

Thread 4 (Thread 0x8bf99b40 (LWP 4817)):
#0  0xb53ca792 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0xb586b5cc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#2  0xb34d72b6 in g_cond_wait () from /usr/lib/libglib-2.0.so.0
#3  0xafe8bf5f in ?? () from /usr/lib/libgstreamer-0.10.so.0
#4  0xafe8cf38 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#5  0xb34bbd78 in ?? () from /usr/lib/libglib-2.0.so.0
#6  0xb34bb393 in ?? () from /usr/lib/libglib-2.0.so.0
#7  0xb53c6b5e in start_thread () from /lib/libpthread.so.0
#8  0xb585dede in clone () from /lib/libc.so.6

Thread 3 (Thread 0x8b799b40 (LWP 4818)):
#0  0xb5853171 in poll () from /lib/libc.so.6
#1  0xabd1f2a6 in ?? () from /usr/lib/libasound.so.2
#2  0xabd1f46d in snd_pcm_wait () from /usr/lib/libasound.so.2
#3  0xabdcdbd3 in ?? () from /usr/lib/gstreamer-0.10/libgstalsa.so
#4  0xab7f55b5 in ?? () from /usr/lib/libgstaudio-0.10.so.0
#5  0xb34bb393 in ?? () from /usr/lib/libglib-2.0.so.0
#6  0xb53c6b5e in start_thread () from /lib/libpthread.so.0
#7  0xb585dede in clone () from /lib/libc.so.6

Thread 2 (Thread 0x8af99b40 (LWP 4870)):
#0  0xb53ca792 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0xb586b5cc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#2  0xb34d72b6 in g_cond_wait () from /usr/lib/libglib-2.0.so.0
#3  0xafe8bf5f in ?? () from /usr/lib/libgstreamer-0.10.so.0
#4  0xafe8cf38 in ?? () from /usr/lib/libgstreamer-0.10.so.0
#5  0xb34bbd78 in ?? () from /usr/lib/libglib-2.0.so.0
#6  0xb34bb393 in ?? () from /usr/lib/libglib-2.0.so.0
#7  0xb53c6b5e in start_thread () from /lib/libpthread.so.0
#8  0xb585dede in clone () from /lib/libc.so.6

Thread 1 (Thread 0xad0f9740 (LWP 4047)):
[KCrash Handler]
#6  SqlRegistry::emptyCache (this=this@entry=0x9dc9060) at /usr/src/debug/amarok-2.8.0/src/core-impl/collections/db/sql/SqlRegistry.cpp:910
#7  0xab4ba73b in qt_static_metacall (_id=0, _o=0x9dc9060, _c=<optimized out>, _a=<optimized out>) at /usr/src/debug/amarok-2.8.0/build/src/core-impl/collections/db/sql/SqlRegistry.moc:49
#8  SqlRegistry::qt_static_metacall (_o=_o@entry=0x9dc9060, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=0, _a=0xbfedc36c) at /usr/src/debug/amarok-2.8.0/build/src/core-impl/collections/db/sql/SqlRegistry.moc:43
#9  0xb5b7dc22 in QMetaObject::activate (sender=0x9d4b568, m=0xb5cd14b8 <QTimer::staticMetaObject>, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3548
#10 0xb5bcf3a5 in QTimer::timeout (this=0x9d4b568) at .moc/release-shared/moc_qtimer.cpp:148
#11 0xb5b84d16 in QTimer::timerEvent (this=0x9d4b568, e=0xbfedc8b0) at kernel/qtimer.cpp:280
#12 0xb5b7b9f4 in QObject::event (this=0x9d4b568, e=0xbfedc8b0) at kernel/qobject.cpp:1165
#13 0xb5e21bac in QApplicationPrivate::notify_helper (this=0x986b220, receiver=0x9d4b568, e=0xbfedc8b0) at kernel/qapplication.cpp:4562
#14 0xb5e265cc in QApplication::notify (this=0xbfedc8b0, receiver=0x9d4b568, e=0xbfedc8b0) at kernel/qapplication.cpp:3944
#15 0xb74ccae1 in KApplication::notify (this=0xbfedcd6c, receiver=0x9d4b568, event=0xbfedc8b0) at /usr/src/debug/kdelibs-4.10.5/kdeui/kernel/kapplication.cpp:311
#16 0xb5b658ce in QCoreApplication::notifyInternal (this=0xbfedcd6c, receiver=0x9d4b568, event=0xbfedc8b0) at kernel/qcoreapplication.cpp:946
#17 0xb5b9a247 in sendEvent (event=<optimized out>, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#18 QTimerInfoList::activateTimers (this=0x986c334) at kernel/qeventdispatcher_unix.cpp:637
#19 0xb5b97218 in timerSourceDispatch (source=0x986c300) at kernel/qeventdispatcher_glib.cpp:186
#20 timerSourceDispatch (source=0x986c300) at kernel/qeventdispatcher_glib.cpp:180
#21 0xb34958b3 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#22 0xb3495c50 in ?? () from /usr/lib/libglib-2.0.so.0
#23 0xb3495d31 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#24 0xb5b97891 in QEventDispatcherGlib::processEvents (this=0x97419a0, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#25 0xb5ed34aa in QGuiEventDispatcherGlib::processEvents (this=0x97419a0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#26 0xb5b6439c in QEventLoop::processEvents (this=this@entry=0xbfedcb18, flags=...) at kernel/qeventloop.cpp:149
#27 0xb5b64691 in QEventLoop::exec (this=0xbfedcb18, flags=...) at kernel/qeventloop.cpp:204
#28 0xb5b6994a in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1218
#29 0xb5e1fa24 in QApplication::exec () at kernel/qapplication.cpp:3823
#30 0x0804f236 in main (argc=1, argv=0xbfedce54) at /usr/src/debug/amarok-2.8.0/src/main.cpp:329

Reported using DrKonqi
Comment 1 Myriam Schweingruber 2013-12-19 17:01:50 UTC
Very strange crash, did you set up an external database instead of using the embedded one?

Also: you say it is random, are you sure it is always the same reason, e.g are the backtraces identical?
Comment 2 Mirco 2013-12-19 17:45:31 UTC
(In reply to comment #1)
> Very strange crash, did you set up an external database instead of using the
> embedded one?
> 
> Also: you say it is random, are you sure it is always the same reason, e.g
> are the backtraces identical?

No, I'm using the embedded database just as preconfigured.

Random means that the crash occurs after having played two songs, the next time it crashes after the fifth song, then again after the third, and so on...
I don't know whether the backtraces are identical or not, sorry. I'm not used to read backtraces.
(It's the second time for me reporting a bug.)
But the circumstances are always the same: start playing a track in amarok, moving away from my computer (btw. screensavers are deactivated on my computer), then after a random couple of played songs amarok crashes. After the crash, parts of my desktop environment don't respond anymore, so I have to kill the whole KDE session and log in again to get back to normal behaviour.
Comment 3 Myriam Schweingruber 2013-12-19 20:31:04 UTC
Does it crash on track change? In that case it might be worth trying to change the phonon backend.
Comment 4 Mirco 2013-12-21 20:52:55 UTC
No, It didn't chrash on track change.
Most of the time it crashed a few seconds after a track change.

I will try another phonon backend (vlc?). 
At the moment, I'm using the gstreamer backend.
Comment 5 Myriam Schweingruber 2013-12-22 10:42:24 UTC
*** Bug 329043 has been marked as a duplicate of this bug. ***
Comment 6 Myriam Schweingruber 2013-12-22 10:43:48 UTC
Thank you for the feedback.
Comment 7 Matěj Laitl 2013-12-22 10:49:25 UTC
The backtrace is extremely mysterious to me, it shouldn't have crashed at that point.

Perhaps we can try to rule-out database corruption, please:
 1. quit Amarok
 2. backup (rename, don't delete) the ~/.kde/share/apps/amarok/mysqle directory (it may be .kde4 in some distros)
 3. Start Amarok again, give it some time to rescan your collection
 4. See whether you still get this behaviour, report back
Comment 8 Mirco 2013-12-25 15:55:51 UTC
Yes, I definitely think we can rule-out database corruption.
Now, after beeing a few days away from home (holidays), I booted my computer and installed all new updates (there were many gstreamer package updates as always from the packman repo), I'm not able to reproduce the crash anymore.
Maybe the gstreamer plugins could've been the problem? I don't know.
At this point, the only thing I did besides updating was to switch phonon backend to vlc and then back to gstreamer.
So at the moment Amarok plays as flawless as ever without any crash so far.
The only misbehaviour left now is the lag of the whole GUI (Amarok and also KDE) after starting a track (as mentioned before).
Comment 9 Matěj Laitl 2013-12-26 13:42:30 UTC
Okay then.

Wrt the lag: if it bothers you, you may report it as another bug. For any UI freezes, the most important piece of info is the backtrace of the lag, please do the following:

Repeatedly (e.g. 3 times):
 1. open console and paste (don't execute yet) the following command:
gdb --ex "set height 0" --ex "bt 10" --ex detach --ex q -p $(pidof amarok)
 2. start Amarok from desktop and execute the above command during the moment it lags

Then paste all the backtraces inline to the bug.
Comment 10 Myriam Schweingruber 2014-01-15 08:35:39 UTC
*** Bug 329981 has been marked as a duplicate of this bug. ***
Comment 11 Myriam Schweingruber 2014-03-02 12:18:01 UTC
*** Bug 330825 has been marked as a duplicate of this bug. ***
Comment 12 Myriam Schweingruber 2014-03-02 12:20:04 UTC
*** Bug 331675 has been marked as a duplicate of this bug. ***
Comment 13 Robert Retzbach 2014-06-07 08:51:31 UTC
Created attachment 87057 [details]
New crash information added by DrKonqi

amarok (2.8.0) on KDE Platform 4.10.5 using Qt 4.8.5

- What I was doing when the application crashed:

updating music library
then play a track and after a few seconds of playback amarok segfaulted

-- Backtrace (Reduced):
#5  0x00007fca51e5487f in SqlRegistry::emptyCache() () from /usr/lib64/libamarok-sqlcollection.so.1
[...]
#7  0x00007fca702e4961 in QObject::event(QEvent*) () from /usr/lib64/qt/lib/libQtCore.so.4
#8  0x00007fca70d0cc5c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt/lib/libQtGui.so.4
#9  0x00007fca70d13220 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt/lib/libQtGui.so.4
#10 0x00007fca728c73aa in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
Comment 14 Myriam Schweingruber 2015-01-23 10:09:27 UTC
*** Bug 343167 has been marked as a duplicate of this bug. ***
Comment 15 Nick W 2015-01-23 20:54:06 UTC
Hi there:

I came over from bug 343167, my backtrace is there.

A bit of additional info:
I'm using the VLC backend in phonon.
Same as Mirco, I switch tracks, it plays a few seconds then crashes.
I also have UI freezes (I'll try the above command)

A weird quirk:
I can not reproduce the crash running Amarok under gdb

My local collection is also on a Samba share. Is that a bad idea? I like having it available anywhere on mynetwork.
Comment 16 Myriam Schweingruber 2015-01-23 21:18:52 UTC
(In reply to Nick W from comment #15)
> Hi there:
> 
> I came over from bug 343167, my backtrace is there.
> 
> A bit of additional info:
> I'm using the VLC backend in phonon.
> Same as Mirco, I switch tracks, it plays a few seconds then crashes.
> I also have UI freezes (I'll try the above command)
> 
> A weird quirk:
> I can not reproduce the crash running Amarok under gdb
> 
> My local collection is also on a Samba share. Is that a bad idea? I like
> having it available anywhere on mynetwork.

No, a samba share should just work fine, provided it is mounted and available when you try to play something. Maybe check if you do not have a timeout over the samba share. For me this works fine with both backends.

FWIW: if you can't reproduce this when running with gdb I fear there is little we can do about, a crash needs to be reproducible every time.
Comment 17 Ralf Engels 2015-01-23 21:45:29 UTC
I have seen a freeze because of a recursive lock at the same location.
I thought I solved it with
3073b4f8403ff5268354f53011b4d57c684c4499
Comment 18 Myriam Schweingruber 2015-04-17 08:10:20 UTC
add commit link
Comment 19 Myriam Schweingruber 2015-04-17 08:10:41 UTC
*** Bug 346241 has been marked as a duplicate of this bug. ***
Comment 20 Myriam Schweingruber 2015-06-09 11:26:49 UTC
*** Bug 348919 has been marked as a duplicate of this bug. ***
Comment 21 Myriam Schweingruber 2017-09-21 10:45:47 UTC
*** Bug 384239 has been marked as a duplicate of this bug. ***