Bug 196320 - Xine Stream is closed in between mutex lockings from Phonon::Xine::XineStream::event() and playbackFinished()
Summary: Xine Stream is closed in between mutex lockings from Phonon::Xine::XineStream...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Phonon
Classification: Frameworks and Libraries
Component: Xine backend (show other bugs)
Version: 4.4.2 (KDE 4.5)
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Harald Sitter
URL:
Keywords: release_blocker
: 193050 198769 200702 204583 205595 206205 206297 206557 206713 206983 207034 207152 207267 208082 208235 208257 208304 208428 209391 209804 209916 210000 211303 212176 212242 212327 212337 212505 212560 212625 212633 212635 212820 212948 213471 213595 213755 213913 213936 213993 214015 214128 214517 214712 214762 214867 215436 215678 215683 216329 216384 216431 216699 216846 217020 217678 217687 217748 218396 218770 219418 220078 220353 220363 221454 221679 223682 224428 224570 224592 224931 225064 225144 225169 225447 225544 225819 225839 226607 226712 227081 227790 228208 228230 228442 228871 229028 229208 229501 230483 230960 232272 236342 237934 238873 240165 240681 241311 242618 243158 243307 244519 245668 246661 248823 248934 258142 260894 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-06-13 12:39 UTC by Marcus Harrison
Modified: 2011-11-23 13:58 UTC (History)
101 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (17.00 KB, text/plain)
2010-09-09 21:30 UTC, Jorge Iván Andrés Contreras Pereira
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Harrison 2009-06-13 12:39:13 UTC
Version:           2.0 (using 4.2.4 (KDE 4.2.4), Gentoo)
Compiler:          i686-pc-linux-gnu-gcc
OS:                Linux (i686) release 2.6.29-gentoo-r3

Dragon crashed when trying to stream this video:
http://stream.qtv.apple.com/events/jun/0906paowdnv/m_0906jhoiudvfvn_hd_ref.mov

Having downloaded the video and tried playing it again, it just refuses to play it, without crashing.
I've compiled everything with USE="quicktime" and have made sure libquicktime is installed.


The backtrace:
Application: Dragon Player (dragon), signal SIGSEGV
[Current thread is 0 (LWP 4327)]

Thread 6 (Thread 0xb3e04b70 (LWP 4328)):
#0  0xb8046424 in __kernel_vsyscall ()
#1  0xb733c472 in pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:179
#2  0xb790810b in metronom_sync_loop (this=0x8ba4f70) at metronom.c:870
#3  0xb7338450 in start_thread (arg=0xb3e04b70) at pthread_create.c:297
#4  0xb68f1a2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 5 (Thread 0xb31c8b70 (LWP 4329)):
#0  0xb8046424 in __kernel_vsyscall ()
#1  0xb68eaae1 in select () from /lib/libc.so.6
#2  0xb7930b89 in xine_usec_sleep (usec=0) at utils.c:481
#3  0xb79157ed in video_out_loop (this_gen=0x8ba8f08) at video_out.c:1246
#4  0xb7338450 in start_thread (arg=0xb31c8b70) at pthread_create.c:297
#5  0xb68f1a2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 4 (Thread 0xb29c7b70 (LWP 4330)):
[KCrash Handler]
#5  __pthread_mutex_lock (mutex=0x244) at pthread_mutex_lock.c:50
#6  0xb79047b6 in xine_close (stream=0x0) at xine.c:497
#7  0xb4a4ca5f in Phonon::Xine::XineStream::playbackFinished (this=0x8bded00) at /var/tmp/portage/media-sound/phonon-4.3.1/work/phonon-4.3.1/xine/xinestream.cpp:786
#8  0xb4a4d883 in Phonon::Xine::XineStream::event (this=0x8bded00, ev=0x915dcc0) at /var/tmp/portage/media-sound/phonon-4.3.1/work/phonon-4.3.1/xine/xinestream.cpp:1043
#9  0xb6bae4fc in QApplicationPrivate::notify_helper (this=0x8a994a8, receiver=0x8bded00, e=0x915dcc0) at kernel/qapplication.cpp:4057
#10 0xb6bb710f in QApplication::notify (this=0xbfa46a9c, receiver=0x8bded00, e=0x915dcc0) at kernel/qapplication.cpp:3604
#11 0xb7bd6c23 in KApplication::notify (this=0xbfa46a9c, receiver=0x8bded00, event=0x915dcc0) at /var/tmp/portage/kde-base/kdelibs-4.2.4/work/kdelibs-4.2.4/kdeui/kernel/kapplication.cpp:307
#12 0xb748829b in QCoreApplication::notifyInternal (this=0xbfa46a9c, receiver=0x8bded00, event=0x915dcc0) at kernel/qcoreapplication.cpp:606
#13 0xb748bc53 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x8bd4d18) at kernel/qcoreapplication.h:213
#14 0xb748be5d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1140
#15 0xb74b2f1f in postEventSourceDispatch (s=0x8bd4ea8) at kernel/qcoreapplication.h:218
#16 0xb63d9748 in IA__g_main_context_dispatch (context=0x8fc6818) at gmain.c:1814
#17 0xb63dccab in g_main_context_iterate (context=0x8fc6818, block=1, dispatch=1, self=0x8fc6900) at gmain.c:2448
#18 0xb63dce28 in IA__g_main_context_iteration (context=0x8fc6818, may_block=1) at gmain.c:2511
#19 0xb74b2c08 in QEventDispatcherGlib::processEvents (this=0x8fc67a8, flags={i = -1298369976}) at kernel/qeventdispatcher_glib.cpp:324
#20 0xb7486cda in QEventLoop::processEvents (this=0xb29c72b0, flags={i = -1298369912}) at kernel/qeventloop.cpp:149
#21 0xb7486e9a in QEventLoop::exec (this=0xb29c72b0, flags={i = -1298369864}) at kernel/qeventloop.cpp:196
#22 0xb73954e3 in QThread::exec (this=0x8bd4de8) at thread/qthread.cpp:487
#23 0xb4a40c5a in Phonon::Xine::XineThread::run (this=0x8bd4de8) at /var/tmp/portage/media-sound/phonon-4.3.1/work/phonon-4.3.1/xine/xinethread.cpp:143
#24 0xb7398b80 in QThreadPrivate::start (arg=0x8bd4de8) at thread/qthread_unix.cpp:189
#25 0xb7338450 in start_thread (arg=0xb29c7b70) at pthread_create.c:297
#26 0xb68f1a2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 3 (Thread 0xb21c6b70 (LWP 4333)):
#0  0xb8046424 in __kernel_vsyscall ()
#1  0xb68e7927 in __poll (fds=0xb21c62a8, nfds=1, timeout=333) at ../sysdeps/unix/sysv/linux/poll.c:87
#2  0xb35fe1f7 in ao_alsa_handle_event_thread (data=0x8bd6ef8) at audio_alsa_out.c:150
#3  0xb7338450 in start_thread (arg=0xb21c6b70) at pthread_create.c:297
#4  0xb68f1a2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 2 (Thread 0xb1983b70 (LWP 4334)):
#0  0xb8046424 in __kernel_vsyscall ()
#1  0xb733c145 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb79170bc in fifo_peek_int (fifo=0x8fd48c0, blocking=1) at audio_out.c:348
#3  0xb7918d57 in ao_loop (this_gen=0x8fda8a8) at audio_out.c:388
#4  0xb7338450 in start_thread (arg=0xb1983b70) at pthread_create.c:297
#5  0xb68f1a2e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:130

