GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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". For bug reporting instructions, please see: ... Reading symbols from /usr/bin/ffmpeg...Reading symbols from /usr/lib/debug/usr/bin/ffmpeg...done. done. (gdb) handle SIG33 pass nostop noprint Signal Stop Print Pass to program Description SIG33 No No Yes Real-time event 33 (gdb) set pagination 0 (gdb) run -i small-sample-file.mp4 -ac 2 small-sample-file.mp4 _.mp42.mp4 Starting program: /usr/bin/ffmpeg -i small-sample-file.mp4 -ac 2 small-sample-file_2.mp4 [Thread debugging using libthread_db enabled] ffmpeg version 0.7.2-4:0.7.2-1ubuntu1, Copyright (c) 2000-2011 the Libav developers built on Oct 2 2011 15:13:26 with gcc 4.6.1 configuration: --extra-version='4:0.7.2-1ubuntu1' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static libavutil 51. 7. 0 / 51. 7. 0 libavcodec 53. 5. 0 / 53. 5. 0 libavformat 53. 2. 0 / 53. 2. 0 libavdevice 53. 0. 0 / 53. 0. 0 libavfilter 2. 4. 0 / 2. 4. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 52. 0. 0 / 52. 0. 0 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'small-sample-file.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isom creation_time : 2010-11-18 08:57:45 Duration: 02:03:57.50, start: 0.000000, bitrate: 11 kb/s Stream #0.0(und): Video: h264 (High), yuv420p, 1280x528 [PAR 1:1 DAR 80:33], 2496 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc Metadata: creation_time : 2010-11-18 08:27:37 Stream #0.1(und): Audio: aac, 48000 Hz, 5.1, s16, 380 kb/s Metadata: creation_time : 2010-11-18 08:58:53 [buffer @ 0x621100] w:1280 h:528 pixfmt:yuv420p Output #0, mp4, to 'small-sample-file_2.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isom creation_time : 2010-11-18 08:57:45 encoder : Lavf53.2.0 Stream #0.0(und): Video: mpeg4, yuv420p, 1280x528 [PAR 1:1 DAR 80:33], q=2-31, 200 kb/s, 24k tbn, 23.98 tbc Metadata: creation_time : 2010-11-18 08:27:37 Stream #0.1(und): Audio: aac, 48000 Hz, 2 channels, s16, 64 kb/s Metadata: creation_time : 2010-11-18 08:58:53 Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press ctrl-c to stop encoding Program received signal SIGSEGV, Segmentation fault. av_resample (c=0x12dcce0, dst=, src=0x14dd4e0, consumed=0x7fffffffccdc, src_size=1024, dst_size=4112, update_ctx=1) at /build/buildd/libav-0.7.2/libavcodec/resample2.c:281 281 /build/buildd/libav-0.7.2/libavcodec/resample2.c: No such file or directory. in /build/buildd/libav-0.7.2/libavcodec/resample2.c (gdb) backtrace full #0 av_resample (c=0x12dcce0, dst=, src=0x14dd4e0, consumed=0x7fffffffccdc, src_size=1024, dst_size=4112, update_ctx=1) at /build/buildd/libav-0.7.2/libavcodec/resample2.c:281 filter = 0x14d1400 sample_index = val = dst_index = i = index = -8192 frac = 0 dst_incr_frac = dst_incr = compensation_distance = 0 #1 0x00007ffff6cb4b48 in audio_resample (s=0x106d460, output=0x14b3f60, input=, nb_samples=1024) at /build/buildd/libav-0.7.2/libavcodec/resample.c:322 consumed = 1005 is_last = i = nb_samples1 = bufin = {0x106c180, 0x14dd4e0, 0x14, 0x401bfd, 0x14db402, 0x7ffff6cb547b, 0x2ee50, 0x3ff0000000000000} bufout = {0x14db460, 0x14ddd40, 0x3fe999999999999a, 0x7ffff5e631c0, 0x7ffff698a3e0, 0x7ffff7fe74e0, 0x40e0000000000000, 0x20} buftmp2 = {0x106c180, 0x14dd4e0, 0xffffffff, 0xbb80, 0x3feff80000000000, 0x623460, 0x618298, 0x0} buftmp3 = {0x14b3f60, 0xfc48, 0x0, 0x7ffff7de9fb4, 0x40000000001, 0x0, 0xfc48, 0x7ffff698a3e0} output_bak = 0x0 lenout = 4112 #2 0x0000000000405c35 in do_audio_out (size=12288, buf=, ist=0x626ed8, ost=0x623460, s=0x622a40) at /build/buildd/libav-0.7.2/ffmpeg.c:918 audio_out_size = 64584 resample_changed = audio_buf_size = size_out = frame_bytes = ret = dec = 0x626180 buftmp = allocated_for_size = enc = 0x622fc0 osize = 2 isize = 2 coded_bps = 0 #3 output_packet (ist=, ist_index=1, ost_table=0x106d1a0, nb_ostreams=2, pkt=) at /build/buildd/libav-0.7.2/ffmpeg.c:1681 ist_pts_tb = {num = 17225184, den = 0} frame_size = data_buf = 0x106d580 "" decoded_data_buf = 0x1485100 "" data_size = 46 decoded_data_size = 12288 os = 0x622a40 ost = 0x623460 ret = i = got_output = 1 picture = {data = {0x201485100
, 0x106d1a0 "\200\267a", 0x0, 0x0}, linesize = {1280, 640, 640, 0}, base = {0x11e5500 '\020' ..., 0x129e780 "\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200"..., 0x1403f00 "\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200\200"..., 0x0}, key_frame = 0, pict_type = AV_PICTURE_TYPE_P, pts = -9223372036854775808, coded_picture_number = 9, display_picture_number = 0, quality = 0, age = 1073741834, reference = 3, qscale_table = 0x12ccd03 '\030' , qstride = 81, mbskip_table = 0xd880a0 "", motion_val = {0x1432410, 0x145ba90}, mb_type = 0x12cda2c, motion_subsample_log2 = 2 '\002', opaque = 0x0, error = {0, 0, 0, 0}, type = 1, repeat_pict = 0, qscale_type = 2, interlaced_frame = 0, top_field_first = 0, pan_scan = 0xed9400, palette_has_changed = 0, buffer_hints = 0, dct_coeff = 0x0, ref_index = {0x12d0400 "", 0x12d2e00 ""}, reordered_opaque = -9223372036854775808, hwaccel_picture_private = 0x0, pkt_pts = 375375, pkt_dts = 375375, owner = 0x623be0, thread_opaque = 0x0} buffer_to_free = 0x0 samples_size = 192000 subtitle = {format = 54080, start_display_time = 32767, end_display_time = 0, num_rects = 2147483648, rects = 0x621340, pts = 0} subtitle_to_free = 0x0 pkt_pts = 0 frame_available = avpkt = {pts = 0, dts = 0, data = 0x106d5ae "", size = 0, stream_index = 1, flags = 1, side_data = 0x0, side_data_elems = 0, duration = 1024, destruct = 0x7ffff6a3d060 , priv = 0x621d08, pos = 3585858, convergence_duration = 0} bps = 2 #4 0x000000000040a5be in transcode (nb_output_files=1, input_files=0x626f60, nb_input_files=1, stream_maps=0x0, nb_stream_maps=, output_files=0x6187e0) at /build/buildd/libav-0.7.2/ffmpeg.c:2654 ist_index = 1 pkt = {pts = 0, dts = 0, data = 0x106d580 "", size = 46, stream_index = 1, flags = 1, side_data = 0x0, side_data_elems = 0, duration = 1024, destruct = 0x7ffff6a3d060 , priv = 0x621d08, pos = 3585858, convergence_duration = 0} file_index = ipts_min = opts_min = ret = i = j = k = n = nb_ostreams = is = os = codec = icodec = ost = ost_table = 0x106d1a0 ist = 0x626ed8 error = "(\000\000\000\000\000\000\000\264V\336\367\377\177\000\000\235U\302H\000\000\000\000\t\000\000\000\000\000\000\000(\000\000\000\000\000\000\000H\275\375\367\377\177\000\000\001#\371\244\000\000\000\000\306^\336\367\377\177\000\000\270\226\060\366\377\177\000\000\001\000\000\000\377\177\000\000\360\335\377\377\377\177\000\000\214\344\223\002\000\000\000\000\064\214\346\365\377\177\000\000\000\217\346\365\377\177\000\000\000\000\000\000\000\000\000\000Ȝ\346\365\377\177\000\000\330d\376\367\377\177\000\000\a", '\000' "\260, \244\375\367\377\177\000\000\000P\376\367\377\177\000\000,7l\367\377\177\000\000x\255\346\365\377\177\000\000 \355k\367\377\177\000\000\000\000\000\000\001\000\000\000\223\000\000\000\001\000\000\000\260\226\060\366\377\177\000\000\320\000\000\000\000\000\000\000\060\336\377\377\377\177\000\000\003\000\000\000\000\000\000\000(\000\000\000\000\000\000\000H\275\375\367\377\177\000\000\205\344 \230\000\000\000\000 \000\000\000\000\000\000\000\200\021b\000\000\000\000\000\264V\336\367\377\177\000\000\067\345"... want_sdp = no_packet = '\000' no_packet_count = 0 #5 0x0000000000407687 in main (argc=, argv=0x7fffffffe218) at /build/buildd/libav-0.7.2/ffmpeg.c:4466 ti = 64004 (gdb) info registers rax 0x1010 4112 rbx 0x0 0 rcx 0x8084000 134758400 rdx 0x9010 36880 rsi 0x14dd4e0 21877984 rdi 0x14 20 rbp 0xfc48 0xfc48 rsp 0x7fffffffcb18 0x7fffffffcb18 r8 0x400 1024 r9 0x14d1400 21828608 r10 0xffffe000 4294959104 r11 0x0 0 r12 0x14 20 r13 0xfffffff7 4294967287 r14 0x0 0 r15 0x400 1024 rip 0x7ffff6cb56ba 0x7ffff6cb56ba eflags 0x10202 [ IF RF ] cs 0x33 51 ss 0x2b 43 ds 0x0 0 es 0x0 0 fs 0x0 0 gs 0x0 0 (gdb) x/16i $pc => 0x7ffff6cb56ba : mov %ax,0x0(%rbp) 0x7ffff6cb56be : jg 0x7ffff6cb56c9 0x7ffff6cb56c0 : sub -0x44(%rsp),%r11d 0x7ffff6cb56c5 : add $0x1,%r10d 0x7ffff6cb56c9 : add $0x1,%ebx 0x7ffff6cb56cc : cmp -0x38(%rsp),%ebx 0x7ffff6cb56d0 : je 0x7ffff6cb57c0 0x7ffff6cb56d6 : add $0x2,%rbp 0x7ffff6cb56da : cmp -0x20(%rsp),%ebx 0x7ffff6cb56de : jne 0x7ffff6cb5610 0x7ffff6cb56e4 : movzbl -0x2c(%rsp),%ecx 0x7ffff6cb56e9 : xor %eax,%eax 0x7ffff6cb56eb : test %r10d,%r10d 0x7ffff6cb56ee : cmovns %r10d,%eax 0x7ffff6cb56f2 : sar %cl,%eax 0x7ffff6cb56f4 : mov -0x8(%rsp),%rcx (gdb) thread apply all backtrace Thread 1 (Thread 0x7ffff7fd6740 (LWP 7811)): #0 av_resample (c=0x12dcce0, dst=, src=0x14dd4e0, consumed=0x7fffffffccdc, src_size=1024, dst_size=4112, update_ctx=1) at /build/buildd/libav-0.7.2/libavcodec/resample2.c:281 #1 0x00007ffff6cb4b48 in audio_resample (s=0x106d460, output=0x14b3f60, input=, nb_samples=1024) at /build/buildd/libav-0.7.2/libavcodec/resample.c:322 #2 0x0000000000405c35 in do_audio_out (size=12288, buf=, ist=0x626ed8, ost=0x623460, s=0x622a40) at /build/buildd/libav-0.7.2/ffmpeg.c:918 #3 output_packet (ist=, ist_index=1, ost_table=0x106d1a0, nb_ostreams=2, pkt=) at /build/buildd/libav-0.7.2/ffmpeg.c:1681 #4 0x000000000040a5be in transcode (nb_output_files=1, input_files=0x626f60, nb_input_files=1, stream_maps=0x0, nb_stream_maps=, output_files=0x6187e0) at /build/buildd/libav-0.7.2/ffmpeg.c:2654 #5 0x0000000000407687 in main (argc=, argv=0x7fffffffe218) at /build/buildd/libav-0.7.2/ffmpeg.c:4466 (gdb) quit A debugging session is active. Inferior 1 [process 7811] will be killed. Quit anyway? (y or n)