Opened 13 years ago

Closed 12 years ago

#322 closed defect (fixed)

FPE in ffmpeg when decoding ogg file

Reported by: Carl Eugen Hoyos Owned by: Michael Niedermayer
Priority: normal Component: ffmpeg
Version: git-master Keywords: crash fpe
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

The sample from ticket #316 still causes a crash:

(gdb) r -i multi2.ogg -f null -
ffmpeg version N-31094-g8c0cbb0, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jun 30 2011 08:31:56 with gcc 4.5.3
  configuration: --cc='/usr/local/gcc-4.5.3/bin/gcc -m32'
  libavutil    51. 10. 0 / 51. 10. 0
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 24. 0 /  2. 24. 0
  libswscale    2.  0. 0 /  2.  0. 0
[theora @ 0x8c6b2a0] 7 bits left in packet 82
Input #0, ogg, from 'multi2.ogg':
  Duration: 00:00:00.-40, start: 0.000000, bitrate: -3494 kb/s
    Stream #0.0: Video: theora, yuv420p, 320x240, 5 tbr, 5 tbn, 5 tbc
[buffer @ 0x8c6a7c0] w:320 h:240 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param:
[theora @ 0x8c6b2a0] 7 bits left in packet 82
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf53.4.0
    Stream #0.0: Video: rawvideo, yuv420p, 320x240, q=2-31, 200 kb/s, 90k tbn, 5 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop, [?] for help
[theora @ 0x8c6b2a0] Header packet passed to frame decoder, skipping
Error while decoding stream #0.0
Error while decoding stream #0.0s
Error while decoding stream #0.0s
Error while decoding stream #0.0s
    Last message repeated 3 times
[theora @ 0x8c6b2a0] Invalid partially coded superblock run length
[theora @ 0x8c6b2a0] error in unpack_superblocks
Error while decoding stream #0.0
[theora @ 0x8c6b2a0] Invalid fully coded superblock run length
[theora @ 0x8c6b2a0] error in unpack_superblocks
Error while decoding stream #0.0
[theora @ 0x8c6b2a0] Warning, unsupported keyframe coding type?!
[theora @ 0x8c6b2a0] error in unpack_block_qpis
Error while decoding stream #0.0
[theora @ 0x8c6b2a0] Header packet passed to frame decoder, skipping
Error while decoding stream #0.0
[theora @ 0x8c6b2a0] error in unpack_block_qpis
Error while decoding stream #0.0
[theora @ 0x8c6b2a0] Invalid partially coded superblock run length
[theora @ 0x8c6b2a0] error in unpack_superblocks
Error while decoding stream #0.0
[theora @ 0x8c6b2a0] Header packet passed to frame decoder, skipping
Error while decoding stream #0.0
Error while decoding stream #0.0s
Error while decoding stream #0.0s
    Last message repeated 2 times
[theora @ 0x8c6b2a0] Warning, unsupported keyframe coding type?!

Program received signal SIGFPE, Arithmetic exception.
0x085bc9f3 in __udivmoddi4 (rp=0x0, d=0, n=1000000) at ../../.././libgcc/../gcc/libgcc2.c:895
895                 d0 = 1 / d0;        /* Divide intentionally by zero.  */
(gdb) bt
#0  0x085bc9f3 in __udivmoddi4 (rp=0x0, d=0, n=1000000) at ../../.././libgcc/../gcc/libgcc2.c:895
#1  __divdi3 (rp=0x0, d=0, n=1000000) at ../../.././libgcc/../gcc/libgcc2.c:1093
#2  0x0805043d in output_packet (ist=0x8c70900, ist_index=0, ost_table=0x8c648a0, nb_ostreams=1, pkt=0xffffcdc0) at ffmpeg.c:1599
#3  0x08053a0f in transcode (nb_output_files=1, input_files=0x8c70948, nb_input_files=1, stream_maps=0x0, nb_stream_maps=0, output_files=0x870a9c0) at ffmpeg.c:2780
#4  0x08058c85 in main (argc=<value optimized out>, argv=<value optimized out>) at ffmpeg.c:4578

Change History (2)

comment:1 by Carl Eugen Hoyos, 12 years ago

Keywords: crash fpe added
Reproduced by developer: set
Status: newopen

comment:2 by Carl Eugen Hoyos, 12 years ago

Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.