Thread 1 (Thread 0xb617c700 (LWP 4327)):
#0  0xb8046424 in __kernel_vsyscall ()
#1  0xb733c145 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb7397d22 in QMutexPrivate::wait (this=0x8bd8900, timeout=-1) at thread/qmutex_unix.cpp:80
#3  0xb7392cb8 in QMutex::lock (this=0x8bded3c) at thread/qmutex.cpp:207
#4  0xb4a45e1b in Phonon::Xine::XineStream::closeBlocking (this=0x8bded00) at /var/tmp/portage/media-sound/phonon-4.3.1/work/phonon-4.3.1/xine/xinestream.cpp:1535
#5  0xb4a5b782 in ~MediaObject (this=0x8bd4c10) at /var/tmp/portage/media-sound/phonon-4.3.1/work/phonon-4.3.1/xine/mediaobject.cpp:109
#6  0xb79cbeec in Phonon::MediaNodePrivate::deleteBackendObject (this=0x8bdac40) at /var/tmp/portage/media-sound/phonon-4.3.1/work/phonon-4.3.1/phonon/medianode.cpp:81
#7  0xb79dbcdd in ~FactoryPrivate (this=0x8af3340) at /var/tmp/portage/media-sound/phonon-4.3.1/work/phonon-4.3.1/phonon/factory.cpp:193
#8  0xb79d9345 in destroy () at /var/tmp/portage/media-sound/phonon-4.3.1/work/phonon-4.3.1/phonon/factory.cpp:84
#9  0xb79d69ab in ~CleanUpGlobalStatic (this=0xb79f477c) at /var/tmp/portage/media-sound/phonon-4.3.1/work/phonon-4.3.1/phonon/globalstatic_p.h:55
#10 0xb684d859 in __run_exit_handlers (status=1, listp=0xb6966304, run_list_atexit=true) at exit.c:78
#11 0xb684d8bf in exit (status=1) at exit.c:100
#12 0xb6c112db in qt_xio_errhandler () at kernel/qapplication_x11.cpp:707
#13 0xb7bd58ca in KApplication::xioErrhandler (this=0xbfa46a9c, dpy=0x8ab0f00) at /var/tmp/portage/kde-base/kdelibs-4.2.4/work/kdelibs-4.2.4/kdeui/kernel/kapplication.cpp:413
#14 0xb7bd5906 in kde_xio_errhandler (dpy=0x8ab0f00) at /var/tmp/portage/kde-base/kdelibs-4.2.4/work/kdelibs-4.2.4/kdeui/kernel/kapplication.cpp:130
#15 0xb664b7e2 in _XIOError (dpy=0x8ab0f00) at XlibInt.c:2947
#16 0xb6653725 in process_responses (dpy=0x8ab0f00, wait_for_first_event=0, current_error=0x0, current_request=0) at xcb_io.c:180
#17 0xb6653f45 in _XEventsQueued (dpy=0x8ab0f00, mode=2) at xcb_io.c:197
#18 0xb663c4af in XEventsQueued (dpy=0x8ab0f00, mode=2) at Pending.c:44
#19 0xb6c46e0d in x11EventSourceCheck (s=0x8a9c600) at kernel/qguieventdispatcher_glib.cpp:87
#20 0xb63dc2b6 in IA__g_main_context_check (context=0x8a9b820, max_priority=0, fds=0x9146810, n_fds=4) at gmain.c:2323
#21 0xb63dcb9d in g_main_context_iterate (context=0x8a9b820, block=1, dispatch=1, self=0x8a99638) at gmain.c:2445
#22 0xb63dce28 in IA__g_main_context_iteration (context=0x8a9b820, may_block=1) at gmain.c:2511
#23 0xb74b2c08 in QEventDispatcherGlib::processEvents (this=0x8a99488, flags={i = -1079744088}) at kernel/qeventdispatcher_glib.cpp:324
#24 0xb6c46c75 in QGuiEventDispatcherGlib::processEvents (this=0x8a99488, flags={i = -1079744040}) at kernel/qguieventdispatcher_glib.cpp:202
#25 0xb7486cda in QEventLoop::processEvents (this=0xbfa46a40, flags={i = -1079743976}) at kernel/qeventloop.cpp:149
#26 0xb7486e9a in QEventLoop::exec (this=0xbfa46a40, flags={i = -1079743928}) at kernel/qeventloop.cpp:196
#27 0xb748bf21 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#28 0xb6bae227 in QApplication::exec () at kernel/qapplication.cpp:3526
#29 0x0806a935 in main (argc=2, argv=0xbfa46bf4) at /var/tmp/portage/kde-base/dragonplayer-4.2.4/work/dragonplayer-4.2.4/dragonplayer/src/app/main.cpp:58
Comment 1 Mikko C. 2009-08-21 12:01:21 UTC
*** Bug 204583 has been marked as a duplicate of this bug. ***
Comment 2 Mikko C. 2009-08-21 12:04:02 UTC
*** Bug 198769 has been marked as a duplicate of this bug. ***
Comment 3 Mikko C. 2009-09-04 09:17:18 UTC
*** Bug 206205 has been marked as a duplicate of this bug. ***
Comment 4 Dario Andres 2009-09-05 03:02:16 UTC
*** Bug 206297 has been marked as a duplicate of this bug. ***
Comment 5 Rik 2009-09-06 10:00:00 UTC
Configured system to use a different backend (GStreamer instead of Xine) but still the same problems...
Comment 6 Mikko C. 2009-09-06 22:48:34 UTC
*** Bug 206557 has been marked as a duplicate of this bug. ***
Comment 7 Myriam Schweingruber 2009-09-07 01:09:11 UTC
*** Bug 206557 has been marked as a duplicate of this bug. ***
Comment 8 Dario Andres 2009-09-16 04:39:57 UTC
*** Bug 207267 has been marked as a duplicate of this bug. ***
Comment 9 Mikko C. 2009-09-23 07:51:17 UTC
*** Bug 208235 has been marked as a duplicate of this bug. ***
Comment 10 Mikko C. 2009-09-23 10:54:01 UTC
*** Bug 208257 has been marked as a duplicate of this bug. ***
Comment 11 Mikko C. 2009-09-23 10:57:07 UTC
confirming since it's happening to many people
Comment 12 Mikko C. 2009-10-07 21:57:22 UTC
*** Bug 209804 has been marked as a duplicate of this bug. ***
Comment 13 Dario Andres 2009-10-09 00:50:56 UTC
*** Bug 209916 has been marked as a duplicate of this bug. ***
Comment 14 Mikko C. 2009-10-09 17:39:46 UTC
*** Bug 210000 has been marked as a duplicate of this bug. ***
Comment 15 Myriam Schweingruber 2009-11-01 16:39:46 UTC
*** Bug 212625 has been marked as a duplicate of this bug. ***
Comment 16 Myriam Schweingruber 2009-11-01 16:40:17 UTC
*** Bug 212633 has been marked as a duplicate of this bug. ***
Comment 17 Myriam Schweingruber 2009-11-07 23:40:52 UTC
*** Bug 213595 has been marked as a duplicate of this bug. ***
Comment 18 Jonathan Thomas 2009-11-10 00:25:19 UTC
*** Bug 213913 has been marked as a duplicate of this bug. ***
Comment 19 Mark Kretschmann 2009-11-10 09:53:05 UTC
*** Bug 213936 has been marked as a duplicate of this bug. ***
Comment 20 Myriam Schweingruber 2009-11-11 09:54:36 UTC
*** Bug 206713 has been marked as a duplicate of this bug. ***
Comment 21 Myriam Schweingruber 2009-11-11 09:55:20 UTC
*** Bug 205595 has been marked as a duplicate of this bug. ***
Comment 22 Myriam Schweingruber 2009-11-11 09:55:53 UTC
*** Bug 213471 has been marked as a duplicate of this bug. ***
Comment 23 Myriam Schweingruber 2009-11-11 09:56:41 UTC
*** Bug 212948 has been marked as a duplicate of this bug. ***
Comment 24 Myriam Schweingruber 2009-11-11 09:57:18 UTC
*** Bug 212337 has been marked as a duplicate of this bug. ***
Comment 25 Myriam Schweingruber 2009-11-11 09:59:15 UTC
*** Bug 206983 has been marked as a duplicate of this bug. ***
Comment 26 Myriam Schweingruber 2009-11-11 09:59:45 UTC
*** Bug 207034 has been marked as a duplicate of this bug. ***
Comment 27 Myriam Schweingruber 2009-11-11 10:00:08 UTC
*** Bug 207152 has been marked as a duplicate of this bug. ***
Comment 28 Myriam Schweingruber 2009-11-11 10:01:01 UTC
*** Bug 208082 has been marked as a duplicate of this bug. ***
Comment 29 Myriam Schweingruber 2009-11-11 10:01:28 UTC
*** Bug 208304 has been marked as a duplicate of this bug. ***
Comment 30 Myriam Schweingruber 2009-11-11 10:01:49 UTC
*** Bug 208428 has been marked as a duplicate of this bug. ***
Comment 31 Myriam Schweingruber 2009-11-11 10:02:11 UTC
*** Bug 209391 has been marked as a duplicate of this bug. ***
Comment 32 Myriam Schweingruber 2009-11-11 10:03:19 UTC
*** Bug 212176 has been marked as a duplicate of this bug. ***
Comment 33 Myriam Schweingruber 2009-11-11 10:04:45 UTC
*** Bug 212242 has been marked as a duplicate of this bug. ***
Comment 34 Myriam Schweingruber 2009-11-11 10:06:01 UTC
*** Bug 212327 has been marked as a duplicate of this bug. ***
Comment 35 Myriam Schweingruber 2009-11-11 10:06:24 UTC
*** Bug 212505 has been marked as a duplicate of this bug. ***
Comment 36 Myriam Schweingruber 2009-11-11 10:06:52 UTC
*** Bug 212560 has been marked as a duplicate of this bug. ***
Comment 37 Myriam Schweingruber 2009-11-11 10:07:46 UTC
*** Bug 212635 has been marked as a duplicate of this bug. ***
Comment 38 Myriam Schweingruber 2009-11-11 10:16:31 UTC
*** Bug 213755 has been marked as a duplicate of this bug. ***
Comment 39 Myriam Schweingruber 2009-11-11 10:17:36 UTC
*** Bug 213993 has been marked as a duplicate of this bug. ***
Comment 40 Myriam Schweingruber 2009-11-11 10:18:19 UTC
*** Bug 214015 has been marked as a duplicate of this bug. ***
Comment 41 Jonathan Thomas 2009-11-12 03:16:31 UTC
*** Bug 214128 has been marked as a duplicate of this bug. ***
Comment 42 Mikko C. 2009-11-14 14:08:54 UTC
*** Bug 214517 has been marked as a duplicate of this bug. ***
Comment 43 Myriam Schweingruber 2009-11-15 23:13:39 UTC
*** Bug 214712 has been marked as a duplicate of this bug. ***
Comment 44 Dario Andres 2009-11-17 15:08:26 UTC
*** Bug 214867 has been marked as a duplicate of this bug. ***
Comment 45 Dario Andres 2009-11-21 03:56:43 UTC
*** Bug 215436 has been marked as a duplicate of this bug. ***
Comment 46 Mikko C. 2009-11-22 15:09:33 UTC
*** Bug 215678 has been marked as a duplicate of this bug. ***
Comment 47 Mikko C. 2009-11-22 15:27:27 UTC
*** Bug 215683 has been marked as a duplicate of this bug. ***
Comment 48 Myriam Schweingruber 2009-11-27 01:02:06 UTC
*** Bug 216329 has been marked as a duplicate of this bug. ***
Comment 49 Myriam Schweingruber 2009-11-27 15:47:06 UTC
*** Bug 216384 has been marked as a duplicate of this bug. ***
Comment 50 Myriam Schweingruber 2009-11-27 21:57:40 UTC
*** Bug 216431 has been marked as a duplicate of this bug. ***
Comment 51 Myriam Schweingruber 2009-11-29 20:36:38 UTC
*** Bug 216699 has been marked as a duplicate of this bug. ***
Comment 52 Dima Ryazanov 2009-11-30 02:37:53 UTC
I decided to look through xinestream.cpp. I see many instances of "if (m_stream) {...}", and a few places that set m_stream to 0. However, there's no check for m_stream being 0 in XineStream::playbackFinished. Should there be one? Can anyone guarantee that m_stream will not be 0 there?
Comment 53 Myriam Schweingruber 2009-11-30 20:21:10 UTC
*** Bug 216846 has been marked as a duplicate of this bug. ***
Comment 54 Myriam Schweingruber 2009-12-02 09:44:28 UTC
*** Bug 217020 has been marked as a duplicate of this bug. ***
Comment 55 Mikko C. 2009-12-07 09:01:24 UTC
*** Bug 217678 has been marked as a duplicate of this bug. ***
Comment 56 Mikko C. 2009-12-07 09:11:26 UTC
*** Bug 217687 has been marked as a duplicate of this bug. ***
Comment 57 Myriam Schweingruber 2009-12-07 19:28:00 UTC
*** Bug 217748 has been marked as a duplicate of this bug. ***
Comment 58 Dario Andres 2009-12-12 19:04:55 UTC
*** Bug 218396 has been marked as a duplicate of this bug. ***
Comment 59 Dario Andres 2009-12-15 13:31:41 UTC
*** Bug 218770 has been marked as a duplicate of this bug. ***
Comment 60 Jonathan Thomas 2009-12-16 06:28:46 UTC
We got a backtrace at https://launchpad.net/bugs/359966 that seems to indicate that xine_close is indeed trying to close a null stream. I would assume that this would mean that we could not ensure that m_stream always be around when playbackFinished() is called. In the case of the first backtrace, it looks like there's a point in time where when the code enters into the: if (!xine_open(m_stream, m_mrl.constData())) statement and unlocks the mutex right before calling playbackFinished which gives an albeit small window of opportunity for a separate thread to do something that deletes m_stream before the mutex is locked again in playbackFinished.

