[FFmpeg-trac] #324(FFmpeg:open): floating point exception while generation of 1s silence

FFmpeg trac at avcodec.org
Thu Jun 30 15:06:43 CEST 2011


#324: floating point exception while generation of 1s silence
---------------------------+----------------------
Reporter:  Schweinebacke   |       Owner:  michael
    Type:  defect          |      Status:  open
Priority:  critical        |   Component:  FFmpeg
 Version:  git-master      |  Resolution:
Keywords:  fpe regression  |  Blocked By:
Blocking:                  |  Reproduced:  1
Analyzed:  0               |
---------------------------+----------------------
Changes (by cehoyos):

 * keywords:  floating point exception => fpe regression
 * status:  new => open
 * version:  0.8 => git-master
 * reproduced:  0 => 1


Comment:

 Workaround is to use
 {{{
 $ ffmpeg -ar 48000 -f s16le -i /dev/zero -ar 48000 -t 1 out.wav
 }}}
 {{{
 (gdb) r -f s16le -i /dev/zero -ar 48000 -t 1 out.wav
 Starting program: /home/cehoyos/Projects/FFmpeg/ffmpeg_g -f s16le -i
 /dev/zero -ar 48000 -t 1 out.wav
 [Thread debugging using libthread_db enabled]
 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
 Ignoring attempt to set invalid timebase for st:0
 [s16le @ 0x8c69340] Estimating duration from bitrate, this may be
 inaccurate
 Input #0, s16le, from '/dev/zero':
   Duration: N/A, start: 0.000000, bitrate: N/A
     Stream #0.0: Audio: pcm_s16le, 1 channels, s16
 Output #0, wav, to 'out.wav':
   Metadata:
     encoder         : Lavf53.4.0
     Stream #0.0: Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
 Stream mapping:
   Stream #0.0 -> #0.0
 Press [q] to stop, [?] for help

 Program received signal SIGFPE, Arithmetic exception.
 0x085bc9f3 in __udivmoddi4 (rp=0x0, d=0, n=1024000000) at
 ../../.././libgcc/../gcc/libgcc2.c:895
 895     ../../.././libgcc/../gcc/libgcc2.c: No such file or directory.
         in ../../.././libgcc/../gcc/libgcc2.c
 (gdb) bt
 #0  0x085bc9f3 in __udivmoddi4 (rp=0x0, d=0, n=1024000000) at
 ../../.././libgcc/../gcc/libgcc2.c:895
 #1  __divdi3 (rp=0x0, d=0, n=1024000000) at
 ../../.././libgcc/../gcc/libgcc2.c:1093
 #2  0x08050480 in output_packet (ist=0x8c74058, ist_index=0,
 ost_table=0x8c76cc0, nb_ostreams=1, pkt=0xffffcda0) at ffmpeg.c:1599
 #3  0x08053a0f in transcode (nb_output_files=1, input_files=0x8c63008,
 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
 }}}

-- 
Ticket URL: <https://avcodec.org/trac/ffmpeg/ticket/324#comment:1>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list