mplayer crashes due to build error

Bug #1731734 reported by Oliver
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux Mint
New
Undecided
Unassigned

Bug Description

This is Linux Mint 17.3 Rosa, and player 2:1.1+dfsg1-0ubuntu3, so Mint is an LTS version and mplayer the most recent one available to me, according to Synaptic.

I have been using mplayer for about five years to play files that I generate with my Technisat HD-K2 hard disc recorder.

The output files are named with the extension .TS, this looks like a proprietary format, but actually it contains a raw bit-precise image of the transport stream coming from German digital cable TV (Kabel Deutschland, now owned by Vodafone).

For many many years this worked perfectly! To play files and have correct audio, I used a small script that passes all relevant parameters (mainly demuxer commands).

To play files in standard definition I use

mplayer -demuxer lavf -audio-demuxer lavf -aid 1 "$1"

Recordings in HDTV strangely enough are labelled .TS4 by the Technisat, but also contain a bit-precise transport stream and could be played with

mplayer -demuxer lavf -audio-demuxer lavf -aid 3 "$1"

Obviously only the audio stream got a new numher. So this worked for years. About a year ago, sometimes I could not play files, and the number of occurency increased.

When I occasionally ran mplayer by command line, I alwas had some errors, most (if not all) of them were related to the fact that I edit the recordings while they are still inside the Technisat, to delete commercials, and the Technisat cuts through at binary, not at frame borders. So these errors are in my opinion irrelevant.

Now something new happens. There is a signal 11 interruption:

- MPlayer crashed by bad usage of CPU/FPU/RAM.
  Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
  disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.
 [ This binary of MPlayer in Debian is currently compiled with
   '--enable-debug'; the debugging symbols are in the package
   'mplayer-dbg'.]

Now when I start mplayer on the command line this is what I get (abbreviated by the above mentioned irrelevant stuff):

