Guest User

Untitled

a guest
Apr 2nd, 2013
201
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Complete trace:
  2. $ uname -a
  3. Darwin Lars-iPhone-4 11.0.0 Darwin Kernel Version 11.0.0: Sun Apr  8 21:51:26 PDT 2012; root:xnu-1878.11.10~1/RELEASE_ARM_S5L8930X iPhone3,1 arm N90AP Darwin
  4.  
  5. $ gdb ffmpeg
  6. GNU gdb 6.3.50-20050815 (Apple version gdb-1821) (Fri Jun 29 08:41:41 UTC 2012)
  7. Copyright 2004 Free Software Foundation, Inc.
  8. GDB is free software, covered by the GNU General Public License, and you are
  9. welcome to change it and/or distribute copies of it under certain conditions.
  10. Type "show copying" to see the conditions.
  11. There is absolutely no warranty for GDB.  Type "show warranty" for details.
  12. This GDB was configured as "arm-apple-darwin"...Reading symbols for shared libraries . done
  13.  
  14. (gdb) r ffmpeg -i http://techslides.com/demos/sample-videos/small.mp4 -acodec copy -vcodec copy output.mp4
  15. Starting program: /ffmpeg-n1.2/ffmpeg ffmpeg -i http://techslides.com/demos/sample-videos/small.mp4 -acodec copy -vcodec copy output.mp4
  16. Reading symbols for shared libraries ......................... done
  17.  
  18. Program received signal EXC_BAD_INSTRUCTION, Illegal instruction/operand.
  19. ff_pred8x8_128_dc_neon () at h264pred_neon.S:405
  20. Line number 405 out of range; h264pred_neon.S has 359 lines.
  21.  
  22. (gdb) bt
  23. #0  ff_pred8x8_128_dc_neon () at h264pred_neon.S:405
  24. #1  0x003fc75a in hl_decode_mb_simple_8 (h=0x0) at h264_mb_template.c:161
  25. #2  0x003fdad8 in ff_h264_hl_decode_mb (h=<value temporarily unavailable, due to optimizations>) at /ffmpeg-n1.2/libavcodec/h264.c:2415
  26. #3  0x00401da4 in decode_slice (avctx=<value temporarily unavailable, due to optimizations>, arg=<value temporarily unavailable, due to optimizations>) at /ffmpeg-n1.2/libavcodec/h264.c:4266
  27. #4  0x00402380 in execute_decode_slices () at /ffmpeg-n1.2/libavcodec/h264.c:4355
  28. #5  0x00402dec in decode_nal_units (h=0xf00000, buf=0xd25484 "", buf_size=4207149, parse_extradata=0) at /ffmpeg-n1.2/libavcodec/h264.c:4699
  29. #6  0x004033d6 in decode_frame (avctx=0x13b5a00, data=0x0, got_frame=0x2fdfef84, avpkt=<value temporarily unavailable, due to optimizations>) at /ffmpeg-n1.2/libavcodec/h264.c:4811
  30. #7  0x003247ce in avcodec_decode_video2 (avctx=0x13b5a00, picture=0xe4bb40, got_picture_ptr=0x10, avpkt=0x2fdfef20) at /ffmpeg-n1.2/libavcodec/utils.c:1690
  31. #8  0x00067c16 in try_decode_frame (st=0xe4ad30, avpkt=<value temporarily unavailable, due to optimizations>, options=0x0) at /ffmpeg-n1.2/libavformat/utils.c:2514
  32. #9  0x0006c468 in avformat_find_stream_info (ic=0xd18004, options=0x2fe25a14) at /ffmpeg-n1.2/libavformat/utils.c:2946
  33. #10 0x00004448 in open_input_file (o=0x2fdff36c, filename=<value temporarily unavailable, due to optimizations>) at /ffmpeg-n1.2/ffmpeg_opt.c:786
  34. #11 0x00003de8 in open_files (l=0x0, inout=0x0, open_file=0x5f5944 <groups>) at /ffmpeg-n1.2/ffmpeg_opt.c:2307
  35. #12 0x00004058 in ffmpeg_parse_options (argc=<value temporarily unavailable, due to optimizations>, argv=<value temporarily unavailable, due to optimizations>) at /ffmpeg-n1.2/ffmpeg_opt.c:2344
  36. #13 0x00010c30 in main (argc=<value temporarily unavailable, due to optimizations>, argv=<value temporarily unavailable, due to optimizations>) at /ffmpeg-n1.2/ffmpeg.c:3317
  37. Current language:  auto; currently asm
  38.  
  39. (gdb) disass $pc-32,$pc+32
  40. Dump of assembler code for function ff_pred8x8_top_dc_neon:
  41. 0x00398b74 <ff_pred8x8_top_dc_neon+0>:  andeq   lr, r1, #163840 ; 0x28000
  42. 0x00398b78 <ff_pred8x8_top_dc_neon+4>:  ldreq   pc, [pc, -r2, lsr #18]
  43. 0x00398b7c <ff_pred8x8_top_dc_neon+8>:  addeq   pc, r0, #704    ; 0x2c0
  44. 0x00398b80 <ff_pred8x8_top_dc_neon+12>: bleq    0x7d47c8 <noise_table+2408>
  45. 0x00398b84 <ff_pred8x8_top_dc_neon+16>: ldmdaeq r0, {r1, r2, r3, r7, r8, r9, r10, r11, sp, lr, pc}^
  46. 0x00398b88 <ff_pred8x8_top_dc_neon+20>: stcne   15, cr15, [r0], {179}
  47. 0x00398b8c <ff_pred8x8_top_dc_neon+24>: stceq   15, cr15, [r0], {177}
  48. 0x00398b90 <ff_pred8x8_top_dc_neon+28>: strheq  pc, [r1], r10
  49. 0x00398b94 <ff_pred8x8_top_dc_neon+32>: svclt   0x0000e04a
  50. End of assembler dump.
  51.  
  52. (gdb) info all-registers
  53. r0             0xdd5990 14506384
  54. r1             0x130    304
  55. r2             0x398b6c 3771244
  56. r3             0x4b804  309252
  57. r4             0xf00000 15728640
  58. r5             0xf00fc4 15732676
  59. r6             0x0  0
  60. r7             0x2fdfecf4   803204340
  61. r8             0xde3990 14563728
  62. r9             0x4b824  309284
  63. r10            0xfa8610 16418320
  64. r11            0x0  0
  65. r12            0x0  0
  66. sp             0x2fdfec28   803204136
  67. lr             0x3fc75b 4179803
  68. pc             0x398b6c 3771244
  69. cpsr           {
  70.   0x60000010,
  71.   n = 0x0,
  72.   z = 0x1,
  73.   c = 0x1,
  74.   v = 0x0,
  75.   q = 0x0,
  76.   j = 0x0,
  77.   ge = 0x0,
  78.   e = 0x0,
  79.   a = 0x0,
  80.   i = 0x0,
  81.   f = 0x0,
  82.   t = 0x0,
  83.   mode = 0x10
  84. }   {
  85.   0x60000010,
  86.   n = 0,
  87.   z = 1,
  88.   c = 1,
  89.   v = 0,
  90.   q = 0,
  91.   j = 0,
  92.   ge = 0,
  93.   e = 0,
  94.   a = 0,
  95.   i = 0,
  96.   f = 0,
  97.   t = 0,
  98.   mode = usr
  99. }
  100. s0             0    (raw 0x00000000)
  101. s1             0    (raw 0x00000000)
  102. s2             0    (raw 0x00000000)
  103. s3             0    (raw 0x00000000)
  104. s4             0    (raw 0x00000000)
  105. s5             0    (raw 0x00000000)
  106. s6             0    (raw 0x00000000)
  107. s7             0    (raw 0x00000000)
  108. s8             0    (raw 0x00000000)
  109. s9             0    (raw 0x00000000)
  110. s10            0    (raw 0x00000000)
  111. s11            0    (raw 0x00000000)
  112. s12            0    (raw 0x00000000)
  113. s13            0    (raw 0x00000000)
  114. s14            0    (raw 0x00000000)
  115. s15            0    (raw 0x00000000)
  116. s16            0    (raw 0x00000000)
  117. s17            1.75 (raw 0x3fe00000)
  118. s18            0    (raw 0x00000000)
  119. s19            0    (raw 0x00000000)
  120. s20            0    (raw 0x00000000)
  121. s21            0    (raw 0x00000000)
  122. s22            0    (raw 0x00000000)
  123. s23            0    (raw 0x00000000)
  124. s24            0    (raw 0x00000000)
  125. s25            0    (raw 0x00000000)
  126. s26            0    (raw 0x00000000)
  127. s27            0    (raw 0x00000000)
  128. s28            0    (raw 0x00000000)
  129. s29            0    (raw 0x00000000)
  130. s30            0    (raw 0x00000000)
  131. s31            0    (raw 0x00000000)
  132. fpscr          {
  133.   0x63000090,
  134.   n = 0x0,
  135.   z = 0x1,
  136.   c = 0x1,
  137.   v = 0x0,
  138.   dn = 0x1,
  139.   fz = 0x1,
  140.   rmode = 0x0,
  141.   stride = 0x0,
  142.   len = 0x0,
  143.   ide = 0x0,
  144.   ixe = 0x0,
  145.   ufe = 0x0,
  146.   ofe = 0x0,
  147.   dze = 0x0,
  148.   ioe = 0x0,
  149.   idc = 0x1,
  150.   ixc = 0x1,
  151.   ufc = 0x0,
  152.   ofc = 0x0,
  153.   dzc = 0x0,
  154.   ioc = 0x0
  155. }   {
  156.   0x63000090,
  157.   n = 0,
  158.   z = 1,
  159.   c = 1,
  160.   v = 0,
  161.   dn = 1,
  162.   fz = 1,
  163.   rmode = 0,
  164.   stride = 0,
  165.   len = 0,
  166.   ide = 0,
  167.   ixe = 0,
  168.   ufe = 0,
  169.   ofe = 0,
  170.   dze = 0,
  171.   ioe = 0,
  172.   idc = 1,
  173.   ixc = 1,
  174.   ufc = 0,
  175.   ofc = 0,
  176.   dzc = 0,
  177.   ioc = 0
  178. }
  179. d16            1    (raw 0x3ff0000000000000)
  180. d17            4503599627370497 (raw 0x4330000000000001)
  181. d18            -1   (raw 0xbff0000000000000)
  182. d19            2147483647   (raw 0x41dfffffffc00000)
  183. d20            -1   (raw 0xbff0000000000000)
  184. d21            1    (raw 0x3ff0000000000000)
  185. d22            0.084170438349246979 (raw 0x3fb58c31a0000000)
  186. d23            -0.10307344049215317 (raw 0xbfba630560000000)
  187. d24            0    (raw 0x0000000000000000)
  188. d25            0    (raw 0x0000000000000000)
  189. d26            0    (raw 0x0000000000000000)
  190. d27            0    (raw 0x0000000000000000)
  191. d28            0    (raw 0x0000000000000000)
  192. d29            0    (raw 0x0000000000000000)
  193. d30            0    (raw 0x0000000000000000)
  194. d31            0    (raw 0x0000000000000000)
  195. d0             0    (raw 0x0000000000000000)
  196. d1             0    (raw 0x0000000000000000)
  197. d2             0    (raw 0x0000000000000000)
  198. d3             0    (raw 0x0000000000000000)
  199. d4             0    (raw 0x0000000000000000)
  200. d5             0    (raw 0x0000000000000000)
  201. d6             0    (raw 0x0000000000000000)
  202. d7             0    (raw 0x0000000000000000)
  203. d8             0.5  (raw 0x3fe0000000000000)
  204. d9             0    (raw 0x0000000000000000)
  205. d10            0    (raw 0x0000000000000000)
  206. d11            0    (raw 0x0000000000000000)
  207. d12            0    (raw 0x0000000000000000)
  208. d13            0    (raw 0x0000000000000000)
  209. d14            0    (raw 0x0000000000000000)
  210. d15            0    (raw 0x0000000000000000)
  211. q0             {
  212.   uint128 = 0,
  213.   v4_float = {0, 0, 0, 0},
  214.   v4_int32 = {0, 0, 0, 0},
  215.   v8_int16 = {0, 0, 0, 0, 0, 0, 0, 0},
  216.   v16_int8 = {0 <repeats 16 times>}
  217. }   (raw 0x00000000000000000000000000000000)
  218. q1             {
  219.   uint128 = 0,
  220.   v4_float = {0, 0, 0, 0},
  221.   v4_int32 = {0, 0, 0, 0},
  222.   v8_int16 = {0, 0, 0, 0, 0, 0, 0, 0},
  223.   v16_int8 = {0 <repeats 16 times>}
  224. }   (raw 0x00000000000000000000000000000000)
  225. q2             {
  226.   uint128 = 0,
  227.   v4_float = {0, 0, 0, 0},
  228.   v4_int32 = {0, 0, 0, 0},
  229.   v8_int16 = {0, 0, 0, 0, 0, 0, 0, 0},
  230.   v16_int8 = {0 <repeats 16 times>}
  231. }   (raw 0x00000000000000000000000000000000)
  232. q3             {
  233.   uint128 = 0,
  234.   v4_float = {0, 0, 0, 0},
  235.   v4_int32 = {0, 0, 0, 0},
  236.   v8_int16 = {0, 0, 0, 0, 0, 0, 0, 0},
  237.   v16_int8 = {0 <repeats 16 times>}
  238. }   (raw 0x00000000000000000000000000000000)
  239. q4             {
  240.   uint128 = 4602678819172646912,
  241.   v4_float = {0, 1.75, 0, 0},
  242.   v4_int32 = {0, 1071644672, 0, 0},
  243.   v8_int16 = {0, 0, 0, 16352, 0, 0, 0, 0},
  244.   v16_int8 = {0, 0, 0, 0, 0, 0, -32, 63, 0, 0, 0, 0, 0, 0, 0, 0}
  245. }   (raw 0x00000000000000003fe0000000000000)
  246. q5             {
  247.   uint128 = 0,
  248.   v4_float = {0, 0, 0, 0},
  249.   v4_int32 = {0, 0, 0, 0},
  250.   v8_int16 = {0, 0, 0, 0, 0, 0, 0, 0},
  251.   v16_int8 = {0 <repeats 16 times>}
  252. }   (raw 0x00000000000000000000000000000000)
  253. q6             {
  254.   uint128 = 0,
  255.   v4_float = {0, 0, 0, 0},
  256.   v4_int32 = {0, 0, 0, 0},
  257.   v8_int16 = {0, 0, 0, 0, 0, 0, 0, 0},
  258.   v16_int8 = {0 <repeats 16 times>}
  259. }   (raw 0x00000000000000000000000000000000)
  260. q7             {
  261.   uint128 = 0,
  262.   v4_float = {0, 0, 0, 0},
  263.   v4_int32 = {0, 0, 0, 0},
  264.   v8_int16 = {0, 0, 0, 0, 0, 0, 0, 0},
  265.   v16_int8 = {0 <repeats 16 times>}
  266. }   (raw 0x00000000000000000000000000000000)
  267. q8             {
  268.   uint128 = 0x43300000000000013ff0000000000000,
  269.   v4_float = {0, 1.875, 0, 176},
  270.   v4_int32 = {0, 1072693248, 1, 1127219200},
  271.   v8_int16 = {0, 0, 0, 16368, 1, 0, 0, 17200},
  272.   v16_int8 = {0, 0, 0, 0, 0, 0, -16, 63, 1, 0, 0, 0, 0, 0, 48, 67}
  273. }   (raw 0x43300000000000013ff0000000000000)
  274. q9             {
  275.   uint128 = 0x41dfffffffc00000bff0000000000000,
  276.   v4_float = {0, -1.875, -nan(0x400000), 27.9999981},
  277.   v4_int32 = {0, -1074790400, -4194304, 1105199103},
  278.   v8_int16 = {0, 0, 0, -16400, 0, -64, -1, 16863},
  279.   v16_int8 = {0, 0, 0, 0, 0, 0, -16, -65, 0, 0, -64, -1, -1, -1, -33, 65}
  280. }   (raw 0x41dfffffffc00000bff0000000000000)
  281. q10            {
  282.   uint128 = 0x3ff0000000000000bff0000000000000,
  283.   v4_float = {0, -1.875, 0, 1.875},
  284.   v4_int32 = {0, -1074790400, 0, 1072693248},
  285.   v8_int16 = {0, 0, 0, -16400, 0, 0, 0, 16368},
  286.   v16_int8 = {0, 0, 0, 0, 0, 0, -16, -65, 0, 0, 0, 0, 0, 0, -16, 63}
  287. }   (raw 0x3ff0000000000000bff0000000000000)
  288. q11            {
  289.   uint128 = 0xbfba6305600000003fb58c31a0000000,
  290.   v4_float = {-1.08420217e-19, 1.4183408, 3.68934881e+19, -1.45614684},
  291.   v4_int32 = {-1610612736, 1068862513, 1610612736, -1078303995},
  292.   v8_int16 = {0, -24576, -29647, 16309, 0, 24576, 25349, -16454},
  293.   v16_int8 = {0, 0, 0, -96, 49, -116, -75, 63, 0, 0, 0, 96, 5, 99, -70, -65}
  294. }   (raw 0xbfba6305600000003fb58c31a0000000)
  295. q12            {
  296.   uint128 = 0,
  297.   v4_float = {0, 0, 0, 0},
  298.   v4_int32 = {0, 0, 0, 0},
  299.   v8_int16 = {0, 0, 0, 0, 0, 0, 0, 0},
  300.   v16_int8 = {0 <repeats 16 times>}
  301. }   (raw 0x00000000000000000000000000000000)
  302. q13            {
  303.   uint128 = 0,
  304.   v4_float = {0, 0, 0, 0},
  305.   v4_int32 = {0, 0, 0, 0},
  306.   v8_int16 = {0, 0, 0, 0, 0, 0, 0, 0},
  307.   v16_int8 = {0 <repeats 16 times>}
  308. }   (raw 0x00000000000000000000000000000000)
  309. q14            {
  310.   uint128 = 0,
  311.   v4_float = {0, 0, 0, 0},
  312.   v4_int32 = {0, 0, 0, 0},
  313.   v8_int16 = {0, 0, 0, 0, 0, 0, 0, 0},
  314.   v16_int8 = {0 <repeats 16 times>}
  315. }   (raw 0x00000000000000000000000000000000)
  316. q15            {
  317.   uint128 = 0,
  318.   v4_float = {0, 0, 0, 0},
  319.   v4_int32 = {0, 0, 0, 0},
  320.   v8_int16 = {0, 0, 0, 0, 0, 0, 0, 0},
  321.   v16_int8 = {0 <repeats 16 times>}
  322. }   (raw 0x00000000000000000000000000000000)
  323. --
RAW Paste Data