Bug 241695

Summary: Amarok segfaults on Startup
Product: [Applications] amarok Reporter: Michael Vastola <Mike>
Component: generalAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 2.3.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Michael Vastola 2010-06-14 04:50:00 UTC
Version:           2.3.0 (using KDE 4.4.2) 
OS:                Linux

Application: amarok (2.3.0)
KDE Platform Version: 4.4.2 (KDE 4.4.2)
Qt Version: 4.6.2
Operating System: Linux 2.6.31-14-generic x86_64
Distribution: Ubuntu 10.04 LTS

-- Information about the crash:
Amarok wouldn't play certain tracks and would just do nothing when I clicked play so I attempted to restart.  Upon trying to start Amarok a segfault occurred.

The crash can be reproduced some of the time.

 -- Backtrace:
Application: Amarok (amarok), signal: Segmentation fault
pthread_cond_timedwait@@GLIBC_2.3.2 ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
	in ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
[Current thread is 1 (Thread 0x7f99371dc780 (LWP 6573))]

Thread 14 (Thread 0x7f991bcaf710 (LWP 6575)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007f99219af081 in metronom_sync_loop (this=0xd473b0) at metronom.c:851
#2  0x00007f993255a9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007f99341106cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 13 (Thread 0x7f991ae76710 (LWP 6576)):
[KCrash Handler]
#5  QBasicAtomicInt::ref (this=0xcc0f30) at /usr/include/qt4/QtCore/qatomic_x86_64.h:121
#6  QHash (this=0xcc0f30) at /usr/include/qt4/QtCore/qhash.h:283
#7  QSet (this=0xcc0f30) at /usr/include/qt4/QtCore/qset.h:60
#8  Phonon::Xine::SourceNode::sinks (this=0xcc0f30) at ../../xine/sourcenode.cpp:85
#9  0x00007f9921c16c28 in Phonon::Xine::XineStream::createStream (this=0xd4f850) at ../../xine/xinestream.cpp:512
#10 0x00007f9921c18f53 in Phonon::Xine::XineStream::event (this=0xd4f850, ev=0x26cf420) at ../../xine/xinestream.cpp:1241
#11 0x00007f99353b922c in QApplicationPrivate::notify_helper (this=0xad0210, receiver=0xd4f850, e=0x26cf420) at kernel/qapplication.cpp:4300
#12 0x00007f99353bf6fb in QApplication::notify (this=0x7fff9d579bd0, receiver=0xd4f850, e=0x26cf420) at kernel/qapplication.cpp:4183
#13 0x00007f9934a4506c in QCoreApplication::notifyInternal (this=0x7fff9d579bd0, receiver=0xd4f850, event=0x26cf420) at kernel/qcoreapplication.cpp:704
#14 0x00007f9934a477e7 in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0xcc1410) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#15 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0xcc1410) at kernel/qcoreapplication.cpp:1345
#16 0x00007f9934a6e9d3 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#17 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#18 0x00007f992d5df8c2 in g_main_dispatch (context=0xd52ef0) at /build/buildd/glib2.0-2.24.0/glib/gmain.c:1960
#19 IA__g_main_context_dispatch (context=0xd52ef0) at /build/buildd/glib2.0-2.24.0/glib/gmain.c:2513
#20 0x00007f992d5e3748 in g_main_context_iterate (context=0xd52ef0, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>)
    at /build/buildd/glib2.0-2.24.0/glib/gmain.c:2591
#21 0x00007f992d5e38fc in IA__g_main_context_iteration (context=0xd52ef0, may_block=1) at /build/buildd/glib2.0-2.24.0/glib/gmain.c:2654
#22 0x00007f9934a6e513 in QEventDispatcherGlib::processEvents (this=0xc66980, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#23 0x00007f9934a43992 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#24 0x00007f9934a43d6c in QEventLoop::exec (this=0x7f991ae75d70, flags=) at kernel/qeventloop.cpp:201
#25 0x00007f993494dd59 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#26 0x00007f9921c0b440 in Phonon::Xine::XineThread::run (this=0xd48270) at ../../xine/xinethread.cpp:143
#27 0x00007f9934950775 in QThreadPrivate::start (arg=0xd48270) at thread/qthread_unix.cpp:248
#28 0x00007f993255a9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#29 0x00007f99341106cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#30 0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7f991a46b710 (LWP 6579)):
#0  0x00007f9934103f53 in *__GI___poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=333) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f991a470915 in my_snd_mixer_wait (data=<value optimized out>) at audio_alsa_out.c:150
#2  ao_alsa_handle_event_thread (data=<value optimized out>) at audio_alsa_out.c:166
#3  0x00007f993255a9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007f99341106cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7f9919c6a710 (LWP 6580)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f99219bfe23 in fifo_peek_int (this_gen=<value optimized out>) at audio_out.c:348
#2  fifo_peek (this_gen=<value optimized out>) at audio_out.c:388
#3  ao_loop (this_gen=<value optimized out>) at audio_out.c:1015
#4  0x00007f993255a9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007f99341106cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 10 (Thread 0x7f9918e5b710 (LWP 6581)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f99219bfe23 in fifo_peek_int (this_gen=<value optimized out>) at audio_out.c:348
#2  fifo_peek (this_gen=<value optimized out>) at audio_out.c:388
#3  ao_loop (this_gen=<value optimized out>) at audio_out.c:1015
#4  0x00007f993255a9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007f99341106cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 9 (Thread 0x7f991865a710 (LWP 6582)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f99219bfe23 in fifo_peek_int (this_gen=<value optimized out>) at audio_out.c:348
#2  fifo_peek (this_gen=<value optimized out>) at audio_out.c:388
#3  ao_loop (this_gen=<value optimized out>) at audio_out.c:1015
#4  0x00007f993255a9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007f99341106cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7f9917e59710 (LWP 6583)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f99219bfe23 in fifo_peek_int (this_gen=<value optimized out>) at audio_out.c:348
#2  fifo_peek (this_gen=<value optimized out>) at audio_out.c:388
#3  ao_loop (this_gen=<value optimized out>) at audio_out.c:1015
#4  0x00007f993255a9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#5  0x00007f99341106cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7f9910b9f710 (LWP 6584)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f993495172b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x2380cd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x2380cd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f9930fa5026 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x237fe90, th=0x2381100) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f9930fa76ab in ThreadWeaver::WorkingHardState::applyForWork (this=0x237fa60, th=0x2381100) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f9930fa76c4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x237fa60, th=0x2381100) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007f9930fa5bff in ThreadWeaver::ThreadRunHelper::run (this=0x7f9910b9ede0, parent=0x237fe90, th=0x2381100) at ../../../threadweaver/Weaver/Thread.cpp:87
#7  0x00007f9930fa6168 in ThreadWeaver::Thread::run (this=0x2381100) at ../../../threadweaver/Weaver/Thread.cpp:142
#8  0x00007f9934950775 in QThreadPrivate::start (arg=0x2381100) at thread/qthread_unix.cpp:248
#9  0x00007f993255a9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007f99341106cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f990bfff710 (LWP 6585)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f993495172b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x2380cd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x2380cd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f9930fa5026 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x237fe90, th=0x2382a70) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f9930fa76ab in ThreadWeaver::WorkingHardState::applyForWork (this=0x237fa60, th=0x2382a70) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f9930fa76c4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x237fa60, th=0x2382a70) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007f9930fa76c4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x237fa60, th=0x2382a70) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00007f9930fa5bff in ThreadWeaver::ThreadRunHelper::run (this=0x7f990bffede0, parent=0x237fe90, th=0x2382a70) at ../../../threadweaver/Weaver/Thread.cpp:87
#8  0x00007f9930fa6168 in ThreadWeaver::Thread::run (this=0x2382a70) at ../../../threadweaver/Weaver/Thread.cpp:142
#9  0x00007f9934950775 in QThreadPrivate::start (arg=0x2382a70) at thread/qthread_unix.cpp:248
#10 0x00007f993255a9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#11 0x00007f99341106cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f9907722710 (LWP 6588)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f993495172b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x2380cd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x2380cd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f9930fa5026 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x237fe90, th=0x246f590) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f9930fa76ab in ThreadWeaver::WorkingHardState::applyForWork (this=0x237fa60, th=0x246f590) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f9930fa76c4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x237fa60, th=0x246f590) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#6  0x00007f9930fa76c4 in ThreadWeaver::WorkingHardState::applyForWork (this=0x237fa60, th=0x246f590) at ../../../threadweaver/Weaver/WorkingHardState.cpp:74
#7  0x00007f9930fa5bff in ThreadWeaver::ThreadRunHelper::run (this=0x7f9907721de0, parent=0x237fe90, th=0x246f590) at ../../../threadweaver/Weaver/Thread.cpp:87
#8  0x00007f9930fa6168 in ThreadWeaver::Thread::run (this=0x246f590) at ../../../threadweaver/Weaver/Thread.cpp:142
#9  0x00007f9934950775 in QThreadPrivate::start (arg=0x246f590) at thread/qthread_unix.cpp:248
#10 0x00007f993255a9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#11 0x00007f99341106cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f9906f21710 (LWP 6589)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f993495172b in QWaitConditionPrivate::wait (this=<value optimized out>, mutex=0x2380cd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:87
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x2380cd0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:159
#3  0x00007f9930fa5026 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x237fe90, th=0x249c470) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007f9930fa76ab in ThreadWeaver::WorkingHardState::applyForWork (this=0x237fa60, th=0x249c470) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007f9930fa5bff in ThreadWeaver::ThreadRunHelper::run (this=0x7f9906f20de0, parent=0x237fe90, th=0x249c470) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007f9930fa6168 in ThreadWeaver::Thread::run (this=0x249c470) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007f9934950775 in QThreadPrivate::start (arg=0x249c470) at thread/qthread_unix.cpp:248
#8  0x00007f993255a9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#9  0x00007f99341106cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f9906720710 (LWP 6590)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f99308102a6 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x7f9930aee220) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2304
#2  0x00007f99308102e9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0x7f9930afc2ec) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1438
#3  0x00007f993255a9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007f99341106cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f98f8903710 (LWP 8581)):
#0  0x00007f9934108fb3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f99219d82c5 in xine_usec_sleep (usec=<value optimized out>) at utils.c:481
#2  0x00007f99219bcc99 in video_out_loop (this_gen=<value optimized out>) at video_out.c:1246
#3  0x00007f993255a9ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007f99341106cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f99371dc780 (LWP 6573)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007f99349500e5 in thread_sleep (ti=0x7fff9d579920) at thread/qthread_unix.cpp:398
#2  0x00007f9934950250 in QThread::msleep (msecs=<value optimized out>) at thread/qthread_unix.cpp:424
#3  0x00007f9921c32b8a in ~Backend (this=0xcc5f60, __in_chrg=<value optimized out>) at ../../xine/backend.cpp:111
#4  0x00007f9931930846 in ~FactoryPrivate (this=0xc6c4d0, __in_chrg=<value optimized out>) at ../3rdparty/phonon/phonon/factory.cpp:218
#5  0x00007f9934a455a6 in qt_call_post_routines () at kernel/qcoreapplication.cpp:201
#6  0x00007f99353c2308 in ~QApplication (this=0x7fff9d579bd0, __in_chrg=<value optimized out>) at kernel/qapplication.cpp:1016
#7  0x00007f99364251a7 in ~App (this=0x7fff9d579bd0, __in_chrg=<value optimized out>) at ../../src/App.cpp:302
#8  0x000000000040878e in main (argc=1, argv=0x7fff9d57bb48) at ../../src/main.cpp:237

Possible duplicates by query: bug 240845, bug 237934, bug 227790, bug 225839, bug 221431.

Report to https://bugs.kde.org

Reproducible: Sometimes

Steps to Reproduce:
Open Amarok

Actual Results:  
Segfault

Expected Results:  
Open Normally
Comment 1 Mikko C. 2010-06-14 09:28:11 UTC

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