Opened 6 years ago

Closed 6 years ago

#7196 closed defect (needs_more_info)

ffplay crashes on seeking

Reported by: aleks8888 Owned by:
Priority: normal Component: ffplay
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

I tried to compile ffmpeg myself. I'm on windows 7, 32 bit, used msys2 to compile it. The compiled version almost works, but when I use right arrow to seek forward, ffplay crashes, producing ffplay.exe.stackdump file. Console output contains this afterwards:

Segmentation fault (стек памяти сброшен на диск)B sq=    0B f=0/0

This means something like "stack of memory dropped on disk".

Version:

$ ffmpeg
ffmpeg version 3.4.git Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7.3.0 (GCC)
  configuration: --enable-shared --enable-gpl --enable-version3 --enable-nonfree --disable-doc
  libavutil      56. 18.100 / 56. 18.100
  libavcodec     58. 19.101 / 58. 19.101
  libavformat    58. 13.102 / 58. 13.102
  libavdevice    58.  4.100 / 58.  4.100
  libavfilter     7. 21.100 /  7. 21.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'

msys2 packets were recently updated, week ago.

Attachments (1)

ffplay.exe.stackdump (357 bytes ) - added by aleks8888 6 years ago.

Download all attachments as: .zip

Change History (12)

by aleks8888, 6 years ago

Attachment: ffplay.exe.stackdump added

comment:1 by Carl Eugen Hoyos, 6 years ago

Can you reproduce the crash with a Zeranoe binary?

comment:2 by aleks8888, 6 years ago

No, prebuilt ffmpeg works fine.

C:\path\ffmpeg-4.0-win32-shared\bin>ffmpeg
ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7.3.0 (GCC)
  configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
Hyper fast Audio and Video encoder

comment:3 by Carl Eugen Hoyos, 6 years ago

Resolution: invalid
Status: newclosed

Then I don’t see how your issue can be fixed within FFmpeg, feel free to ask in the Zeranoe forum for support.
For future tickets, please remember that only current FFmpeg git head is supported.

comment:4 by aleks8888, 6 years ago

But I downloaded sources from github! What Zeranoe has to do with it?

https://github.com/FFmpeg/FFmpeg

Last edited 6 years ago by aleks8888 (previous) (diff)

comment:5 by aleks8888, 6 years ago

Resolution: invalid
Status: closedreopened

comment:6 by aleks8888, 6 years ago

Just tell me what can I do with this stackdump file? It probably requires working in command line with gdb? I have some experience with codeblocks, can I use it somehow here? I mostly work with visual studio 2005 right now, I installed msys2 just to compile ffplay.

comment:7 by Carl Eugen Hoyos, 6 years ago

Resolution: needs_more_info
Status: reopenedclosed

Please reopen this ticket if you can provide backtrace, disassembly and register dump as requested on https://ffmpeg.org/bugreports.html

Since you claim the issue is not reproducible with binaries that are - to the best of my knowledge - build from sources from git.ffmpeg.org there is no reason to assume the issue you see can be fixed in FFmpeg. The Zeranoe forum is the right place to discuss Windows compilation issues.

comment:8 by aleks8888, 6 years ago

Here is the output. Is ffplay supposed to create threads this often?

Btw, does anybody has a version of ffplay that uses sdl1 or directdraw? Because sdl2 version doesn't work on one of my computers, no 3d acceleration there.

$ gdb --args ffplay_g sm19342901.mp4
GNU gdb (GDB) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-msys".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Traceback (most recent call last):
  File "<string>", line 3, in <module>
