Bug 332292 - Kaffeine (kaffeine-xbu) crashed (segmentation fault) by switching channels
Summary: Kaffeine (kaffeine-xbu) crashed (segmentation fault) by switching channels
Status: RESOLVED INTENTIONAL
Alias: None
Product: kaffeine
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Christoph Pfister
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-03-18 21:19 UTC by Tomáš Jedlička
Modified: 2017-10-04 09:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Jedlička 2014-03-18 21:19:33 UTC
Application: kaffeine-xbu (1.2.2 1.2.3)
KDE Platform Version: 4.11.5
Qt Version: 4.8.5
Operating System: Linux 3.11.10-7-desktop x86_64
Distribution: "openSUSE 13.1 (Bottle) (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed: Switching channels. Starting Kaffeine - OK. First channel selection - OK. 2-3 change the channel - OK. But another switch causes the crash, verified repeatedly.

The crash can be reproduced every time.

-- Backtrace:
Application: Přehrávač Kaffeine (kaffeine-xbu), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f0c4fbab780 (LWP 2293))]

Thread 10 (Thread 0x7f0c3df78700 (LWP 2295)):
#0  0x00007f0c4e1f8458 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f0c4f42c4b1 in metronom_sync_loop (this_gen=0x20cf160) at metronom.c:900
#2  0x00007f0c4e1f40db in start_thread () from /lib64/libpthread.so.0
#3  0x00007f0c4cf5d90d in clone () from /lib64/libc.so.6

Thread 9 (Thread 0x7f0c37af2700 (LWP 2296)):
#0  0x00007f0c4cf54b3d in poll () from /lib64/libc.so.6
#1  0x00007f0c388e38c1 in ?? () from /usr/lib64/libpulse.so.0
#2  0x00007f0c388d50ec in pa_mainloop_poll () from /usr/lib64/libpulse.so.0
#3  0x00007f0c388d575e in pa_mainloop_iterate () from /usr/lib64/libpulse.so.0
#4  0x00007f0c388d5810 in pa_mainloop_run () from /usr/lib64/libpulse.so.0
#5  0x00007f0c388e3873 in ?? () from /usr/lib64/libpulse.so.0
#6  0x00007f0c38483ef8 in ?? () from /usr/lib64/pulseaudio/libpulsecommon-4.0.so
#7  0x00007f0c4e1f40db in start_thread () from /lib64/libpthread.so.0
#8  0x00007f0c4cf5d90d in clone () from /lib64/libc.so.6

Thread 8 (Thread 0x7f0c332f0700 (LWP 2297)):
#0  0x00007f0c4e1f80af in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f0c4f43e293 in fifo_peek_int (blocking=1, fifo=0x2191a70) at audio_out.c:360
#2  fifo_peek (fifo=0x2191a70) at audio_out.c:400
#3  ao_loop (this_gen=0x2171b40) at audio_out.c:1025
#4  0x00007f0c4e1f40db in start_thread () from /lib64/libpthread.so.0
#5  0x00007f0c4cf5d90d in clone () from /lib64/libc.so.6

Thread 7 (Thread 0x7f0c28bca700 (LWP 2298)):
#0  0x00007f0c4e1f80af in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f0c322005ab in pipe_semaphore_wait (sema=0x22e6730) at ../../../../../src/gallium/auxiliary/os/os_thread.h:434
#2  radeon_drm_cs_emit_ioctl (param=0x22e6530) at radeon_drm_winsys.c:553
#3  0x00007f0c4e1f40db in start_thread () from /lib64/libpthread.so.0
#4  0x00007f0c4cf5d90d in clone () from /lib64/libc.so.6

