Bug 221041 - [steps] Reproducible Phonon-Xine related crash when watching a ASX stream
Summary: [steps] Reproducible Phonon-Xine related crash when watching a ASX stream
Status: RESOLVED DUPLICATE of bug 220152
Alias: None
Product: Phonon
Classification: Frameworks and Libraries
Component: Xine backend (show other bugs)
Version: 4.3.0 (KDE 4.2.0)
Platform: Gentoo Packages Unspecified
: NOR crash
Target Milestone: ---
Assignee: Matthias Kretz
URL:
Keywords: reproducible, testcase
: 221043 224554 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-01-03 00:23 UTC by BRULE Herman
Modified: 2010-12-05 22:16 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BRULE Herman 2010-01-03 00:23:31 UTC
Version:            (using KDE 4.3.4)
Installed from:    Gentoo Packages

Random crash after read this asx:
http://wwitv.com/tv_stream/b2750.asx
The bt:
Application: Kaffeine (kaffeine), signal: Segmentation fault
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/lib64/libgobject-2.0.so.0.2200.3-gdb.py", line 9, in <module>
    from gobject import register
  File "/usr/share/glib-2.0/gdb/gobject.py", line 3, in <module>
    import gdb.backtrace
ImportError: No module named backtrace
The current source language is "auto; currently c".
[Current thread is 1 (Thread 0x7f571a2da740 (LWP 846))]