ImportError: No module named libstdcxx.v6.printers
/etc/gdbinit:6: Error in sourced command file:
Error while executing Python code.
Reading symbols from ffplay_g...done.
(gdb) r
Starting program: /c/_src/ffmpeg_src/__new/FFmpeg/build3-release/ffplay_g sm1934                                                               2901.mp4
[New Thread 4172.0x1740]
[New Thread 4172.0xf68]
[New Thread 4172.0x1714]
[New Thread 4172.0x70c]
ffplay version 3.4.git Copyright (c) 2003-2018 the FFmpeg developers
  built with gcc 7.3.0 (GCC)
  configuration: --enable-shared --enable-gpl --enable-version3 --enable-nonfree                                                                --disable-doc
  libavutil      56. 18.100 / 56. 18.100
  libavcodec     58. 19.101 / 58. 19.101
  libavformat    58. 13.102 / 58. 13.102
  libavdevice    58.  4.100 / 58.  4.100
  libavfilter     7. 21.100 /  7. 21.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
[New Thread 4172.0x10e0]
warning: Dll Loaded :-)
[New Thread 4172.0x11d8]
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sm19342901.mp4':0B f=0/0
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isom
    creation_time   : 2012-11-11T14:58:41.000000Z
    copyright       :
    copyright-eng   :
  Duration: 00:02:05.81, start: 0.000000, bitrate: 1330 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte1                                                               70m/unknown/unknown), 864x486, 1199 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc (defaul                                                               t)
    Metadata:
      creation_time   : 2012-11-12T08:23:33.000000Z
      handler_name    : Video
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, flt                                                               p, 127 kb/s (default)
    Metadata:
      creation_time   : 2012-11-11T14:58:41.000000Z
      handler_name    : GPAC ISO Audio Handler
[New Thread 4172.0xb70]
[New Thread 4172.0x176c]
[New Thread 4172.0x850]
[New Thread 4172.0x13f8]
[New Thread 4172.0xea8]
[New Thread 4172.0x11c0]
[New Thread 4172.0x1460]
[New Thread 4172.0x144]
[New Thread 4172.0x17a0]
[New Thread 4172.0xabc]
[New Thread 4172.0x16fc]
[New Thread 4172.0xffc]
[New Thread 4172.0x188]
[New Thread 4172.0x1610]
[New Thread 4172.0x14b4]
[New Thread 4172.0x1004]
[Thread 4172.0x176c exited with code 0]vq=   20KB sq=    0B f=0/0
[Thread 4172.0x13f8 exited with code 0]
[Thread 4172.0xb70 exited with code 0]
[Thread 4172.0x850 exited with code 0]
[New Thread 4172.0x13b0]  0 aq=   20KB vq=  206KB sq=    0B f=0/0
[New Thread 4172.0x1524]
[New Thread 4172.0xee0]
[New Thread 4172.0xbf8]
[New Thread 4172.0x840]   0 aq=   20KB vq=  199KB sq=    0B f=0/0
[New Thread 4172.0x16bc]
[New Thread 4172.0xa74]
[New Thread 4172.0x1188]
[New Thread 4172.0x1568]
[New Thread 4172.0x16b8]
Seek to 33% ( 0:00:40) of total duration ( 0:02:05)       B f=0/0
[Thread 4172.0x1524 exited with code 0]vq=  159KB sq=    0B f=0/0
[Thread 4172.0xbf8 exited with code 0]
[Thread 4172.0x16bc exited with code 0]
[Thread 4172.0x1188 exited with code 0]
[Thread 4172.0xee0 exited with code 0]
[New Thread 4172.0x278]
[New Thread 4172.0x8c4]
[Thread 4172.0xa74 exited with code 0] vq=  156KB sq=    0B f=0/0
[Thread 4172.0x840 exited with code 0]
[New Thread 4172.0x16f8]
[New Thread 4172.0x844]
[New Thread 4172.0x1434]
[New Thread 4172.0xc84]
[New Thread 4172.0x179c]
[New Thread 4172.0x1548]
Seek to 65% ( 0:01:21) of total duration ( 0:02:05)       B f=0/0
[Thread 4172.0x16f8 exited with code 0]vq=  166KB sq=    0B f=0/0
[Thread 4172.0x179c exited with code 0]
[Thread 4172.0x8c4 exited with code 0]
[Thread 4172.0x1434 exited with code 0]
[New Thread 4172.0x1118]
[Thread 4172.0x278 exited with code 0]
[Thread 4172.0xc84 exited with code 0]
[New Thread 4172.0x700]
[New Thread 4172.0xac]=  12 aq=   19KB vq=  262KB sq=    0B f=0/0
[New Thread 4172.0x16dc]
[Thread 4172.0x1548 exited with code 0]
[Thread 4172.0x844 exited with code 0]
[New Thread 4172.0x138]
[New Thread 4172.0xa24]
[New Thread 4172.0x10cc]
[New Thread 4172.0x153c]
Seek to 95% ( 0:01:59) of total duration ( 0:02:05)       B f=0/0
[Thread 4172.0x16dc exited with code 0]vq=    0KB sq=    0B f=0/0
[Thread 4172.0x153c exited with code 0]
[Thread 4172.0xa24 exited with code 0]
[Thread 4172.0x1118 exited with code 0]
[New Thread 4172.0xc60]
[New Thread 4172.0x1498] 13 aq=    9KB vq=   65KB sq=    0B f=0/0
[New Thread 4172.0x1134]
[New Thread 4172.0xd50]
[Thread 4172.0x700 exited with code 0] vq=  224KB sq=    0B f=0/0
[Thread 4172.0x10cc exited with code 0]
[Thread 4172.0x138 exited with code 0]