It probably wouldn't hurt to check for m_stream's existence before deleting anyways; better safe than sorry.

#0  0xb778b9e0 in pthread_mutex_lock ()
   from /lib/tls/i686/cmov/libpthread.so.0
#1  0xb25685ef in xine_close (stream=0x0) at xine.c:497
No locals.
#2  0xb25c514f in Phonon::Xine::XineStream::playbackFinished (this=0x8d51720)
    at /build/buildd/phonon-4.3.1/xine/xinestream.cpp:792
	locker = {{mtx = 0x8d5175d, val = 148182877}}
#3  0xb25c6dfb in Phonon::Xine::XineStream::event (this=0x8d51720, 
    ev=0xad0c558) at /build/buildd/phonon-4.3.1/xine/xinestream.cpp:1049
	eventName = 0xb25f8f5a "GaplessSwitch"
	__PRETTY_FUNCTION__ = "virtual bool Phonon::Xine::XineStream::event(QEvent*)"
#4  0xb6e72f2c in QApplicationPrivate::notify_helper (this=0x8d0f590, 
    receiver=0x8d51720, e=0xad0c558) at kernel/qapplication.cpp:4084
	consumed = <value optimized out>
#5  0xb6e7b22e in QApplication::notify (this=0xbfa32724, receiver=0x8d51720, 
    e=0xad0c558) at kernel/qapplication.cpp:3631
	res = true