Thread 6 (Thread 0x7f570fb92910 (LWP 848)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:220
#1  0x00007f570e82d401 in metronom_sync_loop (this=0x23f65f0) at metronom.c:870
#2  0x00007f57177462b7 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#3  0x00007f57161d07dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f57098ea910 (LWP 849)):
[KCrash Handler]
#5  xine_get_status (stream=0x0) at xine.c:1865
#6  0x00007f570ea90e4c in Phonon::Xine::XineStream::event (this=0x237fe00, ev=0x2cee510) at /var/tmp/portage/media-sound/phonon-4.3.80-r1/work/phonon-4.3.80/xine/xinestream.cpp:895
#7  0x00007f5716da18d5 in QApplicationPrivate::notify_helper (this=0x21caf00, receiver=0x237fe00, e=0x2cee510) at kernel/qapplication.cpp:4065
#8  0x00007f5716da945a in QApplication::notify (this=0x7fff574183f0, receiver=0x237fe00, e=0x2cee510) at kernel/qapplication.cpp:4030
#9  0x00007f57188f15ea in KApplication::notify (this=0x7fff574183f0, receiver=0x237fe00, event=0x2cee510)
    at /var/tmp/portage/kde-base/kdelibs-4.3.4/work/kdelibs-4.3.4/kdeui/kernel/kapplication.cpp:302
#10 0x00007f5717a97d2b in QCoreApplication::notifyInternal (this=0x7fff574183f0, receiver=0x237fe00, event=0x2cee510) at kernel/qcoreapplication.cpp:606
#11 0x00007f5717a986f8 in QCoreApplication::sendEvent (receiver=<value optimized out>, event_type=0, data=0x2206f20) at kernel/qcoreapplication.h:213
#12 QCoreApplicationPrivate::sendPostedEvents (receiver=<value optimized out>, event_type=0, data=0x2206f20) at kernel/qcoreapplication.cpp:1244
#13 0x00007f5717abfa53 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at kernel/qcoreapplication.h:218
#14 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:210
#15 0x00007f571582d149 in g_main_dispatch (context=0x225a560) at gmain.c:1960
#16 IA__g_main_context_dispatch (context=0x225a560) at gmain.c:2513
#17 0x00007f5715830ba8 in g_main_context_iterate (context=0x225a560, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2591
#18 0x00007f5715830d5e in IA__g_main_context_iteration (context=0x225a560, may_block=1) at gmain.c:2654
#19 0x00007f5717abf64f in QEventDispatcherGlib::processEvents (this=0x22d6560, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#20 0x00007f5717a96372 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#21 0x00007f5717a9655c in QEventLoop::exec (this=0x7f57098e9f80, flags=...) at kernel/qeventloop.cpp:197
#22 0x00007f57179b5c8c in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:487
#23 0x00007f570ea8888c in Phonon::Xine::XineThread::run (this=0x2257650) at /var/tmp/portage/media-sound/phonon-4.3.80-r1/work/phonon-4.3.80/xine/xinethread.cpp:143
#24 0x00007f57179b8ca4 in QThreadPrivate::start (arg=0x2257650) at thread/qthread_unix.cpp:188
#25 0x00007f57177462b7 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#26 0x00007f57161d07dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#27 0x0000000000000000 in ?? ()
The current source language is "auto; currently asm".

Thread 4 (Thread 0x7f5708edf910 (LWP 850)):
#0  0x00007f57161c77a6 in *__GI___poll (fds=0x7f5708edef90, nfds=1, timeout=333) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f5708ee49d8 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  0x00007f57177462b7 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#4  0x00007f57161d07dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()
The current source language is "auto; currently c".

Thread 3 (Thread 0x7f57086de910 (LWP 851)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:261
#1  0x00007f570e83bcd0 in fifo_peek_int (fifo=0x2370fc0, blocking=1) at audio_out.c:348
#2  0x00007f570e83d76c in 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  0x00007f57177462b7 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#5  0x00007f57161d07dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f57072a0910 (LWP 852)):
#0  0x00007f57161c9d32 in select () from /lib/libc.so.6
#1  0x00007f570e854b6c in xine_usec_sleep (usec=<value optimized out>) at utils.c:481
#2  0x00007f570e83a443 in video_out_loop (this_gen=<value optimized out>) at video_out.c:1246
#3  0x00007f57177462b7 in start_thread (arg=<value optimized out>) at pthread_create.c:297
#4  0x00007f57161d07dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()
The current source language is "auto; currently asm".

Thread 1 (Thread 0x7f571a2da740 (LWP 846)):
#0  0x00007f571774cc7b in read () from /lib/libpthread.so.0
#1  0x00007f5715830047 in read (context=0x21d2840, max_priority=2147483647, fds=0x2bf84b0, n_fds=6) at /usr/include/bits/unistd.h:45
#2  IA__g_main_context_check (context=0x21d2840, max_priority=2147483647, fds=0x2bf84b0, n_fds=6) at gmain.c:2421
#3  0x00007f5715830ad1 in g_main_context_iterate (context=0x21d2840, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2588
#4  0x00007f5715830d5e in IA__g_main_context_iteration (context=0x21d2840, may_block=1) at gmain.c:2654
#5  0x00007f5717abf64f in QEventDispatcherGlib::processEvents (this=0x21caac0, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:327
#6  0x00007f5716e30b28 in QGuiEventDispatcherGlib::processEvents (this=0x3, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:202
#7  0x00007f5717a96372 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#8  0x00007f5717a9655c in QEventLoop::exec (this=0x7fff57418360, flags=...) at kernel/qeventloop.cpp:197
#9  0x00007f5717a9899c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
#10 0x000000000048191f in main (argc=1, argv=0x7fff57418658) at /home/user/kaffeine/src/main.cpp:78
The current source language is "auto; currently c".
Comment 1 Dario Andres 2010-01-03 15:09:48 UTC
This is probably related to bug 220152 / bug 202982.
It is a bug in the Phonon KDE multimedia subsytem, when using the Xine multimedia library.
Thanks
Comment 2 Dario Andres 2010-01-03 15:11:39 UTC
*** Bug 221043 has been marked as a duplicate of this bug. ***
Comment 3 Dario Andres 2010-01-03 15:21:46 UTC
I could reproduce the crash using the provided URL here using:

Qt: 4.6.0 (kde-qt master commit 747ff8e6ef6f5a1163dfa75bc9ac4755ce7083d1
        Date:   Tue Dec 15 11:58:13 2009 +0100)
KDE Development Platform: 4.3.86 (KDE 4.3.86 (KDE 4.4 >= 20091231))
kdelibs svn rev. 1069096 / kdebase svn rev. 1069104
phonon(kde-support) svn rev. 1069080
xine-lib 1.1.17
on ArchLinux i686 - Kernel 2.6.31.6

Steps to reproduce:
--

- Launch DragonPlayer to show http://wwitv.com/tv_stream/b2750.asx ("dragon http://wwitv.com/tv_stream/b2750.asx" from Konsole should be enough)
- Wait some time and Dragon will crash.. Here it crashes after 1 minute.

Updated backtrace:
--

Thread 4 (Thread 0xb10f7b70 (LWP 7207)):
[KCrash Handler]
#5  0xb6f8a810 in xine_get_status () from /usr/lib/libxine.so.1
#6  0xb3349a8d in Phonon::Xine::XineStream::event (this=0xa390c10, ev=0xa570cc0) at /home/kde-devel/kde/src/KDE/phonon/xine/xinestream.cpp:904
#7  0xb5ca4834 in QApplicationPrivate::notify_helper (this=0x9d02f38, receiver=0xa390c10, e=0xa570cc0) at kernel/qapplication.cpp:4242
#8  0xb5ca2231 in QApplication::notify (this=0xbffd21c4, receiver=0xa390c10, e=0xa570cc0) at kernel/qapplication.cpp:3661
#9  0xb728de0c in KApplication::notify (this=0xbffd21c4, receiver=0xa390c10, event=0xa570cc0) at /home/kde-devel/kde/src/KDE/kdelibs/kdeui/kernel/kapplication.cpp:302
#10 0xb6ad0411 in QCoreApplication::notifyInternal (this=0xbffd21c4, receiver=0xa390c10, event=0xa570cc0) at kernel/qcoreapplication.cpp:704
#11 0xb6ad3ee9 in QCoreApplication::sendEvent (receiver=0xa390c10, event=0xa570cc0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#12 0xb6ad14c5 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0xa38bab0) at kernel/qcoreapplication.cpp:1345
#13 0xb6ad117d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1238
#14 0xb6b0855e in QCoreApplication::sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#15 0xb6b06e4c in postEventSourceDispatch (s=0xa38b590) at kernel/qeventdispatcher_glib.cpp:276
#16 0xb5415378 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#17 0xb5418bf0 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#18 0xb5418d23 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#19 0xb6b07e48 in QEventDispatcherGlib::processEvents (this=0xa3954f0, flags=...) at kernel/qeventdispatcher_glib.cpp:407
#20 0xb6acd81b in QEventLoop::processEvents (this=0xb10f7298, flags=...) at kernel/qeventloop.cpp:149
#21 0xb6acd960 in QEventLoop::exec (this=0xb10f7298, flags=...) at kernel/qeventloop.cpp:201
#22 0xb69b8218 in QThread::exec (this=0xa38f208) at thread/qthread.cpp:487
#23 0xb33437a1 in Phonon::Xine::XineThread::run (this=0xa38f208) at /home/kde-devel/kde/src/KDE/phonon/xine/xinethread.cpp:143
#24 0xb69bacdc in QThreadPrivate::start (arg=0xa38f208) at thread/qthread_unix.cpp:244
#25 0xb692a8ac in start_thread () from /lib/libpthread.so.0
#26 0xb596e01e in clone () from /lib/libc.so.6

I debugged the crash and, in fact, "stream" was 0 on "Phonon::Xine::XineStream::event"

A weird thing is that I got a XIOError, while the original backtrace was normal on thread 1...
Comment 4 Dario Andres 2010-01-28 02:15:17 UTC
*** Bug 224554 has been marked as a duplicate of this bug. ***
Comment 5 Myriam Schweingruber 2010-02-10 10:53:22 UTC
(In reply to comment #1)
> This is probably related to bug 220152 / bug 202982.
> It is a bug in the Phonon KDE multimedia subsytem, when using the Xine
> multimedia library.

The backtraces are identical, why keeping open both reports?

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