Bug 199879

Summary: amarok segfault at startup
Product: [Applications] amarok Reporter: Jarle Thorsen <jarlethorsen>
Component: generalAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra
Priority: NOR    
Version: 2.1.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jarle Thorsen 2009-07-12 15:53:52 UTC
Application that crashed: amarok
Version of the application: 2.1.1
KDE Version: 4.2.95 (KDE 4.2.95 (KDE 4.3 RC1))
Qt Version: 4.5.1
Operating System: Linux 2.6.28-13-generic x86_64
Distribution: Ubuntu 9.04

What I was doing when the application crashed:
Amarok only segfaults when run as my normal user, not when run as a new test user I have created, so I guess there is something in my settings that is affecting the startup.

I have tried renaming the following files/dirs to start with a clean setup, but it does not seem to help:
 ~/.kde/share/config/amarok_homerc
~/.kde/share/apps/amarok
 ~/.kde/share/config/amarokrc

Reinstalling libxine1 and phonon-backend-xine did not help.

 -- 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:217
	in ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S
[Current thread is 0 (LWP 29198)]

Thread 6 (Thread 0x7fc4ad441950 (LWP 29199)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:217
#1  0x00007fc4b7361f91 in ?? () from /usr/lib/libxine.so.1
#2  0x00007fc4c87923ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#3  0x00007fc4c5fc3fcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fc4acc40950 (LWP 29200)):
[KCrash Handler]
#5  0x00007fc4b737c9b0 in xine_post_input () from /usr/lib/libxine.so.1
#6  0x00007fc4b75e9139 in Phonon::Xine::VolumeFaderEffectXT::createInstance (this=0x2aa1760) at /build/buildd/phonon-4.3.1/xine/volumefadereffect.cpp:123
#7  0x00007fc4b75cde5a in Phonon::Xine::EffectXT::ensureInstance (this=0x2aa1760) at /build/buildd/phonon-4.3.1/xine/effect.cpp:70
#8  0x00007fc4b75ce009 in Phonon::Xine::EffectXT::audioOutputPort (this=0x0) at /build/buildd/phonon-4.3.1/xine/effect.cpp:45
#9  0x00007fc4b75d0b32 in Phonon::Xine::AudioOutputXT::rewireTo (this=0x2a1f5d0, source=0x7fc4b75f9b47) at /build/buildd/phonon-4.3.1/xine/audiooutput.cpp:332
#10 0x00007fc4b75bebb1 in Phonon::Xine::XineThread::event (this=<value optimized out>, e=0x2aa24b0) at /build/buildd/phonon-4.3.1/xine/xinethread.cpp:130
#11 0x00007fc4c76beb9d in QApplicationPrivate::notify_helper (this=0x2981970, receiver=0x298dbf0, e=0x2aa24b0) at kernel/qapplication.cpp:4057
#12 0x00007fc4c76c6dea in QApplication::notify (this=0x7fffd1af7c90, receiver=0x298dbf0, e=0x2aa24b0) at kernel/qapplication.cpp:4022
#13 0x00007fc4c94e162b in KApplication::notify (this=0x7fffd1af7c90, receiver=0x298dbf0, event=0x2aa24b0) at /build/buildd/kde4libs-4.2.95/kdeui/kernel/kapplication.cpp:302
#14 0x00007fc4c6b41dfc in QCoreApplication::notifyInternal (this=0x7fffd1af7c90, receiver=0x298dbf0, event=0x2aa24b0) at kernel/qcoreapplication.cpp:610
#15 0x00007fc4c6b42a6a in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x2a78580) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
#16 0x00007fc4c6b6b8a3 in postEventSourceDispatch (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
#17 0x00007fc4bec0620a in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#18 0x00007fc4bec098e0 in ?? () from /usr/lib/libglib-2.0.so.0
#19 0x00007fc4bec09a7c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#20 0x00007fc4c6b6b52f in QEventDispatcherGlib::processEvents (this=0x2a13c90, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:324
#21 0x00007fc4c6b406a2 in QEventLoop::processEvents (this=<value optimized out>, flags={i = -1396441200}) at kernel/qeventloop.cpp:149
#22 0x00007fc4c6b40a6d in QEventLoop::exec (this=0x7fc4acc3ffd0, flags={i = -1396441120}) at kernel/qeventloop.cpp:200
#23 0x00007fc4c6a55d68 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#24 0x00007fc4b75bd62c in Phonon::Xine::XineThread::run (this=0x298dbf0) at /build/buildd/phonon-4.3.1/xine/xinethread.cpp:143
#25 0x00007fc4c6a58d02 in QThreadPrivate::start (arg=0x298dbf0) at thread/qthread_unix.cpp:189
#26 0x00007fc4c87923ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#27 0x00007fc4c5fc3fcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#28 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fc4ac235950 (LWP 29203)):
#0  0x00007fc4c5fba496 in *__GI___poll (fds=0x7fc4ac234f60, nfds=1, timeout=333) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fc4ac23a969 in ?? () from /usr/lib/xine/plugins/1.26/xineplug_ao_out_alsa.so
#2  0x00007fc4c87923ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#3  0x00007fc4c5fc3fcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fc4aba34950 (LWP 29204)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007fc4b7373353 in ?? () from /usr/lib/libxine.so.1
#2  0x00007fc4c87923ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#3  0x00007fc4c5fc3fcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fc4aafcd950 (LWP 29205)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007fc4b7373353 in ?? () from /usr/lib/libxine.so.1
#2  0x00007fc4c87923ba in start_thread (arg=<value optimized out>) at pthread_create.c:297
#3  0x00007fc4c5fc3fcd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fc4c99b1790 (LWP 29198)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:217
#1  0x00007fc4c6a58745 in thread_sleep (ti=0x7fffd1af7000) at thread/qthread_unix.cpp:298
#2  0x00007fc4c6a588ae in QThread::msleep (msecs=200) at thread/qthread_unix.cpp:324
#3  0x00007fc4b75e124a in ~Backend (this=0x2b0fc90) at /build/buildd/phonon-4.3.1/xine/backend.cpp:108
#4  0x00007fc4c2e33130 in ~FactoryPrivate (this=0x2a21e70) at /build/buildd/phonon-4.3.1/phonon/factory.cpp:199
#5  0x00007fc4c5f146ed in *__GI_exit (status=1) at exit.c:75
#6  0x00007fc4c771c308 in qt_xio_errhandler () at kernel/qapplication_x11.cpp:707
#7  0x00007fc4c94e1048 in KApplication::xioErrhandler (this=0x7fffd1af7c90, dpy=0x29b15a0) at /build/buildd/kde4libs-4.2.95/kdeui/kernel/kapplication.cpp:408
#8  0x00007fc4c55dd6e4 in _XIOError () from /usr/lib/libX11.so.6
#9  0x00007fc4c55e4a1f in ?? () from /usr/lib/libX11.so.6
#10 0x00007fc4c55e5345 in _XEventsQueued () from /usr/lib/libX11.so.6
#11 0x00007fc4c55bcf0a in XFlush () from /usr/lib/libX11.so.6
#12 0x00007fc4c770f341 in QWidget::setCursor (this=0x2a33cf0, cursor=@0x7fffd1af7240) at kernel/qwidget.cpp:4604
#13 0x00007fc4c7b055c5 in QSizeGripPrivate::init (this=0x2de25b0) at widgets/qsizegrip.cpp:241
#14 0x00007fc4c7b059a3 in QSizeGrip (this=0x2a33cf0, parent=0x2a95f30) at widgets/qsizegrip.cpp:212
#15 0x00007fc4c7b141a8 in QStatusBar::setSizeGripEnabled (this=0x2a95f30, enabled=<value optimized out>) at widgets/qstatusbar.cpp:496
#16 0x00007fc4c7b145f8 in QStatusBar (this=0x2a95f30, parent=0x2a75810) at widgets/qstatusbar.cpp:285
#17 0x00007fc4c95cec96 in KStatusBar (this=0x7fffd1af6f84, parent=0x0) at /build/buildd/kde4libs-4.2.95/kdeui/widgets/kstatusbar.cpp:74
#18 0x00007fc4c8ec8001 in StatusBar::StatusBar () from /usr/lib/libamaroklib.so.1
#19 0x00007fc4c8f2142e in MainWindow::MainWindow () from /usr/lib/libamaroklib.so.1
#20 0x00007fc4c8f03bf7 in App::continueInit () from /usr/lib/libamaroklib.so.1
#21 0x00007fc4c8f04b2b in App::App () from /usr/lib/libamaroklib.so.1
#22 0x000000000053305b in _start ()
217	in ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S

This bug may be a duplicate of or related to bug 197540

Reported using DrKonqi
Comment 1 Dario Andres 2009-07-13 15:26:59 UTC
Another KStatusBar XIO error with a Phonon related backtrace. Like bug 194893
Bug 188602 suggests that reinstalling xine fixed the issue. Try it.
Thanks

*** This bug has been marked as a duplicate of bug 194893 ***
Comment 2 Jarle Thorsen 2009-07-13 17:46:05 UTC
reinstalling the libxine1 and phonon-backend-xine packages did not make any difference, however removing the phonon-backend-xine package completely and only having phonon-backend-gstreamer installed lets amarok startup without crashing. It fails to play any songs using that backend though. It plays the test sample in the settings, but it will not start playing any songs...
Comment 3 Myriam Schweingruber 2009-07-15 19:50:15 UTC
Jarle, we recommend using the xine backend for a reason, there are too many bugs with gstreamer and phonon at the moment. Make sure you do not have pulseaudio installed and us the xine backend.

The crash seems to be in xinelib anyway, so not an Amarok bug.

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