Thread 6 (Thread 0x7f0c282c9700 (LWP 2301)):
#0  0x00007f0c4e1f8458 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f0c4f437f8b in interruptable_sleep (this=this@entry=0x23655a0, usec_to_sleep=usec_to_sleep@entry=1000) at video_out.c:1429
#2  0x00007f0c4f43a6b4 in video_out_loop (this_gen=0x23655a0) at video_out.c:1663
#3  0x00007f0c4e1f40db in start_thread () from /lib64/libpthread.so.0
#4  0x00007f0c4cf5d90d in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7f0c26cb7700 (LWP 2302)):
#0  0x00007f0c4e1fa89c in __lll_lock_wait () from /lib64/libpthread.so.0
#1  0x00007f0c4e1f64d7 in _L_lock_913 () from /lib64/libpthread.so.0
#2  0x00007f0c4e1f6300 in pthread_mutex_lock () from /lib64/libpthread.so.0
#3  0x00007f0c321f8039 in vlVdpVideoSurfaceDestroy (surface=30) at surface.c:124
#4  0x00007f0c328e55ba in vdpau_update_frame_format (this_gen=0x22d4110, frame_gen=0x23e5520, width=1920, height=1080, ratio=1, format=1095779414, flags=3) at video_out_vdpau.c:1241
#5  0x00007f0c4f43924b in vo_get_frame (this_gen=0x23655a0, width=1920, height=1080, ratio=1, format=1095779414, flags=3) at video_out.c:736
#6  0x00007f0c4f448f63 in post_video_get_frame (port_gen=0x2455bc0, width=1920, height=1080, ratio=<optimized out>, format=1095779414, flags=<optimized out>) at post.c:69
#7  0x00007f0c0f010269 in open_plugin () from /usr/lib64/xine/plugins/2.3/xineplug_decode_vdpau_mpeg12.so
#8  0x00007f0c4f434825 in _x_get_video_decoder (stream=stream@entry=0x240c0a0, stream_type=stream_type@entry=0 '\000') at load_plugins.c:2123
#9  0x00007f0c4f4367c7 in video_decoder_loop (stream_gen=0x240c0a0) at video_decoder.c:409
#10 0x00007f0c4e1f40db in start_thread () from /lib64/libpthread.so.0
#11 0x00007f0c4cf5d90d in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7f0c262e9700 (LWP 2303)):
#0  0x00007f0c4e1fa89c in __lll_lock_wait () from /lib64/libpthread.so.0
#1  0x00007f0c4e1f64d7 in _L_lock_913 () from /lib64/libpthread.so.0
#2  0x00007f0c4e1f6300 in pthread_mutex_lock () from /lib64/libpthread.so.0
#3  0x00007f0c4f434a5f in _x_get_audio_decoder (stream=stream@entry=0x240c0a0, stream_type=<optimized out>) at load_plugins.c:2178
#4  0x00007f0c4f437993 in audio_decoder_loop (stream_gen=0x240c0a0) at audio_decoder.c:344
#5  0x00007f0c4e1f40db in start_thread () from /lib64/libpthread.so.0
#6  0x00007f0c4cf5d90d in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f0c25ae8700 (LWP 2304)):
#0  0x00007f0c4e1f80af in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f0c4f44013b in xine_event_wait (queue=queue@entry=0x2452dc0) at events.c:56
#2  0x00007f0c4f4401de in listener_loop (queue_gen=0x2452dc0) at events.c:219
#3  0x00007f0c4e1f40db in start_thread () from /lib64/libpthread.so.0
#4  0x00007f0c4cf5d90d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f0c0fc18700 (LWP 2625)):
#0  0x00007f0c4cf56913 in select () from /lib64/libc.so.6
#1  0x00007f0c4f455da4 in xine_usec_sleep (usec=<optimized out>, usec@entry=100000) at utils.c:511
#2  0x00007f0c4f444f1a in demux_loop (stream_gen=0x240c0a0) at demux.c:365
#3  0x00007f0c4e1f40db in start_thread () from /lib64/libpthread.so.0
#4  0x00007f0c4cf5d90d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f0c4fbab780 (LWP 2293)):
[KCrash Handler]
#5  0x00007f0c4cf05f4e in __memcpy_sse2_unaligned () from /lib64/libc.so.6
#6  0x00007f0c321b979e in memcpy (__len=<optimized out>, __src=<optimized out>, __dest=<optimized out>) at /usr/include/bits/string3.h:51
#7  r600_emit_command_buffer (cs=0x238b460, cs=0x238b460, cb=0x7f0c18178970, cb=0x7f0c18178970) at r600_pipe.h:652
#8  r600_emit_cso_state (rctx=<optimized out>, atom=<optimized out>) at r600_state_common.c:69
#9  0x00007f0c321baf78 in r600_emit_atom (atom=0x23147e8, rctx=0x2314100) at r600_pipe.h:660
#10 r600_draw_vbo (ctx=0x2314100, dinfo=<optimized out>) at r600_state_common.c:1414
#11 0x00007f0c32105d93 in util_draw_arrays (mode=7, count=4, start=0, pipe=0x2314100) at util/u_draw.h:63
#12 draw_layers (dirty=0x2314528, s=0x23e2f10, c=0x20d5a60) at vl/vl_compositor.c:730
#13 vl_compositor_render (s=s@entry=0x23e2f10, c=c@entry=0x20d5a60, dst_surface=dst_surface@entry=0x24a7160, dirty_area=dirty_area@entry=0x20d5ba8, clear_dirty=clear_dirty@entry=true) at vl/vl_compositor.c:1025
#14 0x00007f0c321f9ede in vlVdpPresentationQueueDisplay (presentation_queue=<optimized out>, surface=7, clip_width=<optimized out>, clip_height=<optimized out>, earliest_presentation_time=0) at presentation.c:265
#15 0x00007f0c328e4f44 in vdpau_gui_data_exchange (this_gen=0x22d4110, data_type=<optimized out>, data=<optimized out>) at video_out_vdpau.c:2330
#16 0x0000000000405a41 in _start ()

Reported using DrKonqi
Comment 1 Mauro Carvalho Chehab 2016-06-01 10:33:38 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 anymore, I'm closing the bug. If you find similar issues with version 2.0.1, please re-open.