New submission from Lars Täuber <[EMAIL PROTECTED]>:

ffplay crashes with MPEG-PS as input with different errors:

:~/src/ffmpeg.svn/ffmpeg$ ./ffplay_g /tmp/pcm_dvd.mpeg 
FFplay version SVN-r14732, Copyright (c) 2003-2008 Fabrice Bellard, et al.
  configuration: --enable-gpl
  libavutil version: 49.9.0
  libavcodec version: 51.64.0
  libavformat version: 52.20.0
  libavdevice version: 52.1.0
  built on Aug 13 2008 20:54:25, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Floating point exception
:~/src/ffmpeg.svn/ffmpeg$ ./ffplay_g /tmp/pcm_dvd.mpeg 
FFplay version SVN-r14732, Copyright (c) 2003-2008 Fabrice Bellard, et al.
  configuration: --enable-gpl
  libavutil version: 49.9.0
  libavcodec version: 51.64.0
  libavformat version: 52.20.0
  libavdevice version: 52.1.0
  built on Aug 13 2008 20:54:25, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
XIO:  fatal IO error 9 (Bad file descriptor) on X server ":0.0"
      after 17 requests (16 known processed) with 0 events remaining.
:~/src/ffmpeg.svn/ffmpeg$ ./ffplay /tmp/pcm_dvd.mpeg 
FFplay version SVN-r14732, Copyright (c) 2003-2008 Fabrice Bellard, et al.
  configuration: --enable-gpl
  libavutil version: 49.9.0
  libavcodec version: 51.64.0
  libavformat version: 52.20.0
  libavdevice version: 52.1.0
  built on Aug 13 2008 20:54:25, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Segmentation fault



gdb gets itself into background:

:~/src/ffmpeg.svn/ffmpeg$ gdb ./ffplay_g
GNU gdb 6.8-debian
Copyright (C) 2008 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 "x86_64-linux-gnu"...
(gdb) r /tmp/pcm_dvd.mpeg
Starting program: /home/elte/src/ffmpeg.svn/ffmpeg/ffplay_g /tmp/pcm_dvd.mpeg
[Thread debugging using libthread_db enabled]
FFplay version SVN-r14732, Copyright (c) 2003-2008 Fabrice Bellard, et al.
  configuration: --enable-gpl
  libavutil version: 49.9.0
  libavcodec version: 51.64.0
  libavformat version: 52.20.0
  libavdevice version: 52.1.0
  built on Aug 13 2008 20:54:25, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu7)

[2]+  Stopped                 gdb ./ffplay_g
:~/src/ffmpeg.svn/ffmpeg$ fg
gdb ./ffplay_g
[New Thread 0x7fc828c196e0 (LWP 5468)]
[New Thread 0x40fe1950 (LWP 5496)]
[New Thread 0x417e2950 (LWP 5497)]
[New Thread 0x41fe3950 (LWP 5498)]
[New Thread 0x427e4950 (LWP 5499)]

Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread 0x41fe3950 (LWP 5498)]
0x0000000000719931 in pcm_decode_frame (avctx=0xd9e230, data=0x7fc82515d0e0,
data_size=0x41fe307c, buf=0x1126970 "", 
    buf_size=<value optimized out>) at libavcodec/pcm.c:347
347         n = buf_size/sample_size;
(gdb) bt
#0  0x0000000000719931 in pcm_decode_frame (avctx=0xd9e230, data=0x7fc82515d0e0,
data_size=0x41fe307c, 
    buf=0x1126970 "", buf_size=<value optimized out>) at libavcodec/pcm.c:347
#1  0x0000000000490418 in avcodec_decode_audio2 (avctx=0xd9e230,
samples=0x7fc82515d0e0, frame_size_ptr=0x0, 
    buf=0x1126970 "", buf_size=2004) at libavcodec/utils.c:945