#6  0xb7d6294d in KApplication::notify (this=0xbfa32724, receiver=0x8d51720, 
    event=0xad0c558)
    at /build/buildd/kde4libs-4.2.2/kdeui/kernel/kapplication.cpp:307
No locals.
#7  0xb69a1a3b in QCoreApplication::notifyInternal (this=0xbfa32724, 
    receiver=0x8d51720, event=0xad0c558) at kernel/qcoreapplication.cpp:602
	result = false
	cbdata = {0x8d51720, 0xad0c558, 0xb1b7205b}
	threadData = (QThreadData *) 0x8dd59a0
	returnValue = <value optimized out>
#8  0xb69a2695 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, 

(Backtrace limited to one thread and snipped, full trace at http://launchpadlibrarian.net/25281801/ThreadStacktrace.txt)
Comment 61 Jonathan Thomas 2009-12-16 06:38:59 UTC
*** Bug 214762 has been marked as a duplicate of this bug. ***
Comment 62 Jonathan Thomas 2009-12-16 16:40:01 UTC
SVN commit 1062986 by jmthomas:

Check for the Xine stream's existence before closing it. In the sense that the stream shouldn't really be closed between the mutex close/open event() and playbackFinished() this bug is still present. It should not cause crashes now, however.
CCBUG: 196320


 M  +6 -1      xinestream.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1062986
Comment 63 Mikko C. 2009-12-20 13:37:33 UTC
*** Bug 219418 has been marked as a duplicate of this bug. ***
Comment 64 Myriam Schweingruber 2009-12-25 10:44:17 UTC
Is this still valid with Phonon 4.3.1 (KDE 4.4 beta 2)?
Comment 65 Lukas 2009-12-25 13:07:47 UTC
If it is the same bug...

got those crashes (about 4 of them) in a row in 10mins period of time, while doing different things (being away, browsing menus etc)

http://pastebin.ca/1726685
http://pastebin.ca/1726686
http://pastebin.ca/1726688 Last one is with more debug packages installed, yet it didnt got more stars :(
Comment 66 Myriam Schweingruber 2009-12-25 19:38:04 UTC
*** Bug 220078 has been marked as a duplicate of this bug. ***
Comment 67 Jonathan Thomas 2009-12-30 01:27:45 UTC
This bug is still valid with trunk. I only worked around the crash.
Comment 68 Myriam Schweingruber 2010-01-06 00:57:52 UTC
*** Bug 221454 has been marked as a duplicate of this bug. ***
Comment 69 Myriam Schweingruber 2010-01-07 18:31:52 UTC
*** Bug 221679 has been marked as a duplicate of this bug. ***
Comment 70 Dario Andres 2010-01-21 23:07:57 UTC
*** Bug 223682 has been marked as a duplicate of this bug. ***
Comment 71 Myriam Schweingruber 2010-01-27 07:39:40 UTC
*** Bug 224428 has been marked as a duplicate of this bug. ***
Comment 72 Myriam Schweingruber 2010-01-28 09:59:26 UTC
*** Bug 224570 has been marked as a duplicate of this bug. ***
Comment 73 Myriam Schweingruber 2010-01-28 10:18:33 UTC
*** Bug 224592 has been marked as a duplicate of this bug. ***
Comment 74 Mikko C. 2010-01-31 09:08:55 UTC
*** Bug 224931 has been marked as a duplicate of this bug. ***
Comment 75 Myriam Schweingruber 2010-02-01 17:21:56 UTC
*** Bug 225144 has been marked as a duplicate of this bug. ***
Comment 76 Myriam Schweingruber 2010-02-01 22:52:57 UTC
*** Bug 225169 has been marked as a duplicate of this bug. ***
Comment 77 Myriam Schweingruber 2010-02-03 09:53:53 UTC
*** Bug 225064 has been marked as a duplicate of this bug. ***
Comment 78 Myriam Schweingruber 2010-02-04 09:40:57 UTC
*** Bug 225447 has been marked as a duplicate of this bug. ***
Comment 79 Myriam Schweingruber 2010-02-04 23:12:43 UTC
*** Bug 225544 has been marked as a duplicate of this bug. ***
Comment 80 Mikko C. 2010-02-07 11:47:00 UTC
*** Bug 225819 has been marked as a duplicate of this bug. ***
Comment 81 Myriam Schweingruber 2010-02-07 16:59:01 UTC
*** Bug 225839 has been marked as a duplicate of this bug. ***
Comment 82 Myriam Schweingruber 2010-02-09 23:52:23 UTC
*** Bug 212820 has been marked as a duplicate of this bug. ***
Comment 83 Myriam Schweingruber 2010-02-10 00:11:07 UTC
*** Bug 220353 has been marked as a duplicate of this bug. ***
Comment 84 Myriam Schweingruber 2010-02-10 00:13:51 UTC
*** Bug 220363 has been marked as a duplicate of this bug. ***
Comment 85 Myriam Schweingruber 2010-02-13 10:43:01 UTC
*** Bug 226607 has been marked as a duplicate of this bug. ***
Comment 86 Myriam Schweingruber 2010-02-13 20:57:31 UTC
*** Bug 226712 has been marked as a duplicate of this bug. ***
Comment 87 Myriam Schweingruber 2010-02-16 00:49:44 UTC
*** Bug 227081 has been marked as a duplicate of this bug. ***
Comment 88 Myriam Schweingruber 2010-02-20 15:08:36 UTC
*** Bug 227790 has been marked as a duplicate of this bug. ***
Comment 89 Myriam Schweingruber 2010-02-23 16:31:26 UTC
*** Bug 228208 has been marked as a duplicate of this bug. ***
Comment 90 Myriam Schweingruber 2010-02-23 23:47:09 UTC
*** Bug 228230 has been marked as a duplicate of this bug. ***
Comment 91 Myriam Schweingruber 2010-02-25 15:12:43 UTC
*** Bug 228442 has been marked as a duplicate of this bug. ***
Comment 92 Myriam Schweingruber 2010-02-28 13:00:53 UTC
*** Bug 228871 has been marked as a duplicate of this bug. ***
Comment 93 Myriam Schweingruber 2010-03-02 10:12:21 UTC
*** Bug 229028 has been marked as a duplicate of this bug. ***
Comment 94 Myriam Schweingruber 2010-03-03 10:29:27 UTC
*** Bug 229208 has been marked as a duplicate of this bug. ***
Comment 95 Myriam Schweingruber 2010-03-05 10:41:03 UTC
*** Bug 229501 has been marked as a duplicate of this bug. ***
Comment 96 Mikko C. 2010-03-13 08:25:16 UTC
*** Bug 230483 has been marked as a duplicate of this bug. ***
Comment 97 Myriam Schweingruber 2010-03-15 09:08:22 UTC
*** Bug 230779 has been marked as a duplicate of this bug. ***
Comment 98 Myriam Schweingruber 2010-03-16 14:05:15 UTC
*** Bug 230960 has been marked as a duplicate of this bug. ***
Comment 99 Myriam Schweingruber 2010-04-06 08:43:18 UTC
*** Bug 232272 has been marked as a duplicate of this bug. ***
Comment 100 Jonathan Thomas 2010-04-08 13:13:18 UTC
*** Bug 233691 has been marked as a duplicate of this bug. ***
Comment 101 Sven Krohlas 2010-04-20 23:52:45 UTC
*** Bug 234688 has been marked as a duplicate of this bug. ***
Comment 102 usrrgt 2010-04-21 18:12:31 UTC
"NEW status"?
I also can confirm this old bug.
Comment 103 Myriam Schweingruber 2010-05-03 10:15:11 UTC
*** Bug 193050 has been marked as a duplicate of this bug. ***
Comment 104 Myriam Schweingruber 2010-05-17 23:32:23 UTC
*** Bug 237934 has been marked as a duplicate of this bug. ***
Comment 105 Myriam Schweingruber 2010-05-26 13:08:51 UTC
*** Bug 238873 has been marked as a duplicate of this bug. ***
Comment 106 Myriam Schweingruber 2010-05-31 23:08:26 UTC
*** Bug 240165 has been marked as a duplicate of this bug. ***
Comment 107 Myriam Schweingruber 2010-06-07 16:48:19 UTC
*** Bug 240681 has been marked as a duplicate of this bug. ***
Comment 108 usrrgt 2010-06-07 17:42:52 UTC
Confirmed with Amarok 2.3.1 and KDE SC 4.4.4.
Comment 109 Myriam Schweingruber 2010-06-11 11:43:54 UTC
*** Bug 241311 has been marked as a duplicate of this bug. ***
Comment 110 Myriam Schweingruber 2010-06-24 10:08:37 UTC
*** Bug 242618 has been marked as a duplicate of this bug. ***
Comment 111 Myriam Schweingruber 2010-06-30 13:50:13 UTC
*** Bug 243158 has been marked as a duplicate of this bug. ***
Comment 112 Myriam Schweingruber 2010-07-01 09:26:49 UTC
*** Bug 243307 has been marked as a duplicate of this bug. ***
Comment 113 doma 2010-07-20 22:42:25 UTC
*** Bug 244789 has been marked as a duplicate of this bug. ***
Comment 114 Joris Guisson 2010-07-25 09:46:01 UTC
*** Bug 245668 has been marked as a duplicate of this bug. ***
Comment 115 Myriam Schweingruber 2010-08-04 09:20:06 UTC
*** Bug 246661 has been marked as a duplicate of this bug. ***
Comment 116 Myriam Schweingruber 2010-08-20 16:12:31 UTC
(In reply to comment #108)
> Confirmed with Amarok 2.3.1 and KDE SC 4.4.4.

the status NEW means confirmed, else it would read UNCONFIRMED :)
Comment 117 Alejandro Nova 2010-08-22 04:38:55 UTC
What steps will reproduce the problem?
1. Reproduce a stream.
2. Have any hiccup, that drops you out from the server.
3. Boom!

What is the expected output? What do you see instead?
Bangarang should fail gracefully.

This is the backtrace.

Application: bangarang (1.89 (2.0 Alpha))
KDE Platform Version: 4.5.00 (KDE 4.5.0)
Qt Version: 4.7.0
Operating System: Linux 2.6.34.3-37.fc13.x86_64 x86_64
Distribution: "Fedora release 13 (Goddard)"

-- Information about the crash:
<En detalle, comente que estaba haciendo cuando la aplicación se cerró.>

-- Backtrace:
Application: Bangarang (bangarang), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f2b04cd4960 (LWP 24207))]

