Skip to content

Random segfault in memcpy-ssse3.S, and freezes

When reading a video (H264-MPEG flow), the video is correctly displayed, but whenever I switch to a different time, VLC crashed in 50% of cases, and sometimes stays frozen (no answer to "killall vlc"). Occasionnaly (every hour), VLC also crashes why saving the flow to the hard disk without displaying it or compressing it.

This happened with upgrade to Xubuntu (Linux/XFCE) 14.04, with VLC 2.1.2. Using the lasted build from ppa:videolan/stable-daily did not change anything.

OS: Linux i386 32 bits (Xubuntu 14.04) $ uname -a Linux .... 3.13.0-24-generic #46 (closed)-Ubuntu SMP Thu Apr 10 19:08:14 UTC 2014 i686 i686 i686 GNU/Linux

VLC version: 2.1.2, 2.1.5 Rincewind (revision 2.1.2+git20140420+r54523+18+11~ubuntu14.04.1)

Hardware: PC laptop 1280x800, 2GB RAM, CPU: Intel(R) Pentium(R) Dual CPU T2370 @ 1.73GHz flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm dtherm

Crash (line breaks when clicking to some time, last try gave the crash), in gdb with debugging symbols:

(gdb) run [France_3][2014-04-23_20-10][50].mpg Starting program: /usr/bin/vlc [France_3][2014-04-23_20-10][50].mpg [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1". VLC media player 2.1.5 Rincewind (revision 2.1.2+git20140420+r54523+18+11~ubuntu14.04.1) [New Thread 0xb593db40 (LWP 14355)] [New Thread 0xb58bcb40 (LWP 14356)] [New Thread 0xb55fdb40 (LWP 14357)] [0x804c940] main libvlc: Lancement de vlc avec l'interface par défaut. Utilisez « cvlc » pour démarrer VLC sans interface. [New Thread 0xb547fb40 (LWP 14358)] [Thread 0xb58bcb40 (LWP 14356) exited] [New Thread 0xb225eb40 (LWP 14359)] [New Thread 0xb1a5db40 (LWP 14360)] [New Thread 0xb125cb40 (LWP 14361)] [New Thread 0xb08ffb40 (LWP 14362)] [New Thread 0xb58bcb40 (LWP 14364)] [Thread 0xb125cb40 (LWP 14361) exited] [New Thread 0xafbaab40 (LWP 14366)] [New Thread 0xae79fb40 (LWP 14367)] [New Thread 0xb125cb40 (LWP 14368)] [New Thread 0xad36ab40 (LWP 14369)] [New Thread 0xacb17b40 (LWP 14370)] [New Thread 0xac306b40 (LWP 14371)] [New Thread 0xa80feb40 (LWP 14372)] Fontconfig warning: FcPattern object size does not accept value "0" Fontconfig warning: FcPattern object size does not accept value "0" [New Thread 0xa761cb40 (LWP 14373)] [New Thread 0xa7593b40 (LWP 14374)] Fontconfig warning: FcPattern object size does not accept value "0" Fontconfig warning: FcPattern object size does not accept value "0" [0x8088ca0] main vout display error: Failed to resize display [h264 @ 0xafa539a0] mmco: unref short failure [h264 @ 0xafa534a0] mmco: unref short failure [h264 @ 0xafa539a0] mmco: unref short failure [h264 @ 0xafa539a0] mmco: unref short failure [h264 @ 0xafa539a0] illegal short term buffer state detected [h264 @ 0xafa539a0] mmco: unref short failure

[0xaffe4db0] ts demux error: libdvbpsi (PSI decoder): TS discontinuity (received 13, expected 1) for PID 0 [0xaffe4db0] ts demux error: libdvbpsi (PSI decoder): TS discontinuity (received 13, expected 1) for PID 66 [h264 @ 0xafa534a0] left block unavailable for requested intra mode at 0 24 [h264 @ 0xafa534a0] error while decoding MB 0 24, bytestream (0) [h264 @ 0xafa539a0] mmco: unref short failure Non-reference picture received and no reference available [h264 @ 0xafa539a0] decode_slice_header error [h264 @ 0xafa53d40] mmco: unref short failure [h264 @ 0xafa53d40] mmco: unref short failure Non-reference picture received and no reference available [h264 @ 0xafa53d40] decode_slice_header error [h264 @ 0xafa534a0] mmco: unref short failure [h264 @ 0xafa534a0] mmco: unref short failure [h264 @ 0xafa534a0] illegal short term buffer state detected Non-reference picture received and no reference available [h264 @ 0xafa534a0] decode_slice_header error Non-reference picture received and no reference available [h264 @ 0xafa539a0] decode_slice_header error Non-reference picture received and no reference available [h264 @ 0xafa53d40] decode_slice_header error Non-reference picture received and no reference available [h264 @ 0xafa534a0] decode_slice_header error [h264 @ 0xafa539a0] reference picture missing during reorder [h264 @ 0xafa539a0] reference picture missing during reorder [h264 @ 0xafa539a0] Missing reference picture [h264 @ 0xafa539a0] Missing reference picture [h264 @ 0xafa53d40] mmco: unref short failure [h264 @ 0xafa53d40] reference picture missing during reorder [h264 @ 0xafa53d40] Missing reference picture [h264 @ 0xafa539a0] mmco: unref short failure [h264 @ 0xafa539a0] mmco: unref short failure [h264 @ 0xafa539a0] number of reference frames (0+6) exceeds max (4; probably corrupt input), discarding one [h264 @ 0xafa539a0] mmco: unref short failure [h264 @ 0xafa539a0] mmco: unref short failure [h264 @ 0xafa539a0] number of reference frames (0+6) exceeds max (4; probably corrupt input), discarding one

[h264 @ 0xafa539a0] illegal short term buffer state detected [Thread 0xb08ffb40 (LWP 14362) exited] Non-reference picture received and no reference available [h264 @ 0xafa534a0] decode_slice_header error Non-reference picture received and no reference available [h264 @ 0xafa539a0] decode_slice_header error [h264 @ 0xafa539a0] concealing 1620 DC, 1620 AC, 1620 MV errors [0xaffe4db0] ts demux error: libdvbpsi (PSI decoder): TS discontinuity (received 0, expected 8) for PID 0 [0xaffe4db0] ts demux error: libdvbpsi (PSI decoder): TS discontinuity (received 0, expected 8) for PID 66 [h264 @ 0xafa53d40] mmco: unref short failure [h264 @ 0xafa53d40] mmco: unref short failure Non-reference picture received and no reference available [h264 @ 0xafa53d40] decode_slice_header error [h264 @ 0xafa534a0] mmco: unref short failure [h264 @ 0xafa534a0] mmco: unref short failure Non-reference picture received and no reference available [h264 @ 0xafa534a0] decode_slice_header error Non-reference picture received and no reference available [h264 @ 0xafa539a0] decode_slice_header error [h264 @ 0xafa539a0] concealing 1620 DC, 1620 AC, 1620 MV errors [h264 @ 0xafa534a0] mmco: unref short failure [h264 @ 0xafa539a0] mmco: unref short failure [h264 @ 0xafa539a0] mmco: unref short failure

Non-reference picture received and no reference available [h264 @ 0xafa534a0] decode_slice_header error [h264 @ 0xafa539a0] mmco: unref short failure Non-reference picture received and no reference available [h264 @ 0xafa539a0] decode_slice_header error Non-reference picture received and no reference available [h264 @ 0xafa53d40] decode_slice_header error Non-reference picture received and no reference available [h264 @ 0xafa534a0] decode_slice_header error [h264 @ 0xafa539a0] mmco: unref short failure Non-reference picture received and no reference available [h264 @ 0xafa539a0] decode_slice_header error [h264 @ 0xafa53d40] mmco: unref short failure Non-reference picture received and no reference available [h264 @ 0xafa53d40] decode_slice_header error Non-reference picture received and no reference available [h264 @ 0xafa534a0] decode_slice_header error [h264 @ 0xafa53d40] mmco: unref short failure [h264 @ 0xafa534a0] mmco: unref short failure [h264 @ 0xafa534a0] mmco: unref short failure [h264 @ 0xafa534a0] number of reference frames (0+6) exceeds max (4; probably corrupt input), discarding one

[0xaffe4db0] ts demux error: libdvbpsi (PSI decoder): TS duplicate (received 14, expected 15) for PID 0 [0xaffe4db0] ts demux error: libdvbpsi (PSI decoder): TS duplicate (received 14, expected 15) for PID 66 Non-reference picture received and no reference available [h264 @ 0xafa534a0] decode_slice_header error [h264 @ 0xafa539a0] mmco: unref short failure Non-reference picture received and no reference available [h264 @ 0xafa539a0] decode_slice_header error [h264 @ 0xafa53d40] mmco: unref short failure Non-reference picture received and no reference available [h264 @ 0xafa53d40] decode_slice_header error

Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xac306b40 (LWP 14371)] __memcpy_ssse3 () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S:142 142 ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Aucun fichier ou dossier de ce type. (gdb)

backtrace:

(gdb) bt #0 __memcpy_ssse3 () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S:142 #1 (closed) 0xae5e5b6f in memcpy (__len=720, __src=0x0, __dest=0xa721b000) at /usr/include/i386-linux-gnu/bits/string3.h:51 #2 (closed) ffmpeg_CopyPicture (p_ff_pic=, p_pic=0x806c218, p_dec=0xafa7dad0) at avcodec/video.c:902 #3 (closed) DecodeVideo (p_dec=0xafa7dad0, pp_block=0xac30627c) at avcodec/video.c:729 #4 0xb7d0bcd1 in DecoderDecodeVideo (p_dec=p_dec@entry=0xafa7dad0, p_block=0x83f5de8) at input/decoder.c:1479 #5 (closed) 0xb7d0de4b in DecoderProcessVideo (b_flush=false, p_block=0xac1ff4b0, p_dec=) at input/decoder.c:1825 #6 (closed) DecoderProcess (p_block=, p_dec=) at input/decoder.c:2014 #7 (closed) DecoderThread (p_data=0xafa7dad0) at input/decoder.c:936 #8 (closed) 0xb7f80f70 in start_thread (arg=0xac306b40) at pthread_create.c:312 #9 (closed) 0xb7eb170e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129 (gdb)