#2  0x000000000041c5a8 in sdl_audio_callback (opaque=0x7fc82515d010,
stream=0x111a440 "", len=4096) at ffplay.c:1587
#3  0x00007fc8282f068d in ?? () from /usr/lib/libSDL-1.2.so.0
#4  0x00007fc8282f7877 in ?? () from /usr/lib/libSDL-1.2.so.0
#5  0x00007fc82833aaf9 in ?? () from /usr/lib/libSDL-1.2.so.0
#6  0x00007fc8271fd3f7 in start_thread () from /lib/libpthread.so.0
#7  0x00007fc82805db2d in clone () from /lib/libc.so.6
#8  0x0000000000000000 in ?? ()
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x719911 to 0x719951:
0x0000000000719911 <pcm_decode_frame+145>:      out    %eax,(%dx)
0x0000000000719912 <pcm_decode_frame+146>:      mov    %r12,%rsi
0x0000000000719915 <pcm_decode_frame+149>:      movl   $0x0,(%r15)
0x000000000071991c <pcm_decode_frame+156>:      mov    %edx,%eax
0x000000000071991e <pcm_decode_frame+158>:      shr    $0x1f,%eax
0x0000000000719921 <pcm_decode_frame+161>:      add    %edx,%eax
0x0000000000719923 <pcm_decode_frame+163>:      sar    %eax
0x0000000000719925 <pcm_decode_frame+165>:      cmp    %ebp,%eax
0x0000000000719927 <pcm_decode_frame+167>:      cmovle %eax,%edi
0x000000000071992a <pcm_decode_frame+170>:      mov    %edi,%edx
0x000000000071992c <pcm_decode_frame+172>:      mov    %edi,%eax
0x000000000071992e <pcm_decode_frame+174>:      sar    $0x1f,%edx
0x0000000000719931 <pcm_decode_frame+177>:      idiv   %ecx
0x0000000000719933 <pcm_decode_frame+179>:      mov    $0xffffffff,%edx
0x0000000000719938 <pcm_decode_frame+184>:      mov    %eax,%r9d
0x000000000071993b <pcm_decode_frame+187>:      mov    0x98(%rbx),%rax
0x0000000000719942 <pcm_decode_frame+194>:      mov    0xc(%rax),%eax
0x0000000000719945 <pcm_decode_frame+197>:      sub    $0x10000,%eax
0x000000000071994a <pcm_decode_frame+202>:      cmp    $0x14,%eax
0x000000000071994d <pcm_decode_frame+205>:      jbe    0x719964 
<pcm_decode_frame+228>
0x000000000071994f <pcm_decode_frame+207>:      nop    
0x0000000000719950 <pcm_decode_frame+208>:      add    $0x208,%rsp
End of assembler dump.
(gdb) info all-registers
rax            0x7d4    2004
rbx            0xd9e230 14279216
rcx            0x0      0
rdx            0x0      0
rsi            0x7fc82515d0e0   140497592373472
rdi            0x7d4    2004
rbp            0x7d4    0x7d4
rsp            0x41fe2d40       0x41fe2d40
r8             0x7d4    2004
r9             0xab8640 11241024
r10            0x1126970        17983856
r11            0x7fc827200dd0   140497626598864
r12            0x7fc82515d0e0   140497592373472
r13            0x1126970        17983856
r14            0xd9e600 14280192
r15            0x41fe307c       1107177596
rip            0x719931 0x719931 <pcm_decode_frame+177>
eflags         0x210256 [ PF AF ZF IF RF ID ]
cs             0x33     51
ss             0x2b     43
ds             0x0      0
es             0x0      0
fs             0x63     99
gs             0x0      0
st0            -nan(0x8888888888888888) (raw 0xffff8888888888888888)
st1            -nan(0x88008800880088)   (raw 0xffff0088008800880088)
st2            -nan(0x8888888888888888) (raw 0xffff8888888888888888)
st3            -nan(0x88008800880088)   (raw 0xffff0088008800880088)
st4            -nan(0x8888888888888888) (raw 0xffff8888888888888888)
st5            -nan(0x88008800880088)   (raw 0xffff0088008800880088)
st6            -nan(0x8888888888888888) (raw 0xffff8888888888888888)
st7            -nan(0x88008800880088)   (raw 0xffff0088008800880088)
fctrl          0x37f    895
fstat          0x0      0
ftag           0xffff   65535
fiseg          0x0      0
fioff          0x0      0
---Type <return> to continue, or q <return> to quit---
foseg          0x0      0
fooff          0x0      0
fop            0x0      0
xmm0           {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x1d, 0x11, 0xc8, 0x74, 0x4a, 
    0x7c, 0xc5, 0x3f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 =
{0x111d, 0x74c8, 0x7c4a, 0x3fc5, 0x0, 0x0, 
    0x0, 0x0}, v4_int32 = {0x74c8111d, 0x3fc57c4a, 0x0, 0x0}, v2_int64 =
{0x3fc57c4a74c8111d, 0x0}, 
  uint128 = 0x00000000000000003fc57c4a74c8111d}