Thread 7 (Thread 0x7f2af0182710 (LWP 24208)):
#0  0x000000379140b729 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x000000379f2139b1 in metronom_sync_loop (this=0x1e135c0) at metronom.c:870
#2  0x0000003791407761 in start_thread () from /lib64/libpthread.so.0
#3  0x00000037908e151d in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7f2aef781710 (LWP 24209)):
[KCrash Handler]
#6  0x00007f2af8dfaa32 in QExplicitlySharedDataPointer (this=0x7f2ae8002390) at /usr/include/QtCore/qshareddata.h:162
#7  threadSafeObject (this=0x7f2ae8002390) at /usr/src/debug/phonon-4.4.2/xine/sinknode.h:76
#8  Phonon::Xine::XineStream::createStream (this=0x7f2ae8002390) at /usr/src/debug/phonon-4.4.2/xine/xinestream.cpp:515
#9  0x00007f2af8dfdf03 in Phonon::Xine::XineStream::event (this=0x7f2ae8002390, ev=0x2c33110) at /usr/src/debug/phonon-4.4.2/xine/xinestream.cpp:1244
#10 0x000000379ddb1ccc in QApplicationPrivate::notify_helper (this=0x1bb29d0, receiver=0x7f2ae8002390, e=0x2c33110) at kernel/qapplication.cpp:4389
#11 0x000000379ddb731d in QApplication::notify (this=<value optimized out>, receiver=0x7f2ae8002390, e=0x2c33110) at kernel/qapplication.cpp:4270
#12 0x000000379b5573dc in QCoreApplication::notifyInternal (this=0x7fff9fe2d930, receiver=0x7f2ae8002390, event=0x2c33110) at kernel/qcoreapplication.cpp:732
#13 0x000000379b55a9f2 in sendEvent (receiver=0x0, event_type=0, data=0x1c65ac0) at kernel/qcoreapplication.h:215
#14 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1c65ac0) at kernel/qcoreapplication.cpp:1373
#15 0x000000379b57f913 in sendPostedEvents (s=<value optimized out>) at kernel/qcoreapplication.h:220
#16 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#17 0x000000379203bd02 in g_main_dispatch (context=0x7f2ae80009b0) at gmain.c:1960
#18 IA__g_main_context_dispatch (context=0x7f2ae80009b0) at gmain.c:2513
#19 0x000000379203fae8 in g_main_context_iterate (context=0x7f2ae80009b0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2591
#20 0x000000379203fc9c in IA__g_main_context_iteration (context=0x7f2ae80009b0, may_block=1) at gmain.c:2654
#21 0x000000379b57f453 in QEventDispatcherGlib::processEvents (this=0x7f2ae80008c0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#22 0x000000379b556222 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#23 0x000000379b5564fc in QEventLoop::exec (this=0x7f2aef780b90, flags=...) at kernel/qeventloop.cpp:201
#24 0x000000379b46f8c0 in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#25 0x00007f2af8df0b30 in Phonon::Xine::XineThread::run (this=0x1c5e7c0) at /usr/src/debug/phonon-4.4.2/xine/xinethread.cpp:143
#26 0x000000379b471e7e in QThreadPrivate::start (arg=0x1c5e7c0) at thread/qthread_unix.cpp:266
#27 0x0000003791407761 in start_thread () from /lib64/libpthread.so.0
#28 0x00000037908e151d in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f2aee060710 (LWP 24211)):
#0  0x00000037908da073 in select () from /lib64/libc.so.6
#1  0x000000379f23c145 in xine_usec_sleep (usec=<value optimized out>) at utils.c:481
#2  0x000000379f2215d9 in video_out_loop (this_gen=0x22e0260) at video_out.c:1246
#3  0x0000003791407761 in start_thread () from /lib64/libpthread.so.0
#4  0x00000037908e151d in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f2aed45b710 (LWP 24212)):
#0  0x00000037908d7e13 in poll () from /lib64/libc.so.6
#1  0x00000037a982cc0f in poll_func (ufds=0x7f2ae0001460, nfds=2, timeout=-1, userdata=0x2705df0) at pulse/thread-mainloop.c:75
#2  0x00000037a981cae6 in pa_mainloop_poll (m=0x2705cf0) at pulse/mainloop.c:879
#3  0x00000037a981dec9 in pa_mainloop_iterate (m=0x2705cf0, block=<value optimized out>, retval=0x0) at pulse/mainloop.c:961
#4  0x00000037a981df80 in pa_mainloop_run (m=0x2705cf0, retval=0x0) at pulse/mainloop.c:979
#5  0x00000037a982ca0b in thread (userdata=0x2704f80) at pulse/thread-mainloop.c:94
#6  0x00000037a9c38878 in internal_thread_func (userdata=0x2705ea0) at pulsecore/thread-posix.c:72
#7  0x0000003791407761 in start_thread () from /lib64/libpthread.so.0
#8  0x00000037908e151d in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f2aeca5a710 (LWP 24213)):
#0  0x000000379140b3bc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x000000379f224753 in fifo_peek_int (this_gen=0x2709030) at audio_out.c:348
#2  fifo_peek (this_gen=0x2709030) at audio_out.c:388
#3  ao_loop (this_gen=0x2709030) at audio_out.c:1015
#4  0x0000003791407761 in start_thread () from /lib64/libpthread.so.0
#5  0x00000037908e151d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f2ae7fff710 (LWP 24216)):
#0  0x000000379140b3bc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x000000379f224753 in fifo_peek_int (this_gen=0x28c0050) at audio_out.c:348
#2  fifo_peek (this_gen=0x28c0050) at audio_out.c:388
#3  ao_loop (this_gen=0x28c0050) at audio_out.c:1015
#4  0x0000003791407761 in start_thread () from /lib64/libpthread.so.0
#5  0x00000037908e151d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f2b04cd4960 (LWP 24207)):
#0  0x000000379140b729 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x000000379b471445 in thread_sleep (ti=0x7fff9fe2d600) at thread/qthread_unix.cpp:416
#2  0x000000379b4715b0 in QThread::msleep (msecs=<value optimized out>) at thread/qthread_unix.cpp:442
#3  0x00007f2af8e1455a in Phonon::Xine::Backend::~Backend (this=0x1d879d0, __in_chrg=<value optimized out>) at /usr/src/debug/phonon-4.4.2/xine/backend.cpp:111
#4  0x00007f2af8e14769 in Phonon::Xine::Backend::~Backend (this=0x1d879d0, __in_chrg=<value optimized out>) at /usr/src/debug/phonon-4.4.2/xine/backend.cpp:123
#5  0x00000037abc35167 in Phonon::FactoryPrivate::~FactoryPrivate (this=0x1c56650, __in_chrg=<value optimized out>) at /usr/src/debug/phonon-4.4.2/phonon/factory.cpp:218
#6  0x00000037abc352e9 in Phonon::FactoryPrivate::~FactoryPrivate (this=0x1c56650, __in_chrg=<value optimized out>) at /usr/src/debug/phonon-4.4.2/phonon/factory.cpp:222
#7  0x000000379b55775c in qt_call_post_routines () at kernel/qcoreapplication.cpp:203
#8  0x000000379ddbc6f8 in QApplication::~QApplication (this=0x7fff9fe2d930, __in_chrg=<value optimized out>) at kernel/qapplication.cpp:1044
#9  0x0000000000429ea5 in BangarangApplication::~BangarangApplication (this=0x7fff9fe2d930, __in_chrg=<value optimized out>) at /root/bangarang/src/bangarangapplication.cpp:213
#10 0x000000000045343a in main (argc=1, argv=<value optimized out>) at /root/bangarang/src/main.cpp:66

