Opened 11 years ago

Closed 11 years ago

#2992 closed defect (fixed)

mxf: FPE with forced g772

Reported by: ami_stuff Owned by:
Priority: important Component: avformat
Version: git-master Keywords: mxf crash fpe
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

http://samples.ffmpeg.org/jpeg2000/jpeg2000_mxf_first_10mb.mxf

(gdb) r -acodec g722 -i v/jpeg2000_mxf_first_10mb.mxf
Starting program: /media/sdb1/ffmpeg-HEAD-93439e8/ffmpeg_g -acodec g722 -i v/jpeg2000_mxf_first_10mb.mxf
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
ffmpeg version 2.0-93439e8 Copyright (c) 2000-2013 the FFmpeg developers
  built on Sep 18 2013 23:23:15 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --disable-yasm --enable-gpl --disable-ffprobe --disable-ffserver
  libavutil      52. 44.100 / 52. 44.100
  libavcodec     55. 31.101 / 55. 31.101
  libavformat    55. 18.100 / 55. 18.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 86.101 /  3. 86.101
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
[mxf @ 0x910eee0] broken or empty index
[mxf @ 0x910eee0] error getting stream index 67174400
[jpeg2000 @ 0x9111820] unsupported marker 0xFF61 at pos 0x62
[jpeg2000 @ 0x9111820] Invalid tpend

Program received signal SIGFPE, Arithmetic exception.
0x0888e96b in __divdi3 ()
(gdb) bt
#0  0x0888e96b in __divdi3 ()
#1  0x081d5402 in mxf_set_audio_pts (pkt=0xbffff068, mxf=<optimized out>, 
    codec=<optimized out>) at libavformat/mxfdec.c:2200
#2  mxf_read_packet_old (pkt=<optimized out>, s=<optimized out>)
    at libavformat/mxfdec.c:2282
#3  mxf_read_packet (s=0x910eee0, pkt=0xbffff068) at libavformat/mxfdec.c:2308
#4  0x082377e7 in ff_read_packet (s=s@entry=0x910eee0, 
    pkt=pkt@entry=0xbffff068) at libavformat/utils.c:658
#5  0x0823a129 in read_frame_internal (s=s@entry=0x910eee0, 
    pkt=pkt@entry=0xbffff248) at libavformat/utils.c:1316
#6  0x0823dd65 in avformat_find_stream_info (ic=0x910eee0, options=0x9110a40)
    at libavformat/utils.c:2801
#7  0x080a66b5 in open_input_file (o=o@entry=0xbffff52c, 
    filename=<optimized out>) at ffmpeg_opt.c:809
#8  0x080a4ed7 in open_files (inout=inout@entry=0x88e725b "input", 
    open_file=open_file@entry=0x80a62d0 <open_input_file>, 
    l=<error reading variable: Unhandled dwarf expression opcode 0xfa>, 
    l=<error reading variable: Unhandled dwarf expression opcode 0xfa>)
    at ffmpeg_opt.c:2494
#9  0x080ad0e9 in ffmpeg_parse_options (argc=argc@entry=5, 
    argv=argv@entry=0xbffff9b4) at ffmpeg_opt.c:2531
#10 0x080a25da in main (argc=5, argv=0xbffff9b4) at ffmpeg.c:3393
(gdb) 
knoppix@Microknoppix:/media/sdb1$ valgrind --leak-check=full ffmpeg-HEAD-93439e8/ffmpeg_g -acodec g722 -i v/jpeg2000_mxf_first_10mb.mxf
==2820== Memcheck, a memory error detector
==2820== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==2820== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==2820== Command: ffmpeg-HEAD-93439e8/ffmpeg_g -acodec g722 -i v/jpeg2000_mxf_first_10mb.mxf
==2820== 
ffmpeg version 2.0-93439e8 Copyright (c) 2000-2013 the FFmpeg developers
  built on Sep 18 2013 23:23:15 with gcc 4.7 (Debian 4.7.2-5)
  configuration: --disable-yasm --enable-gpl --disable-ffprobe --disable-ffserver
  libavutil      52. 44.100 / 52. 44.100
  libavcodec     55. 31.101 / 55. 31.101
  libavformat    55. 18.100 / 55. 18.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 86.101 /  3. 86.101
  libswscale      2.  5.100 /  2.  5.100
  libswresample   0. 17.103 /  0. 17.103
  libpostproc    52.  3.100 / 52.  3.100
[mxf @ 0x4223160] broken or empty index
[mxf @ 0x4223160] error getting stream index 67174400
[jpeg2000 @ 0x4237d80] unsupported marker 0xFF61 at pos 0x62
[jpeg2000 @ 0x4237d80] Invalid tpend
==2820== 
==2820== Process terminating with default action of signal 8 (SIGFPE)
==2820==  Integer divide by zero at address 0x643A9AF5
==2820==    at 0x888E964: __divdi3 (in /media/sdb1/ffmpeg-HEAD-93439e8/ffmpeg_g)
==2820==    by 0x81D5401: mxf_read_packet (mxfdec.c:2200)
==2820==    by 0x82377E6: ff_read_packet (utils.c:658)
==2820==    by 0x823A128: read_frame_internal (utils.c:1316)
==2820==    by 0x823DD64: avformat_find_stream_info (utils.c:2801)
==2820==    by 0x80A66B4: open_input_file (ffmpeg_opt.c:809)
==2820==    by 0x80A4ED6: open_files.isra.7 (ffmpeg_opt.c:2494)
==2820==    by 0x40A5E15: (below main) (libc-start.c:228)
==2820== 
==2820== HEAP SUMMARY:
==2820==     in use at exit: 215,410 bytes in 93 blocks
==2820==   total heap usage: 159 allocs, 66 frees, 254,674 bytes allocated
==2820== 
==2820== LEAK SUMMARY:
==2820==    definitely lost: 0 bytes in 0 blocks
==2820==    indirectly lost: 0 bytes in 0 blocks
==2820==      possibly lost: 0 bytes in 0 blocks
==2820==    still reachable: 215,410 bytes in 93 blocks
==2820==         suppressed: 0 bytes in 0 blocks
==2820== Reachable blocks (those to which a pointer was found) are not shown.
==2820== To see them, rerun with: --leak-check=full --show-reachable=yes
==2820== 
==2820== For counts of detected and suppressed errors, rerun with: -v
==2820== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 59 from 6)
Floating point exception
knoppix@Microknoppix:/media/sdb1$ 

Change History (2)

comment:1 by Carl Eugen Hoyos, 11 years ago

Component: undeterminedavformat
Keywords: mxf crash fpe added
Priority: normalimportant
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

comment:2 by Michael Niedermayer, 11 years ago

Resolution: fixed
Status: openclosed
Version 0, edited 11 years ago by Michael Niedermayer (next)
Note: See TracTickets for help on using tickets.