xmm1           {v4_float = {0x0, 0x6, 0x0, 0x0}, v2_double = {0x3b03, 0x0},
v16_int8 = {0x0, 0x0, 0x0, 0x0, 0x80, 
    0x81, 0xcd, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0,
0x0, 0x8180, 0x40cd, 0x0, 0x0, 0x0, 
    0x0}, v4_int32 = {0x0, 0x40cd8180, 0x0, 0x0}, v2_int64 =
{0x40cd818000000000, 0x0}, 
  uint128 = 0x000000000000000040cd818000000000}
xmm2           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0, 0x0, 0x0, 0xf4, 0x6c, 
    0x9d, 0xf0, 0x3a, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0,
0xf400, 0x9d6c, 0x3af0, 0x0, 0x0, 
    0x0, 0x0}, v4_int32 = {0xf4000000, 0x3af09d6c, 0x0, 0x0}, v2_int64 =
{0x3af09d6cf4000000, 0x0}, 
  uint128 = 0x00000000000000003af09d6cf4000000}
xmm3           {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x1, 0x0},
v16_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
    0xf0, 0x3f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x0,
0x0, 0x3ff0, 0x0, 0x0, 0x0, 0x0}, 
  v4_int32 = {0x0, 0x3ff00000, 0x0, 0x0}, v2_int64 = {0x3ff0000000000000, 0x0}, 
  uint128 = 0x00000000000000003ff0000000000000}
xmm4           {v4_float = {0x0, 0xfffffffd, 0x0, 0x0}, v2_double =
{0xffffffffffffffd2, 0x0}, v16_int8 = {0x5b, 
    0xaa, 0xa2, 0x2a, 0x9e, 0x6, 0x47, 0xc0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0}, v8_int16 = {0xaa5b, 0x2aa2, 
    0x69e, 0xc047, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x2aa2aa5b, 0xc047069e, 0x0,
0x0}, v2_int64 = {
    0xc047069e2aa2aa5b, 0x0}, uint128 = 0x0000000000000000c047069e2aa2aa5b}
xmm5           {v4_float = {0x0, 0x3, 0x0, 0x0}, v2_double = {0x2d, 0x0},
v16_int8 = {0xc0, 0x9, 0xf2, 0x16, 0xb5, 
    0xdf, 0x46, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 =
{0x9c0, 0x16f2, 0xdfb5, 0x4046, 0x0, 0x0, 
    0x0, 0x0}, v4_int32 = {0x16f209c0, 0x4046dfb5, 0x0, 0x0}, v2_int64 =
{0x4046dfb516f209c0, 0x0}, 
  uint128 = 0x00000000000000004046dfb516f209c0}
xmm6           {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x17, 0x11, 0xbe, 0x76, 0x67, 
    0x6b, 0xd3, 0x3f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 =
{0x1117, 0x76be, 0x6b67, 0x3fd3, 0x0, 0x0, 
    0x0, 0x0}, v4_int32 = {0x76be1117, 0x3fd36b67, 0x0, 0x0}, v2_int64 =
{0x3fd36b6776be1117, 0x0}, 
  uint128 = 0x00000000000000003fd36b6776be1117}
xmm7           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x54, 0xec, 0x35, 0x16, 0xb3, 
    0xe9, 0x8f, 0xbd, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 =
{0xec54, 0x1635, 0xe9b3, 0xbd8f, 0x0, 0x0, 
    0x0, 0x0}, v4_int32 = {0x1635ec54, 0xbd8fe9b3, 0x0, 0x0}, v2_int64 =
{0xbd8fe9b31635ec54, 0x0}, 
  uint128 = 0x0000000000000000bd8fe9b31635ec54}