I got this backtrace with Bangarang, trying to play a stream there, and I strongly think that this has a relationship with this bug. Submitting.
Comment 118 Myriam Schweingruber 2010-08-24 22:23:13 UTC
*** Bug 248934 has been marked as a duplicate of this bug. ***
Comment 119 Jorge Iván Andrés Contreras Pereira 2010-09-09 21:30:38 UTC
Created attachment 51486 [details]
New crash information added by DrKonqi

amarok (2.3.1) on KDE Platform 4.5.00 (KDE 4.5.0) using Qt 4.6.3

- What I was doing when the application crashed:
I was playing music from Jamendo and when he went to the next song, failed and was closed.
- Custom settings of the application:
Using list of songs from Jamendo and support in MySQL database

-- Backtrace (Reduced):
#7  0x00007f875b083b85 in _x_meta_info_get_public () from /usr/lib/libxine.so.1
#8  0x00007f875b2bfa6a in Phonon::Xine::XineStream::updateMetaData() () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#9  0x00007f875b2c25d3 in Phonon::Xine::XineStream::event(QEvent*) () from /usr/lib/kde4/plugins/phonon_backend/phonon_xine.so
#10 0x00007f87718c4854 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#11 0x00007f87718c893a in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
Comment 120 Myriam Schweingruber 2010-09-19 15:59:34 UTC
*** Bug 244519 has been marked as a duplicate of this bug. ***
Comment 121 Myriam Schweingruber 2010-11-29 17:37:22 UTC
*** Bug 258142 has been marked as a duplicate of this bug. ***
Comment 122 Myriam Schweingruber 2010-12-21 17:13:44 UTC
*** Bug 260894 has been marked as a duplicate of this bug. ***
Comment 123 Myriam Schweingruber 2011-06-07 23:28:26 UTC
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.
Comment 124 Myriam Schweingruber 2011-11-23 13:37:05 UTC
*** Bug 200702 has been marked as a duplicate of this bug. ***
Comment 125 Myriam Schweingruber 2011-11-23 13:38:29 UTC
*** Bug 211303 has been marked as a duplicate of this bug. ***
Comment 126 Myriam Schweingruber 2011-11-23 13:53:30 UTC
*** Bug 248823 has been marked as a duplicate of this bug. ***
Comment 127 Myriam Schweingruber 2011-11-23 13:58:10 UTC
*** Bug 236342 has been marked as a duplicate of this bug. ***