MPlayer 1.1-4.8 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /media/xyz/Daten/Test.TS.
libavformat version 54.20.4 (external)
Mismatching header version 54.20.3
libavformat file format detected.
[mp2 @ 0x7f718c42aa20]Header missing
[mpeg2video @ 0x7f718c42aa20]mpeg_decode_postinit() failure
[mp2 @ 0x7f718c42aa20]Header missing
[[couple of this, this is due to me editing the file to delete commercials. That is fine.]]
[mpegts @ 0x7f718ccd2600]max_analyze_duration reached
[mpegts @ 0x7f718ccd2600]PES packet size mismatch
[mpegts @ 0x7f718ccd2600]PES packet size mismatch
[[maybe a subsequent error to the above, so I guess this is irrelevant]]
[lavf] stream 0: audio (mp2), -aid 0
[lavf] stream 1: audio (mp2), -aid 1
[lavf] stream 2: video (mpeg2video), -vid 0
[lavf] stream 3: audio (mp2), -aid 2
VIDEO: [MPG2] 720x576 0bpp 25.000 fps 15000.0 kbps (1831.1 kbyte/s)
Load subtitles in /media/okluge/xyz/Test/
Failed to open VDPAU backend libvdpau_i965.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.35.1 (external)
Mismatching header version 54.35.0
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[mp2float @ 0x7f718c42aa20]Header missing
[[same as above?]]
Unknown/missing audio format -> no sound
ADecoder init failed :(
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[mp2 @ 0x7f718c42aa20]Header missing
[[again]]
Unknown/missing audio format -> no sound
ADecoder init failed :(
Requested audio codec family [mad] (afm=libmad) not available.
Enable it at compilation.
Opening audio decoder: [hwmpa] MPEG audio pass-through (fake decoder)
AUDIO: 44100 Hz, 2 ch, mpeg2, 32.0 kbit/2.27% (ratio: 4000->176400)
Selected audio codec: [hwmpa] afm: hwmpa (MPEG audio pass-through for hardware MPEG decoders)
==========================================================================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
[format] Sample format big-endian MPEG-2 not yet supported
[libaf] Reinitialization did not work, audio filter 'format' returned error code -2
[libaf] Unable to setup filter system can not meet sound-card demands, please send a bug report.
Couldn't find matching filter/ao format!
Audio: no sound
Starting playback...
Unsupported AVPixelFormat 53
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 720x576 => 1024x576 Planar YV12

MPlayer interrupted by signal 11 in module: decode video
- MPlayer crashed by bad usage of CPU/FPU/RAM.
  Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
  disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.
 [ This binary of MPlayer in Debian is currently compiled with
   '--enable-debug'; the debugging symbols are in the package
   'mplayer-dbg'.]

Thanks for your help
Oliver

Revision history for this message
Oliver (ok23) wrote :
Download full text (6.8 KiB)

When I rund mplayer in gdb, as instructed, I see that it is a segmentation violation.

using Xvideo port 75 for hw scaling
*** [vo] Allocating (slices) mp_image_t, 736x576x12bpp YUV planar, 635904 bytes

Program received signal SIGSEGV, Segmentation fault.
0x000000000056edf7 in fast_memcpy ()

To fully quote it:

==> Found video stream: 2
======= VIDEO Format ======
  biSize 126
  biWidth 720
  biHeight 576
  biPlanes 0
  biBitCount 0
  biCompression 843534413='MPG2'
  biSizeImage 0
Unknown extra header dump: [0] [0] [1] [b3] [2d] [2] [40] [33] [24] [9f] [23] [81] [10] [11] [11] [12] [12] [12] [13] [13] [13] [13] [14] [14] [14] [14] [14] [15] [15] [15] [15] [15] [15] [16] [16] [16] [16] [16] [16] [16] [17] [17] [17] [17] [17] [17] [17] [17] [18] [18] [18] [19] [18] [18] [18] [19] [1a] [1a] [1a] [1a] [19] [1b] [1b] [1b] [1b] [1b] [1c] [1c] [1c] [1c] [1e] [1e] [1e] [1f] [1f] [21] [0] [0] [1] [b5] [14] [82] [0] [1] [0] [0]
===========================
[lavf] stream 2: video (mpeg2video), -vid 0
==> Found audio stream: 3
======= WAVE Format =======
Format Tag: 80 (0x50)
Channels: 2
Samplerate: 48000
avg byte/sec: 24000
Block align: 1
bits/sample: 0
cbSize: 0
==========================================================================
[lavf] stream 3: audio (mp2), -aid 2
LAVF: 3 audio and 1 video streams found
LAVF: build 3544067
VIDEO: [MPG2] 720x576 0bpp 25.000 fps 15000.0 kbps (1831.1 kbyte/s)
[V] filefmt:35 fourcc:0x3247504D size:720x576 fps:25.000 ftime:=0.0400
Load subtitles in /media/okluge/Daten/10.11.2017 21_40 Rumble_ Das rote Herz des Rock/
get_path('sub/') -> '/home/okluge/.mplayer/sub/'
X11 opening display: :0
vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1920x1200 with depth 24 and 32 bpp (":0" => local display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
Failed to open VDPAU backend libvdpau_i965.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
[VO_XV] Using Xv Adapter #0 (Intel(R) Textured Video)
[xv common] Drawing no colorkey.
[xv common] Maximum source image dimensions: 16384x16384
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.35.1 (external)
Mismatching header version 54.35.0
Configuration: --arch=amd64 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:9.20-0ubuntu0.14.04.1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static --enabl...

Read more...

Revision history for this message
Oliver (ok23) wrote :
Download full text (12.1 KiB)

(gdb) bt
#0 0x000000000056edf7 in fast_memcpy ()
#1 0x0000000000498119 in ?? ()
#2 0x0000000000571c7c in ?? ()
#3 0x00007ffff3c9f9b3 in ?? () from /usr/lib/x86_64-linux-gnu/libavcodec.so.54
#4 0x00007ffff3c9fc52 in ?? () from /usr/lib/x86_64-linux-gnu/libavcodec.so.54
#5 0x00007ffff3c6cf13 in ?? () from /usr/lib/x86_64-linux-gnu/libavcodec.so.54
#6 0x00007ffff3c7013d in ?? () from /usr/lib/x86_64-linux-gnu/libavcodec.so.54
#7 0x00007ffff3c70a15 in ?? () from /usr/lib/x86_64-linux-gnu/libavcodec.so.54
#8 0x00007ffff3d46363 in avcodec_decode_video2 ()
   from /usr/lib/x86_64-linux-gnu/libavcodec.so.54
#9 0x0000000000572342 in ?? ()
#10 0x00000000004c35a1 in decode_video ()
#11 0x000000000043f5bf in ?? ()
#12 0x00000000004337d6 in main ()
(gdb) disass $pc-32,$pc+32
Dump of assembler code from 0x56edd7 to 0x56ee17:
   0x000000000056edd7 <fast_memcpy+151>: popfq
   0x000000000056edd8 <fast_memcpy+152>: add (%rax),%eax
   0x000000000056edda <fast_memcpy+154>: add %cl,-0x7b(%rbp)
   0x000000000056eddd <fast_memcpy+157>: rorb %cl,-0x77(%rbp)
   0x000000000056ede0 <fast_memcpy+160>: rorl -0x77(%rax)
   0x000000000056ede3 <fast_memcpy+163>: stc
   0x000000000056ede4 <fast_memcpy+164>: mov %rsi,%rax
   0x000000000056ede7 <fast_memcpy+167>: je 0x56ee2d <fast_memcpy+237>
   0x000000000056ede9 <fast_memcpy+169>: nopl 0x0(%rax)
   0x000000000056edf0 <fast_memcpy+176>: prefetchnta 0x140(%rax)
=> 0x000000000056edf7 <fast_memcpy+183>: movaps (%rax),%xmm0
   0x000000000056edfa <fast_memcpy+186>: movaps 0x10(%rax),%xmm1
   0x000000000056edfe <fast_memcpy+190>: movaps 0x20(%rax),%xmm2
   0x000000000056ee02 <fast_memcpy+194>: movaps 0x30(%rax),%xmm3
   0x000000000056ee06 <fast_memcpy+198>: movntps %xmm0,(%rcx)
   0x000000000056ee09 <fast_memcpy+201>: movntps %xmm1,0x10(%rcx)
   0x000000000056ee0d <fast_memcpy+205>: movntps %xmm2,0x20(%rcx)
   0x000000000056ee11 <fast_memcpy+209>: movntps %xmm3,0x30(%rcx)
   0x000000000056ee15 <fast_memcpy+213>: add $0x40,%rax
End of assembler dump.
(gdb) info all-registers
rax 0x0 0
rbx 0x10 16
rcx 0x7ffff7f12000 140737353162752
rdx 0x10 16
rsi 0x0 0
rdi 0x7ffff7f12000 140737353162752
rbp 0x2d0 0x2d0
rsp 0x7fffffffc6f8 0x7fffffffc6f8
r8 0x7ffff7f12000 140737353162752
r9 0xb 11
r10 0xb 11
r11 0x7fffffffc780 140737488340864
r12 0x0 0
r13 0x0 0
r14 0x1 1
r15 0x7ffff7f122d0 140737353163472
rip 0x56edf7 0x56edf7 <fast_memcpy+183>
eflags 0x10202 [ IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
---Type <return> to continue, or q <return> to quit---
gs 0x0 0
st0 -nan(0x8080808080808080) (raw 0xffff8080808080808080)
st1 -nan(0x80008000800080) (raw 0xffff0080008000800080)
st2 -nan(0x8080808080808080) (raw 0xffff8080808080808080)
st3 -nan(0x80008000800080) (raw 0xffff0080008000800080)
st4 -nan(0x8080808080808080) (raw 0xffff8080808080808080)
st5 -nan(0x8000800080008...

Revision history for this message
Oliver (ok23) wrote :

The following action advised in ww.mplayerhq.hu/DOCS/HTML/de/bugreports_what.html#bugreports_debug do not work... I created a comand file containing
bt
disass $pc-32,$pc+32
info all-registers
and ran
gdb mplayer --core=core -batch --command=mycommandfile > mplayer.bug
but this only resulting in
/home/xyz/core: Datei oder Verzeichnis nicht gefunden. [file not found]
./gdb-command:1: Error in sourced command file:
No stack.

No file mplayer.bug was written.

Revision history for this message
Oliver (ok23) wrote :

Hm, wanted to report this directly to mlayer folks, but I am not so much a fan of mailing lists. They claim to have a Bugzilla, but it seems to be down:
http://bugzilla.mplayerhq.hu/ ist nicht erreichbar [down]

Revision history for this message
Oliver (ok23) wrote :

http://bugzilla.mplayerhq.hu/ is still down. And nobody read this bugreport either...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.