Skip to content

Instantly share code, notes, and snippets.

@efuquen
Created January 9, 2013 22:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save efuquen/4497759 to your computer and use it in GitHub Desktop.
Save efuquen/4497759 to your computer and use it in GitHub Desktop.
efuquen@ubuntest ~/Code/oss/libav (master) $ gdb ./avconv
GNU gdb (GDB) 7.5-ubuntu
Copyright (C) 2012 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".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/efuquen/Code/oss/libav/avconv...done.
(gdb) r -i ~/Code/test/video-test/7445d6bd-08cb-42b5-aab5-ad6042d5258f_678.mp4
Starting program: /home/efuquen/Code/oss/libav/avconv -i ~/Code/test/video-test/7445d6bd-08cb-42b5-aab5-ad6042d5258f_678.mp4
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
avconv version v9-83-g71194ef, Copyright (c) 2000-2013 the Libav developers
built on Jan 9 2013 17:36:22 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1)
Program received signal SIGSEGV, Segmentation fault.
0x0000000000a043ea in show_bits (s=0x7fffffffd6a0, n=12) at libavcodec/get_bits.h:255
255 UPDATE_CACHE(re, s);
(gdb) bt
#0 0x0000000000a043ea in show_bits (s=0x7fffffffd6a0, n=12) at libavcodec/get_bits.h:255
#1 0x0000000000a0e51e in aac_decode_frame_int (avctx=0x14f0200, data=0x14f3100, got_frame_ptr=0x7fffffffd730, gb=0x7fffffffd6a0) at libavcodec/aacdec.c:2393
#2 0x0000000000a0ec84 in aac_decode_frame (avctx=0x14f0200, data=0x14f3100, got_frame_ptr=0x7fffffffd730, avpkt=0x7fffffffd750) at libavcodec/aacdec.c:2559
#3 0x0000000000902606 in avcodec_decode_audio4 (avctx=0x14f0200, frame=0x14f3100, got_frame_ptr=0x7fffffffd730, avpkt=0x7fffffffd750) at libavcodec/utils.c:1379
#4 0x0000000000521128 in try_decode_frame (st=0x14ee900, avpkt=0x14f19c0, options=0x14ebc80) at libavformat/utils.c:2095
#5 0x00000000005229b4 in avformat_find_stream_info (ic=0x14eb0e0, options=0x14ebc80) at libavformat/utils.c:2475
#6 0x000000000040573d in open_input_file (o=0x7fffffffdbf0, filename=0x7fffffffe39a "/home/efuquen/Code/test/video-test/7445d6bd-08cb-42b5-aab5-ad6042d5258f_678.mp4") at avconv_opt.c:629
#7 0x000000000040af1c in open_files (l=0x14e02b8, inout=0xb576cf "input", open_file=0x40520b <open_input_file>) at avconv_opt.c:1887
#8 0x000000000040b0b0 in avconv_parse_options (argc=3, argv=0x7fffffffe0a8) at avconv_opt.c:1924
#9 0x0000000000415362 in main (argc=3, argv=0x7fffffffe0a8) at avconv.c:2369
(gdb) disass $pc-32,$pc+32
Dump of assembler code from 0xa043ca to 0xa0440a:
0x0000000000a043ca <show_bits+29>: add %al,(%rax)
0x0000000000a043cc <show_bits+31>: add %al,(%rax)
0x0000000000a043ce <show_bits+33>: mov -0x20(%rbp),%rax
0x0000000000a043d2 <show_bits+37>: mov 0x18(%rax),%eax
0x0000000000a043d5 <show_bits+40>: mov %eax,-0x10(%rbp)
0x0000000000a043d8 <show_bits+43>: mov -0x20(%rbp),%rax
0x0000000000a043dc <show_bits+47>: mov (%rax),%rdx
0x0000000000a043df <show_bits+50>: mov -0x18(%rbp),%eax
0x0000000000a043e2 <show_bits+53>: shr $0x3,%eax
0x0000000000a043e5 <show_bits+56>: mov %eax,%eax
0x0000000000a043e7 <show_bits+58>: add %rdx,%rax
=> 0x0000000000a043ea <show_bits+61>: mov (%rax),%eax
0x0000000000a043ec <show_bits+63>: mov %eax,-0xc(%rbp)
0x0000000000a043ef <show_bits+66>: mov -0xc(%rbp),%eax
0x0000000000a043f2 <show_bits+69>: shl $0x8,%eax
0x0000000000a043f5 <show_bits+72>: movzwl %ax,%edx
0x0000000000a043f8 <show_bits+75>: mov -0xc(%rbp),%eax
0x0000000000a043fb <show_bits+78>: shr $0x8,%eax
0x0000000000a043fe <show_bits+81>: and $0xff,%eax
0x0000000000a04403 <show_bits+86>: or %edx,%eax
0x0000000000a04405 <show_bits+88>: mov %eax,%edx
0x0000000000a04407 <show_bits+90>: shl $0x10,%edx
End of assembler dump.
(gdb) info all-registers
rax 0x0 0
rbx 0x0 0
rcx 0x7fffffffd6a0 140737488344736
rdx 0x0 0
rsi 0xc 12
rdi 0x7fffffffd6a0 140737488344736
rbp 0x7fffffffd510 0x7fffffffd510
rsp 0x7fffffffd4e8 0x7fffffffd4e8
r8 0x50 80
r9 0x100000 1048576
r10 0x0 0
r11 0x7ffff7377074 140737340993652
r12 0x403880 4208768
r13 0x7fffffffe0a0 140737488347296
r14 0x0 0
r15 0x0 0
rip 0xa043ea 0xa043ea <show_bits+61>
eflags 0x10246 [ PF ZF IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
st0 0 (raw 0x00000000000000000000)
st1 0 (raw 0x00000000000000000000)
st2 0 (raw 0x00000000000000000000)
st3 0 (raw 0x00000000000000000000)
st4 0 (raw 0x00000000000000000000)
st5 0 (raw 0x00000000000000000000)
st6 0 (raw 0x00000000000000000000)
st7 0 (raw 0x00000000000000000000)
fctrl 0x37f 895
fstat 0x0 0
ftag 0xffff 65535
fiseg 0x0 0
fioff 0x0 0
foseg 0x0 0
fooff 0x0 0
fop 0x0 0
xmm0 {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}
xmm1 {v4_float = {0x1fff, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0, 0xf8, 0xff, 0x45, 0x0 <repeats 12 times>}, v8_int16 = {0xf800, 0x45ff, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0}, v4_int32 = {0x45fff800, 0x0, 0x0, 0x0}, v2_int64 = {0x45fff800, 0x0}, uint128 = 0x00000000000000000000000045fff800}
xmm2 {v4_float = {0x0, 0x1, 0x0, 0x1}, v2_double = {0x0, 0x0}, v16_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0xef, 0x3f, 0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0xef, 0x3f}, v8_int16 = {0x0,
0x0, 0xff00, 0x3fef, 0x0, 0x0, 0xff00, 0x3fef}, v4_int32 = {0x0, 0x3fefff00, 0x0, 0x3fefff00}, v2_int64 = {0x3fefff0000000000, 0x3fefff0000000000},
uint128 = 0x3fefff00000000003fefff0000000000}
xmm3 {v4_float = {0x0, 0x2, 0x0, 0x1}, v2_double = {0x2, 0x0}, v16_int8 = {0x0, 0x0, 0x0, 0x10, 0xab, 0xef, 0x7, 0x40, 0x0, 0x0, 0x0, 0x20, 0xd6, 0xdf, 0xef, 0x3f}, v8_int16 = {
0x0, 0x1000, 0xefab, 0x4007, 0x0, 0x2000, 0xdfd6, 0x3fef}, v4_int32 = {0x10000000, 0x4007efab, 0x20000000, 0x3fefdfd6}, v2_int64 = {0x4007efab10000000, 0x3fefdfd620000000},
uint128 = 0x3fefdfd6200000004007efab10000000}
xmm4 {v4_float = {0x0, 0x2, 0x0, 0x1}, v2_double = {0x2, 0x0}, v16_int8 = {0x0, 0x0, 0x0, 0x88, 0x75, 0xf7, 0x7, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0xef, 0x3f}, v8_int16 = {0x0,
---Type <return> to continue, or q <return> to quit---
0x8800, 0xf775, 0x4007, 0x0, 0x0, 0xff00, 0x3fef}, v4_int32 = {0x88000000, 0x4007f775, 0x0, 0x3fefff00}, v2_int64 = {0x4007f77588000000, 0x3fefff0000000000},
uint128 = 0x3fefff00000000004007f77588000000}
xmm5 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x6d, 0xe9, 0x9d, 0x37, 0x0 <repeats 12 times>}, v8_int16 = {0xe96d, 0x379d, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0}, v4_int32 = {0x379de96d, 0x0, 0x0, 0x0}, v2_int64 = {0x379de96d, 0x0}, uint128 = 0x000000000000000000000000379de96d}
xmm6 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x23, 0xf0, 0x99, 0x3d, 0x0 <repeats 12 times>}, v8_int16 = {0xf023, 0x3d99, 0x0, 0x0, 0x0, 0x0, 0x0,
0x0}, v4_int32 = {0x3d99f023, 0x0, 0x0, 0x0}, v2_int64 = {0x3d99f023, 0x0}, uint128 = 0x0000000000000000000000003d99f023}
xmm7 {v4_float = {0x0, 0x2, 0x0, 0x0}, v2_double = {0x2, 0x0}, v16_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x0,
0x0, 0x4000, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x40000000, 0x0, 0x0}, v2_int64 = {0x4000000000000000, 0x0}, uint128 = 0x00000000000000004000000000000000}
xmm8 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0xb, 0x12, 0x9a, 0x2e, 0xba, 0xfd, 0x65, 0x3f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {
0x120b, 0x2e9a, 0xfdba, 0x3f65, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x2e9a120b, 0x3f65fdba, 0x0, 0x0}, v2_int64 = {0x3f65fdba2e9a120b, 0x0}, uint128 = 0x00000000000000003f65fdba2e9a120b}
xmm9 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0xb, 0x12, 0x9a, 0x2e, 0xba, 0xfd, 0x65, 0x3f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {
0x120b, 0x2e9a, 0xfdba, 0x3f65, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x2e9a120b, 0x3f65fdba, 0x0, 0x0}, v2_int64 = {0x3f65fdba2e9a120b, 0x0}, uint128 = 0x00000000000000003f65fdba2e9a120b}
xmm10 {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0xce, 0xe, 0x11, 0x11, 0x11, 0x11, 0x81, 0x3f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {
0xece, 0x1111, 0x1111, 0x3f81, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x11110ece, 0x3f811111, 0x0, 0x0}, v2_int64 = {0x3f81111111110ece, 0x0}, uint128 = 0x00000000000000003f81111111110ece}
xmm11 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x34, 0x5c, 0x3f, 0x64, 0x71, 0x19, 0xd3, 0x39, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {
0x5c34, 0x643f, 0x1971, 0x39d3, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x643f5c34, 0x39d31971, 0x0, 0x0}, v2_int64 = {0x39d31971643f5c34, 0x0}, uint128 = 0x000000000000000039d31971643f5c34}
xmm12 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0xb8, 0x8, 0xdb, 0x19, 0xa0, 0x1, 0x2a, 0xbf, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {
0x8b8, 0x19db, 0x1a0, 0xbf2a, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x19db08b8, 0xbf2a01a0, 0x0, 0x0}, v2_int64 = {0xbf2a01a019db08b8, 0x0}, uint128 = 0x0000000000000000bf2a01a019db08b8}
xmm13 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0xd9, 0x7e, 0x9a, 0x7b, 0xe2, 0x1d, 0xc7, 0x3e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {
0x7ed9, 0x7b9a, 0x1de2, 0x3ec7, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x7b9a7ed9, 0x3ec71de2, 0x0, 0x0}, v2_int64 = {0x3ec71de27b9a7ed9, 0x0}, uint128 = 0x00000000000000003ec71de27b9a7ed9}
xmm14 {v4_float = {0xffffff82, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x59, 0xdf, 0xfc, 0xc2, 0xff, 0xdd, 0x5a, 0xbe, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0},
v8_int16 = {0xdf59, 0xc2fc, 0xddff, 0xbe5a, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0xc2fcdf59, 0xbe5addff, 0x0, 0x0}, v2_int64 = {0xbe5addffc2fcdf59, 0x0},
uint128 = 0x0000000000000000be5addffc2fcdf59}
xmm15 {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0xe7, 0x6, 0x8f, 0x71, 0xf8, 0xff, 0xef, 0x3f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {
0x6e7, 0x718f, 0xfff8, 0x3fef, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x718f06e7, 0x3feffff8, 0x0, 0x0}, v2_int64 = {0x3feffff8718f06e7, 0x0}, uint128 = 0x00000000000000003feffff8718f06e7}
mxcsr 0x1fa0 [ PE IM DM ZM OM UM PM ]
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment