Version: (using Devel) OS: Linux Installed from: Compiled sources When trying to configure flite, kttsd crashed for me. It crashed when I configured flite and wanted to test its output. Application: KDE Control Module (kcmshell4), signal SIGSEGV [Current thread is 0 (LWP 9862)] Thread 5 (Thread 0xb3305b90 (LWP 9863)): #0 0xb7f48424 in __kernel_vsyscall () #1 0xb6475352 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/i686/cmov/libpthread.so.0 #2 0xb7eb17b4 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/i686/cmov/libc.so.6 #3 0xb41143ff in ?? () from /usr/lib/libxine.so.1 Thread 4 (Thread 0xb2a8eb90 (LWP 9864)): [KCrash Handler] #6 Phonon::Xine::SourceNode::sinks (this=0xa0b9258) at /usr/include/qt4/QtCore/qatomic_i386.h:116 #7 0xb416853a in Phonon::Xine::XineStream::createStream (this=0x9f722c0) at ../../xine/xinestream.cpp:508 #8 0xb41703b1 in Phonon::Xine::XineStream::event (this=0x9f722c0, ev=0x9effc80) at ../../xine/xinestream.cpp:1235 #9 0xb6d4d79c in QApplicationPrivate::notify_helper (this=0x9c36570, receiver=0x9f722c0, e=0x9effc80) at kernel/qapplication.cpp:3803 #10 0xb6d5561e in QApplication::notify (this=0xbff63f30, receiver=0x9f722c0, e=0x9effc80) at kernel/qapplication.cpp:3393 #11 0xb7bbe7fd in KApplication::notify (this=0xbff63f30, receiver=0x9f722c0, event=0x9effc80) at ../../kdeui/kernel/kapplication.cpp:307 #12 0xb76580e1 in QCoreApplication::notifyInternal (this=0xbff63f30, receiver=0x9f722c0, event=0x9effc80) at kernel/qcoreapplication.cpp:587 #13 0xb7658d65 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x9e78ad8) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209 #14 0xb768620a in QEventDispatcherUNIX::processEvents (this=0x9ef72b0, flags={i = -1297554776}) at kernel/qeventdispatcher_unix.cpp:861 #15 0xb76567aa in QEventLoop::processEvents (this=0xb2a8e320, flags={i = -1297554712}) at kernel/qeventloop.cpp:143 #16 0xb765696a in QEventLoop::exec (this=0xb2a8e320, flags={i = -1297554648}) at kernel/qeventloop.cpp:194 #17 0xb7565289 in QThread::exec (this=0x9ef70d0) at thread/qthread.cpp:458 #18 0xb41624f2 in Phonon::Xine::XineThread::run (this=0x9ef70d0) at ../../xine/xinethread.cpp:143 #19 0xb756852e in QThreadPrivate::start (arg=0x9ef70d0) at thread/qthread_unix.cpp:185 #20 0xb64714c0 in start_thread () from /lib/i686/cmov/libpthread.so.0 #21 0xb7ea361e in clone () from /lib/i686/cmov/libc.so.6 Thread 3 (Thread 0xb228db90 (LWP 9946)): #0 0xb7f48424 in __kernel_vsyscall () #1 0xb7e98da7 in poll () from /lib/i686/cmov/libc.so.6 #2 0xb2ab8c22 in poll_func (ufds=0x9f49c20, nfds=2, timeout=-1, userdata=0x9f8b928) at pulse/thread-mainloop.c:72 #3 0xb2aaac09 in pa_mainloop_poll (m=0x9f8b448) at pulse/mainloop.c:853 #4 0xb2aac3c3 in pa_mainloop_iterate (m=0x9f8b448, block=1, retval=0x0) at pulse/mainloop.c:919 #5 0xb2aac494 in pa_mainloop_run (m=0x9f8b448, retval=0x0) at pulse/mainloop.c:937 #6 0xb2ab89d3 in thread (userdata=0x9f8b428) at pulse/thread-mainloop.c:91 #7 0xb2ada182 in internal_thread_func (userdata=0x9f8b800) at pulsecore/thread-posix.c:73 #8 0xb64714c0 in start_thread () from /lib/i686/cmov/libpthread.so.0 #9 0xb7ea361e in clone () from /lib/i686/cmov/libc.so.6 Thread 2 (Thread 0xb1849b90 (LWP 9947)): #0 0xb7f48424 in __kernel_vsyscall () #1 0xb6475025 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/cmov/libpthread.so.0 #2 0xb7eb175d in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/i686/cmov/libc.so.6 #3 0xb41262a3 in ?? () from /usr/lib/libxine.so.1 #4 0x09f8be40 in ?? () #5 0x09f8be28 in ?? () #6 0x00000000 in ?? () Thread 1 (Thread 0xb60496c0 (LWP 9862)): #0 0xb7f48424 in __kernel_vsyscall () #1 0xb6475352 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/i686/cmov/libpthread.so.0 #2 0xb7eb17b4 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/i686/cmov/libc.so.6 #3 0xb7567f3e in thread_sleep (ti=0xbff60c80) at thread/qthread_unix.cpp:289 #4 0xb756806b in QThread::msleep (msecs=<value optimized out>) at thread/qthread_unix.cpp:315 #5 0xb4187f54 in ~Backend (this=0x9e7ccf0) at ../../xine/backend.cpp:108 #6 0xb42a2ce2 in ~FactoryPrivate (this=0x9e76100) at ../../phonon/factory.cpp:199 #7 0xb42a0215 in destroy () at ../../phonon/factory.cpp:84 #8 0xb429d8bb in ~CleanUpGlobalStatic (this=0xb42b8dd4) at ../../phonon/globalstatic_p.h:55 #9 0xb7df1ab9 in exit () from /lib/i686/cmov/libc.so.6 #10 0xb6dadb8b in qt_xio_errhandler () at kernel/qapplication_x11.cpp:584 #11 0xb7bbe1aa in KApplication::xioErrhandler (this=0xbff63f30, dpy=0x9c3bd30) at ../../kdeui/kernel/kapplication.cpp:413 #12 0xb7bbe1e6 in kde_xio_errhandler (dpy=0x9c3bd30) at ../../kdeui/kernel/kapplication.cpp:130 #13 0xb673b7e2 in _XIOError (dpy=0x9c3bd30) at ../../src/XlibInt.c:2966 #14 0xb6742fb3 in process_responses (dpy=0x9c3bd30, wait_for_first_event=0, current_error=0x0, current_request=0) at ../../src/xcb_io.c:240 #15 0xb6743955 in _XEventsQueued (dpy=0x9c3bd30, mode=1) at ../../src/xcb_io.c:256 #16 0xb67439e9 in _XFlush (dpy=0x9c3bd30) at ../../src/xcb_io.c:351 #17 0xb671bc01 in XFlush (dpy=0x9c3bd30) at ../../src/Flush.c:41 #18 0xb6de7c05 in QEventDispatcherX11::flush (this=0x9c36358) at kernel/qeventdispatcher_x11.cpp:161 #19 0xb7656f42 in QCoreApplication::flush () at kernel/qcoreapplication.cpp:406 #20 0xb708ac9f in QAbstractButton::animateClick (this=0x9f7fc58, msec=100) at widgets/qabstractbutton.cpp:943 #21 0xb7b21588 in KDialog::closeEvent (this=0x9f1f5b0, event=0xbff61324) at ../../kdeui/dialogs/kdialog.cpp:960 #22 0xb6da51e3 in QWidget::event (this=0x9f1f5b0, event=0xbff61324) at kernel/qwidget.cpp:7313 #23 0xb6d4d79c in QApplicationPrivate::notify_helper (this=0x9c36570, receiver=0x9f1f5b0, e=0xbff61324) at kernel/qapplication.cpp:3803 #24 0xb6d556ea in QApplication::notify (this=0xbff63f30, receiver=0x9f1f5b0, e=0xbff61324) at kernel/qapplication.cpp:3768 #25 0xb7bbe7fd in KApplication::notify (this=0xbff63f30, receiver=0x9f1f5b0, event=0xbff61324) at ../../kdeui/kernel/kapplication.cpp:307 #26 0xb76580e1 in QCoreApplication::notifyInternal (this=0xbff63f30, receiver=0x9f1f5b0, event=0xbff61324) at kernel/qcoreapplication.cpp:587 #27 0xb766fbae in QCoreApplication::sendEvent (receiver=0x9f1f5b0, event=0x1) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209 #28 0xb6da8387 in QWidgetPrivate::close_helper (this=0x9f57740, mode=QWidgetPrivate::CloseWithEvent) at kernel/qwidget.cpp:6722 #29 0xb6da8418 in QWidget::close (this=0x9f1f5b0) at kernel/qwidget.cpp:6791 #30 0xb0feaa3c in ?? () from /usr/lib/kde4/libkttsd_fliteplugin.so #31 0x09f1f5b0 in ?? () #32 0xbff61384 in ?? () #33 0xbff61388 in ?? () #34 0xb6475ed5 in pthread_getspecific () from /lib/i686/cmov/libpthread.so.0 #35 0xb0feab03 in ?? () from /usr/lib/kde4/libkttsd_fliteplugin.so #36 0x0a04c5b0 in ?? () #37 0x00000000 in ?? ()
Seems like a Phonon/xine crash What KDE version (or SVN revision) do you have? What Phonon version do you have? Thanks :)
(In reply to comment #1) > Seems like a Phonon/xine crash > What KDE version (or SVN revision) do you have? > What Phonon version do you have? > Thanks :) > I'm using KDE 4.1.96 - r908395 Phonon is at: 4.2.96+svn906929
We have a similar crash downstream at Kubuntu, where an amarok crash was reported: https://launchpad.net/bugs/339565 #0 Phonon::Xine::SourceNode::sinks (this=0x8efd9b8) at /usr/include/qt4/QtCore/qatomic_i386.h:115 No locals. #1 0xb276d1da in Phonon::Xine::XineStream::createStream (this=0x8f98f00) at /build/buildd/phonon-4.3.1/xine/xinestream.cpp:508 audioPort = <value optimized out> videoPort = <value optimized out> sinks = {q_hash = {{d = 0x7269444b, e = 0x7269444b}}} __PRETTY_FUNCTION__ = "bool Phonon::Xine::XineStream::createStream()" #2 0xb27755b9 in Phonon::Xine::XineStream::event (this=0x8f98f00, ev=0xaa5ef18) at /build/buildd/phonon-4.3.1/xine/xinestream.cpp:1235 previousState = Phonon::ErrorState eventName = 0xb27a6af4 "MrlChanged" __PRETTY_FUNCTION__ = "virtual bool Phonon::Xine::XineStream::event(QEvent*)" #3 0xb6f87f5c in QApplicationPrivate::notify_helper () from /usr/lib/libQtGui.so.4 #4 0xb6f9023e in QApplication::notify () from /usr/lib/libQtGui.so.4 #5 0xb6ab7a4b in QCoreApplication::notifyInternal () from /usr/lib/libQtCore.so.4 #6 0xb6ab86a5 in QCoreApplicationPrivate::sendPostedEvents () from /usr/lib/libQtCore.so.4 #7 0xb6ab889d in QCoreApplication::sendPostedEvents () from /usr/lib/libQtCore.so.4 #8 0xb6ae37ff in ?? () from /usr/lib/libQtCore.so.4 #9 0xb44caaf8 in IA__g_main_context_dispatch (context=0x8f97998) at /build/buildd/glib2.0-2.19.10/glib/gmain.c:1814 No locals. #10 0xb44ce05b in g_main_context_iterate (context=0x8f97998, block=1, dispatch=1, self=0x8f98288) at /build/buildd/glib2.0-2.19.10/glib/gmain.c:2448 max_priority = 0 timeout = 0 some_ready = 1 nfds = 1 allocated_nfds = <value optimized out> fds = (GPollFD *) 0x8eac358 __PRETTY_FUNCTION__ = "g_main_context_iterate" #11 0xb44ce1d8 in IA__g_main_context_iteration (context=0x8f97998, may_block=1) at /build/buildd/glib2.0-2.19.10/glib/gmain.c:2511 retval = <value optimized out> #12 0xb6ae3448 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4 #13 0xb6ab607a in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4 #14 0xb6ab64ba in QEventLoop::exec () from /usr/lib/libQtCore.so.4 #15 0xb69c0639 in QThread::exec () from /usr/lib/libQtCore.so.4 #16 0xb276720a in Phonon::Xine::XineThread::run (this=0x8efd988) at /build/buildd/phonon-4.3.1/xine/xinethread.cpp:143 c = {{p = {static shared_null = {ref = {_q_value = 13832}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0xb27671ab}, d = 0xb27671ab}} #17 0xb69c396e in ?? () from /usr/lib/libQtCore.so.4 #18 0xb4ccc4ff in start_thread () from /lib/tls/i686/cmov/libpthread.so.0 #19 0xb67b549e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130 No locals.
Changed to confirmed.
*** Bug 205933 has been marked as a duplicate of this bug. ***
*** Bug 183597 has been marked as a duplicate of this bug. ***
*** Bug 217715 has been marked as a duplicate of this bug. ***
Created attachment 39082 [details] Possible patch I think that what's happening here is that, rather unluckily, Phonon is trying to create a new stream just as the XineStream's MediaObject is being deleted. All the backtraces I've seen of this happen when either the app is being closed (in the case of amarok) or when the backend is being changed like with this report. Since the MediaObject is null (it has been deleted, presumably), when createStream() tries to get the sinks off of it, it crashes. The Q_ASSERT right before the ->sinks() call is pretty much right in that a crash would occur if there isn't a MediaObject in this case, I think. I do have a patch here that should just make create emit an error and return false. I would think that it probably wouldn't have any negative effects since the app is usually quitting or changing backends and you wouldn't hear anything anyways. I've attached a patch, and I would like input in regards to its sanity.
Created attachment 39083 [details] Possible patch Oops, wrong version of the patch. (I forgot to refresh it) The old one doesn't compile. ;-)
SVN commit 1062975 by jmthomas: Better to raise an error than to crash the program. We still shouldn't be in a situation where the MediaObject has been deleted elsewhere, so at best this is a workaround. CCBUG: 180214 M +5 -1 xinestream.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1062975
At the least, it shouldn't crash anymore. The underlying problem still needs to be fixed, though.
*** Bug 218594 has been marked as a duplicate of this bug. ***
*** Bug 218921 has been marked as a duplicate of this bug. ***
*** Bug 205219 has been marked as a duplicate of this bug. ***
*** Bug 191366 has been marked as a duplicate of this bug. ***
*** Bug 221548 has been marked as a duplicate of this bug. ***
*** Bug 223798 has been marked as a duplicate of this bug. ***
*** Bug 224086 has been marked as a duplicate of this bug. ***
*** Bug 227083 has been marked as a duplicate of this bug. ***
*** Bug 231949 has been marked as a duplicate of this bug. ***
*** Bug 232619 has been marked as a duplicate of this bug. ***
Bump version.
*** Bug 234955 has been marked as a duplicate of this bug. ***
*** Bug 234688 has been marked as a duplicate of this bug. ***
*** Bug 235330 has been marked as a duplicate of this bug. ***
*** Bug 235525 has been marked as a duplicate of this bug. ***
Created attachment 43188 [details] New crash information added by DrKonqi Amarok has crashed when, after an unsuccessful attempt to connect to a stream, I closed it.
*** Bug 236101 has been marked as a duplicate of this bug. ***
*** Bug 236543 has been marked as a duplicate of this bug. ***
*** Bug 236718 has been marked as a duplicate of this bug. ***
*** Bug 236940 has been marked as a duplicate of this bug. ***
*** Bug 238387 has been marked as a duplicate of this bug. ***
*** Bug 243701 has been marked as a duplicate of this bug. ***
*** Bug 244006 has been marked as a duplicate of this bug. ***
*** Bug 244580 has been marked as a duplicate of this bug. ***
*** Bug 244593 has been marked as a duplicate of this bug. ***
*** Bug 245489 has been marked as a duplicate of this bug. ***
*** Bug 245626 has been marked as a duplicate of this bug. ***
Created attachment 49521 [details] New crash information added by DrKonqi Amarok crached after several unsuccessfull attempts to play media streams.
*** Bug 247337 has been marked as a duplicate of this bug. ***
*** Bug 221431 has been marked as a duplicate of this bug. ***
*** Bug 233226 has been marked as a duplicate of this bug. ***
*** Bug 247807 has been marked as a duplicate of this bug. ***
*** Bug 220152 has been marked as a duplicate of this bug. ***
*** Bug 220906 has been marked as a duplicate of this bug. ***
*** Bug 240737 has been marked as a duplicate of this bug. ***
*** Bug 249723 has been marked as a duplicate of this bug. ***
*** Bug 250794 has been marked as a duplicate of this bug. ***
*** Bug 250815 has been marked as a duplicate of this bug. ***
*** Bug 246113 has been marked as a duplicate of this bug. ***
*** Bug 241130 has been marked as a duplicate of this bug. ***
*** Bug 251966 has been marked as a duplicate of this bug. ***
*** Bug 251677 has been marked as a duplicate of this bug. ***
*** Bug 212002 has been marked as a duplicate of this bug. ***
*** Bug 254559 has been marked as a duplicate of this bug. ***
*** Bug 252963 has been marked as a duplicate of this bug. ***
*** Bug 256299 has been marked as a duplicate of this bug. ***
*** Bug 256565 has been marked as a duplicate of this bug. ***
[Comment from a bug triager] From bug 242507 (konqueror crash): -- Information about the crash: Crash page: http://www.protofunc.com/jme/documentation/documentation-embed.html This page is supposed to be testing capabilities of the browser in order to play a movie.
*** Bug 212793 has been marked as a duplicate of this bug. ***
*** Bug 242507 has been marked as a duplicate of this bug. ***
*** Bug 246810 has been marked as a duplicate of this bug. ***
*** Bug 261464 has been marked as a duplicate of this bug. ***
*** Bug 267130 has been marked as a duplicate of this bug. ***
*** Bug 267433 has been marked as a duplicate of this bug. ***
*** Bug 269014 has been marked as a duplicate of this bug. ***
*** Bug 269982 has been marked as a duplicate of this bug. ***
*** Bug 271183 has been marked as a duplicate of this bug. ***
*** Bug 271764 has been marked as a duplicate of this bug. ***
*** Bug 272553 has been marked as a duplicate of this bug. ***
*** Bug 272630 has been marked as a duplicate of this bug. ***
Created attachment 60124 [details] New crash information added by DrKonqi amarok (2.4.0) on KDE Platform 4.6.00 (4.6.0) "release 6" using Qt 4.7.1 - What I was doing when the application crashed: Listening to a radio station (AAC+) - Custom settings of the application: Using Xine instead of GStreamer -- Backtrace (Reduced): #6 0x00007f83d0f16473 in Phonon::Xine::XineStream::createStream (this=0x8ae200) at /usr/src/debug/phonon-backend-xine-4.4.4/xine/xinestream.cpp:514 #7 0x00007f83d0f1764f in Phonon::Xine::XineStream::event (this=0x8ae200, ev=0x30541e0) at /usr/src/debug/phonon-backend-xine-4.4.4/xine/xinestream.cpp:1244 #8 0x00007f83e7a18d14 in QApplicationPrivate::notify_helper (this=0x7a1990, receiver=0x8ae200, e=0x30541e0) at kernel/qapplication.cpp:4445 #9 0x00007f83e7a2122a in QApplication::notify (this=<value optimized out>, receiver=0x8ae200, e=0x30541e0) at kernel/qapplication.cpp:4324 #10 0x00007f83e9f7c9e6 in KApplication::notify (this=0x7fff2230ce60, receiver=0x8ae200, event=0x30541e0) at /usr/src/debug/kdelibs-4.6.0/kdeui/kernel/kapplication.cpp:311
*** Bug 275113 has been marked as a duplicate of this bug. ***
Please use another backend, the xine backend is deprecated as the upstream development is stalled. You can choose between the gstreamer backend or the vlc backend, both are actively developed and maintained.
*** Bug 278566 has been marked as a duplicate of this bug. ***
*** Bug 279779 has been marked as a duplicate of this bug. ***
*** Bug 273686 has been marked as a duplicate of this bug. ***
Created attachment 63403 [details] New crash information added by DrKonqi kontact (4.7.0) on KDE Platform 4.7.1 (4.7.1) using Qt 4.7.3 - What I was doing when the application crashed: closing kontact after having play in kmail, korganizer task and schedule, edit contact in kaddressbook, read rss in akregator, and browse forums with knode But I'm using the phonon-vlc not the xine ? -- Backtrace (Reduced): #6 firstNode (this=0x6b4ec0) at /usr/include/QtCore/qhash.h:187 #7 begin (this=0x7fffcf7e6650) at /usr/include/QtCore/qhash.h:461 #8 begin (this=0x7fffcf7e6650) at /usr/include/QtCore/qset.h:162 #9 QForeachContainer (t=..., this=0x7fffcf7e6650) at /usr/include/QtCore/qglobal.h:2249 #10 Nepomuk::ResourceData::resetAll (this=0x12e2ff0, isDelete=true) at /usr/src/debug/kdelibs-4.7.0/nepomuk/core/resourcedata.cpp:155
Created attachment 65972 [details] New crash information added by DrKonqi amarok crashes if i try to open some (often older) stream in my playlist. i supose the crash is caused by the stream not beeing available, or having reached the maximum listeners)