Bug 259172

Summary: kaffeine crash after shifting from one source to another one
Product: [Applications] kaffeine Reporter: invar
Component: generalAssignee: Mauro Carvalho Chehab <mchehab>
Status: RESOLVED INTENTIONAL    
Severity: crash CC: mchehab
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description invar 2010-12-07 23:11:34 UTC
Application: kaffeine-xbu (1.0 1.1.19)
KDE Platform Version: 4.4.5 (KDE 4.4.5)
Qt Version: 4.6.3
Operating System: Linux 2.6.32-5-amd64 x86_64
Distribution: Debian GNU/Linux testing-proposed-updates (sid)

-- Information about the crash:
watching at a channel from a satellite (DVB-S) 
changing to a channel from DVB-T 
crash

The crash can be reproduced some of the time.

 -- Backtrace:
Application: Kaffeine (kaffeine-xbu), signal: Aborted
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
The current source language is "auto; currently asm".
[Current thread is 1 (Thread 0x7fd2abfea760 (LWP 3265))]

Thread 8 (Thread 0x7fd28eed7710 (LWP 3273)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007fd2ab87bf41 in ?? () from /usr/lib/libxine.so.1
#2  0x00007fd2a7b268ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007fd2a8d0002d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7fd28d37b710 (LWP 3274)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1  0x00007fd2a8ca9458 in _L_lock_9590 () from /lib/libc.so.6
#2  0x00007fd2a8ca7841 in *__GI___libc_free (mem=0x7fd2a8f8de40) at malloc.c:3737
#3  0x00007fd28e2c3b2e in pa_xfree () from /usr/lib/libpulse.so.0
#4  0x00007fd28e2b1415 in ?? () from /usr/lib/libpulse.so.0
#5  0x00007fd28e2b1498 in pa_proplist_clear () from /usr/lib/libpulse.so.0
#6  0x00007fd28e2b1e32 in pa_proplist_free () from /usr/lib/libpulse.so.0
#7  0x00007fd28e2bbba3 in pa_stream_unref () from /usr/lib/libpulse.so.0
#8  0x00007fd28e06ae63 in ?? () from /usr/lib/libpulsecommon-0.9.21.so
#9  0x00007fd28e06b5b9 in pa_pdispatch_run () from /usr/lib/libpulsecommon-0.9.21.so
#10 0x00007fd28e2a2d9d in ?? () from /usr/lib/libpulse.so.0
#11 0x00007fd28e06f314 in ?? () from /usr/lib/libpulsecommon-0.9.21.so
#12 0x00007fd28e2afbdd in pa_mainloop_dispatch () from /usr/lib/libpulse.so.0
#13 0x00007fd28e2aff68 in pa_mainloop_iterate () from /usr/lib/libpulse.so.0
#14 0x00007fd28e2b0010 in pa_mainloop_run () from /usr/lib/libpulse.so.0
#15 0x00007fd28e2be8eb in ?? () from /usr/lib/libpulse.so.0
#16 0x00007fd28e07c700 in ?? () from /usr/lib/libpulsecommon-0.9.21.so
#17 0x00007fd2a7b268ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#18 0x00007fd2a8d0002d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#19 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7fd288b79710 (LWP 3275)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fd2ab88caab in ?? () from /usr/lib/libxine.so.1
#2  0x00007fd2a7b268ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007fd2a8d0002d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fd28793b710 (LWP 3276)):
#0  0x00007fd2a8cf98d3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fd2ab8a4c25 in xine_usec_sleep () from /usr/lib/libxine.so.1
#2  0x00007fd2ab889c84 in ?? () from /usr/lib/libxine.so.1
#3  0x00007fd2a7b268ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007fd2a8d0002d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fd286d51710 (LWP 3277)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fd2ab87c155 in ?? () from /usr/lib/libxine.so.1
#2  0x00007fd2ab885cec in ?? () from /usr/lib/libxine.so.1
#3  0x00007fd2a7b268ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#4  0x00007fd2a8d0002d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fd286383710 (LWP 3278)):
[KCrash Handler]
#5  0x00007fd2a8c63165 in *__GI_raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#6  0x00007fd2a8c65f70 in *__GI_abort () at abort.c:92
#7  0x00007fd2a8c9927b in __libc_message (do_abort=<value optimized out>, fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#8  0x00007fd2a8ca2ad6 in malloc_printerr (action=3, str=0x7fd2a8d59a38 "free(): invalid next size (normal)", ptr=<value optimized out>) at malloc.c:6267
#9  0x00007fd2a8ca784c in *__GI___libc_free (mem=<value optimized out>) at malloc.c:3739
#10 0x00007fd280c2b635 in NeAACDecClose () from /usr/lib/libfaad.so.2
#11 0x00007fd280e65e80 in ?? () from /usr/lib/xine/plugins/1.29/xineplug_decode_faad.so
#12 0x00007fd2ab88230f in _x_free_audio_decoder () from /usr/lib/libxine.so.1
#13 0x00007fd2ab8869b2 in ?? () from /usr/lib/libxine.so.1
#14 0x00007fd2a7b268ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#15 0x00007fd2a8d0002d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#16 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fd285b82710 (LWP 3279)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fd2ab88fbeb in ?? () from /usr/lib/libxine.so.1
#2  0x00007fd2a7b268ba in start_thread (arg=<value optimized out>) at pthread_create.c:300
#3  0x00007fd2a8d0002d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#4  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fd2abfea760 (LWP 3265)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:211
#1  0x00007fd2ab894b85 in _x_demux_control_headers_done () from /usr/lib/libxine.so.1
#2  0x00007fd2ab87a11a in xine_open () from /usr/lib/libxine.so.1
#3  0x000000000040737c in XineObject::customEvent (this=0x7fff1656cf00, event=<value optimized out>) at /tmp/buildd/kaffeine-1.0/src/backend-xine/xineapplication.cpp:672
#4  0x00007fd2aa800e84 in QObject::event (this=0x7fff1656cf00, e=0x7fd27c00c0d0) at kernel/qobject.cpp:1279
#5  0x00007fd2a993632c in QApplicationPrivate::notify_helper (this=0x65a510, receiver=0x7fff1656cf00, e=0x7fd27c00c0d0) at kernel/qapplication.cpp:4302
#6  0x00007fd2a993c80b in QApplication::notify (this=0x7fff1656cfe0, receiver=0x7fff1656cf00, e=0x7fd27c00c0d0) at kernel/qapplication.cpp:4185
#7  0x00007fd2ab4527a6 in KApplication::notify (this=0x7fff1656cfe0, receiver=0x7fff1656cf00, event=0x7fd27c00c0d0) at ../../kdeui/kernel/kapplication.cpp:302
#8  0x00007fd2aa7f109c in QCoreApplication::notifyInternal (this=0x7fff1656cfe0, receiver=0x7fff1656cf00, event=0x7fd27c00c0d0) at kernel/qcoreapplication.cpp:726
#9  0x00007fd2aa7f4744 in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x643c20) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#10 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x643c20) at kernel/qcoreapplication.cpp:1367
#11 0x00007fd2aa81ab73 in QCoreApplication::sendPostedEvents (s=<value optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#12 postEventSourceDispatch (s=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:276
#13 0x00007fd2a5e4d6f2 in g_main_dispatch (context=0x65ca20) at /scratch/build-area/glib2.0-2.24.2/glib/gmain.c:1960
#14 IA__g_main_context_dispatch (context=0x65ca20) at /scratch/build-area/glib2.0-2.24.2/glib/gmain.c:2513
#15 0x00007fd2a5e51568 in g_main_context_iterate (context=0x65ca20, block=<value optimized out>, dispatch=<value optimized out>, self=<value optimized out>)
    at /scratch/build-area/glib2.0-2.24.2/glib/gmain.c:2591
#16 0x00007fd2a5e5171c in IA__g_main_context_iteration (context=0x65ca20, may_block=1) at /scratch/build-area/glib2.0-2.24.2/glib/gmain.c:2654
#17 0x00007fd2aa81a6b3 in QEventDispatcherGlib::processEvents (this=0x643310, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#18 0x00007fd2a99e619e in QGuiEventDispatcherGlib::processEvents (this=0xee1e94, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#19 0x00007fd2aa7ef9c2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#20 0x00007fd2aa7efd9c in QEventLoop::exec (this=0x7fff1656ce40, flags=) at kernel/qeventloop.cpp:201
#21 0x00007fd2aa7f4a2b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#22 0x0000000000404da7 in main (argc=<value optimized out>, argv=<value optimized out>) at /tmp/buildd/kaffeine-1.0/src/backend-xine/xineapplication.cpp:1003

Reported using DrKonqi
Comment 1 Mauro Carvalho Chehab 2016-06-01 12:04:05 UTC
The Kaffeine version you're using is too old. It still uses libxine backend to play videos. We moved to libVLC sometime ago (version 1.3.x), and we just released upstream a version 2.0.1, with is based on KDE5. So, lots of change too. Could you please test the upstream version and see if it works? The README file contains instructions about how to compile it. You can find it at our git repository:

https://quickgit.kde.org/?p=kaffeine.git

As this BZ is on an old version that we're not maintaining upstream anymore, I'm closing the bug. If you find similar issues with version 2.0.1, please re-open.