List of threads:

(gdb) info threads Id Target Id Frame 19 Thread 0xa7593b40 (LWP 14374) "vlc" 0xb7fdd424 in __kernel_vsyscall () 18 Thread 0xa761cb40 (LWP 14373) "vlc" 0xb7fdd424 in __kernel_vsyscall () 17 Thread 0xa80feb40 (LWP 14372) "threaded-ml" 0xb7fdd424 in __kernel_vsyscall ()

  • 16 Thread 0xac306b40 (LWP 14371) "vlc" __memcpy_ssse3 () at ../sysdeps/i386/i686/multiarch/memcpy-ssse3.S:142 15 Thread 0xacb17b40 (LWP 14370) "vlc" 0xb7fdd424 in __kernel_vsyscall () 14 Thread 0xad36ab40 (LWP 14369) "vlc" 0xb7fdd424 in __kernel_vsyscall () 13 Thread 0xb125cb40 (LWP 14368) "vlc" 0xb7fdd424 in __kernel_vsyscall () 12 Thread 0xae79fb40 (LWP 14367) "vlc" 0xb7fdd424 in __kernel_vsyscall () 11 Thread 0xafbaab40 (LWP 14366) "vlc" 0xb7fdd424 in __kernel_vsyscall () 10 Thread 0xb58bcb40 (LWP 14364) "vlc" 0xb7fdd424 in __kernel_vsyscall () 7 Thread 0xb1a5db40 (LWP 14360) "gmain" 0xb7fdd424 in __kernel_vsyscall () 6 Thread 0xb225eb40 (LWP 14359) "gdbus" 0xb7fdd424 in __kernel_vsyscall () 5 Thread 0xb547fb40 (LWP 14358) "vlc" IMEvent::~IMEvent (this=0xac130950, __in_chrg=) at input_manager.hpp:87 4 Thread 0xb55fdb40 (LWP 14357) "vlc" 0xb7fdd424 in __kernel_vsyscall () 2 Thread 0xb593db40 (LWP 14355) "vlc" 0xb7fdd424 in __kernel_vsyscall () 1 Thread 0xb7c06700 (LWP 14350) "vlc" 0xb7fdd424 in __kernel_vsyscall () (gdb)

Another try gave a totally blocked VLC (no answer even to "kill"). Detail in gdb:

(gdb) run [France_3][2014-04-23_20-10][50].mpg Starting program: /usr/bin/vlc [France_3][2014-04-23_20-10][50].mpg [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1". VLC media player 2.1.5 Rincewind (revision 2.1.2+git20140420+r54523+18+11~ubuntu14.04.1)

[New Thread 0xb593db40 (LWP 14255)] [New Thread 0xb58bcb40 (LWP 14256)] [New Thread 0xb56c4b40 (LWP 14257)] [0x804c940] main libvlc: Lancement de vlc avec l'interface par défaut. Utilisez « cvlc » pour démarrer VLC sans interface. [New Thread 0xb55f9b40 (LWP 14258)] [Thread 0xb58bcb40 (LWP 14256) exited] [New Thread 0xb225eb40 (LWP 14259)] [New Thread 0xb1a5db40 (LWP 14260)] [New Thread 0xb125cb40 (LWP 14261)] [New Thread 0xb0a5bb40 (LWP 14262)] [New Thread 0xb58bcb40 (LWP 14264)] [Thread 0xb125cb40 (LWP 14261) exited] [New Thread 0xafbaab40 (LWP 14267)] [New Thread 0xae71fb40 (LWP 14268)] [New Thread 0xb125cb40 (LWP 14269)] [New Thread 0xad25bb40 (LWP 14270)] [New Thread 0xaca08b40 (LWP 14271)] [New Thread 0xac1f7b40 (LWP 14272)] [New Thread 0xa8175b40 (LWP 14273)] Fontconfig warning: FcPattern object size does not accept value "0" Fontconfig warning: FcPattern object size does not accept value "0" [New Thread 0xa761ab40 (LWP 14274)] [New Thread 0xa7591b40 (LWP 14275)] Fontconfig warning: FcPattern object size does not accept value "0" Fontconfig warning: FcPattern object size does not accept value "0" [0x806c5a0] main vout display error: Failed to resize display [h264 @ 0xafaa8100] mmco: unref short failure [h264 @ 0xafaa7d80] mmco: unref short failure [h264 @ 0xafaa8100] mmco: unref short failure [h264 @ 0xafaa8100] mmco: unref short failure [h264 @ 0xafaa8100] illegal short term buffer state detected [h264 @ 0xafaa8100] mmco: unref short failure

Non-reference picture received and no reference available [h264 @ 0xafaa7d80] decode_slice_header error [0xaffe58c0] ts demux error: libdvbpsi (PSI decoder): TS discontinuity (received 15, expected 6) for PID 0 [0xaffe58c0] ts demux error: libdvbpsi (PSI decoder): TS discontinuity (received 15, expected 6) for PID 66 [h264 @ 0xafaa8100] mmco: unref short failure [h264 @ 0xafaa8100] reference picture missing during reorder [h264 @ 0xafaa8100] Missing reference picture [h264 @ 0xafaa92c0] reference picture missing during reorder [h264 @ 0xafaa92c0] Missing reference picture

Non-reference picture received and no reference available [h264 @ 0xafaa7d80] decode_slice_header error Non-reference picture received and no reference available [h264 @ 0xafaa8100] decode_slice_header error Non-reference picture received and no reference available [h264 @ 0xafaa92c0] decode_slice_header error [h264 @ 0xafaa92c0] concealing 1620 DC, 1620 AC, 1620 MV errors [0xaffe58c0] ts demux error: libdvbpsi (PSI decoder): TS discontinuity (received 14, expected 4) for PID 0 [0xaffe58c0] ts demux error: libdvbpsi (PSI decoder): TS discontinuity (received 14, expected 4) for PID 66 Non-reference picture received and no reference available [h264 @ 0xafaa7d80] decode_slice_header error [h264 @ 0xafaa7d80] concealing 1620 DC, 1620 AC, 1620 MV errors [h264 @ 0xafaa8100] reference picture missing during reorder [h264 @ 0xafaa8100] Missing reference picture [h264 @ 0xafaa92c0] mmco: unref short failure [h264 @ 0xafaa7d80] mmco: unref short failure [Thread 0xb0a5bb40 (LWP 14262) exited]

Now it is stuck: I interrupt (Ctrl-Z):

^Z Program received signal SIGTSTP, Stopped (user). 0xb7fdd424 in __kernel_vsyscall ()

Backtrace:

(gdb) bt #0 0xb7fdd424 in __kernel_vsyscall () #1 (closed) 0xb7f88efc in do_sigwait (set=set@entry=0xbfffee44, sig=sig@entry=0xbfffeec4) at ../nptl/sysdeps/unix/sysv/linux/../../../../../sysdeps/unix/sysv/linux/sigwait.c:60 #2 (closed) 0xb7f88f79 in __sigwait (set=set@entry=0xbfffee44, sig=sig@entry=0xbfffeec4) at ../nptl/sysdeps/unix/sysv/linux/../../../../../sysdeps/unix/sysv/linux/sigwait.c:97 #3 (closed) 0x08048ef6 in main (i_argc=, ppsz_argv=) at vlc.c:261 (gdb)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information