xmm8           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x29, 0xf2, 0x88, 0x6c, 0xa6, 
    0x49, 0xde, 0x3e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 =
{0xf229, 0x6c88, 0x49a6, 0x3ede, 0x0, 0x0, 
---Type <return> to continue, or q <return> to quit---
    0x0, 0x0}, v4_int32 = {0x6c88f229, 0x3ede49a6, 0x0, 0x0}, v2_int64 =
{0x3ede49a66c88f229, 0x0}, 
  uint128 = 0x00000000000000003ede49a66c88f229}
xmm9           {v4_float = {0x9689a800, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x6a, 0xa2, 0x65, 0x50, 
    0xf2, 0xea, 0x8f, 0xbd, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 =
{0xa26a, 0x5065, 0xeaf2, 0xbd8f, 
    0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x5065a26a, 0xbd8feaf2, 0x0, 0x0}, v2_int64
= {0xbd8feaf25065a26a, 0x0}, 
  uint128 = 0x0000000000000000bd8feaf25065a26a}
xmm10          {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x1, 0x0},
v16_int8 = {0x6d, 0x7d, 0xbf, 0xbb, 0x27, 
    0xaf, 0xf5, 0x3f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 =
{0x7d6d, 0xbbbf, 0xaf27, 0x3ff5, 0x0, 0x0, 
    0x0, 0x0}, v4_int32 = {0xbbbf7d6d, 0x3ff5af27, 0x0, 0x0}, v2_int64 =
{0x3ff5af27bbbf7d6d, 0x0}, 
  uint128 = 0x00000000000000003ff5af27bbbf7d6d}
xmm11          {v4_float = {0x0, 0xfffffffd, 0x0, 0x0}, v2_double =
{0xffffffffffffffd2, 0x0}, v16_int8 = {0xe0, 
    0xe6, 0x35, 0x67, 0x9e, 0x6, 0x47, 0xc0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0}, v8_int16 = {0xe6e0, 0x6735, 
    0x69e, 0xc047, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x6735e6e0, 0xc047069e, 0x0,
0x0}, v2_int64 = {
    0xc047069e6735e6e0, 0x0}, uint128 = 0x0000000000000000c047069e6735e6e0}
xmm12          {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}
xmm13          {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0, 0x0, 0x46, 0x84, 0x24, 
    0x59, 0xd6, 0x3e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0,
0x8446, 0x5924, 0x3ed6, 0x0, 0x0, 
    0x0, 0x0}, v4_int32 = {0x84460000, 0x3ed65924, 0x0, 0x0}, v2_int64 =
{0x3ed6592484460000, 0x0}, 
  uint128 = 0x00000000000000003ed6592484460000}
xmm14          {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x1, 0x0},
v16_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
    0xf0, 0x3f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x0,
0x0, 0x3ff0, 0x0, 0x0, 0x0, 0x0}, 
  v4_int32 = {0x0, 0x3ff00000, 0x0, 0x0}, v2_int64 = {0x3ff0000000000000, 0x0}, 
  uint128 = 0x00000000000000003ff0000000000000}
xmm15          {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x8e, 0x85, 0x83, 0xe8, 0xf0, 
    0x24, 0x53, 0x3c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 =
{0x858e, 0xe883, 0x24f0, 0x3c53, 0x0, 0x0, 
    0x0, 0x0}, v4_int32 = {0xe883858e, 0x3c5324f0, 0x0, 0x0}, v2_int64 =
{0x3c5324f0e883858e, 0x0}, 
  uint128 = 0x00000000000000003c5324f0e883858e}
mxcsr          0x1fa0   [ PE IM DM ZM OM UM PM ]


I uploaded a file named pcm_dvd.mpeg

Good luck
Lars

----------
messages: 2775
nosy: taeuber
priority: normal
status: new
substatus: new
title: ffplay crashes with floating point exception or other error
topic: avformat, ffplay
type: bug

______________________________________________________
FFmpeg issue tracker <[EMAIL PROTECTED]>
<https://roundup.mplayerhq.hu/roundup/ffmpeg/issue581>
______________________________________________________

Reply via email to