Thread 43 "ffplay_g" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 4172.0xac]
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x67e7bc8d in avutil-56!av_sha512_final ()
   from /usr/local/bin/avutil-56.dll
#2  0x6110a87c in pthread::thread_init_wrapper(void*)@4 (arg=<unavailable>)
    at /msys_scripts/msys2-runtime/src/msys2-runtime/winsup/cygwin/thread.cc:201                                                               5
(gdb) disass $pc-32,$pc+32
Dump of assembler code from 0xffffffe0 to 0x20:
End of assembler dump.
(gdb) info all-registers
eax            0x0      0
ecx            0x0      0
edx            0x0      0
ebx            0x205bcc80       542887040
esp            0x7e5ecdbc       0x7e5ecdbc
ebp            0x7e5ece08       0x7e5ece08
esi            0x205be0b0       542892208
edi            0x2066b5c8       543602120
eip            0x0      0x0
eflags         0x10202  [ IF RF ]
cs             0x1b     27
ss             0x23     35
ds             0x23     35
es             0x23     35
fs             0x3b     59
gs             0x0      0
st0            0        (raw 0x00000000000000000000)
st1            0        (raw 0x00000000000000000000)
st2            0        (raw 0x00000000000000000000)
st3            0        (raw 0x00000000000000000000)
st4            0        (raw 0x00000000000000000000)
st5            0        (raw 0x00000000000000000000)
st6            0        (raw 0x00000000000000000000)
---Type <return> to continue, or q <return> to quit---
st7            0        (raw 0x00000000000000000000)
fctrl          0x27f    639
fstat          0x0      0
ftag           0xffff   65535
fiseg          0x0      0
fioff          0x0      0
foseg          0x0      0
fooff          0x0      0
fop            0x0      0
xmm0           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
  v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
  uint128 = 0x00000000000000000000000000000000}
xmm1           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
  v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
  uint128 = 0x00000000000000000000000000000000}
xmm2           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
  v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
  uint128 = 0x00000000000000000000000000000000}
xmm3           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
  v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,
---Type <return> to continue, or q <return> to quit---
     0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm4           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm5           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm6           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
xmm7           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000}
mxcsr          0x1f80   [ IM DM ZM OM UM PM ]
mm0            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm1            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm2            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm3            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm4            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm5            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm6            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
mm7            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}}
(gdb)

comment:9 by aleks8888, 6 years ago

Resolution: needs_more_info
Status: closedreopened

comment:10 by Carl Eugen Hoyos, 6 years ago

Please recompile either without —enable-shared or with —disable-stripping to allow for a usable backtrace.

comment:11 by Carl Eugen Hoyos, 6 years ago

Resolution: needs_more_info
Status: reopenedclosed

Please reopen this ticket if you can provide more information.

Note: See TracTickets for help on using tickets.