GNU gdb (GDB) 7.5-ubuntu Copyright (C) 2012 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 /build/libunwind-6GNXmP/libunwind-1.0.1/tests/.libs/test-async-sig...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 Starting program: /build/libunwind-6GNXmP/libunwind-1.0.1/tests/.libs/test-async-sig [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [Inferior 1 (process 4674) exited normally] (gdb) run Starting program: /build/libunwind-6GNXmP/libunwind-1.0.1/tests/.libs/test-async-sig [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Program received signal SIGSEGV, Segmentation fault. access_mem (as=, addr=11805916207174113035, val=0x7fffffffc8c8, write=, arg=) at x86_64/Ginit.c:173 173 *val = *(unw_word_t *) addr; (gdb) backtrace full #0 access_mem (as=, addr=11805916207174113035, val=0x7fffffffc8c8, write=, arg=) at x86_64/Ginit.c:173 c = #1 0x00007ffff79c2cd0 in dwarf_get (val=0x7fffffffc8c8, loc=..., c=) at ../include/tdep-x86_64/libunwind_i.h:162 No locals. #2 _ULx86_64_step (cursor=cursor@entry=0x7fffffffcce0) at x86_64/Gstep.c:162 rbp1 = 0 rbp = 11805916207174113035 prev_ip = 41 prev_cfa = 140737488345288 rbp_loc = {val = 11805916207174113035} rsp_loc = {val = 0} rip_loc = {val = 11805916207174113043} c = 0x7fffffffcce0 ret = i = val = #3 0x0000000000400e4d in do_backtrace (may_print=may_print@entry=1, get_proc_name=get_proc_name@entry=1) at test-async-sig.c:110 buf = "\000_init+0x88>\000>\000\061>\000>\000%%%% \322\274\367\377\177\000\000\000\000\000\000\000\000\000\000\300\330\377\377\377\177\000\000\000\330\377\377\377\177\000\000\000\000\000\000\000\000\000\000/test-async-sig\n.0.1/tests/.libsNXmP/libunwind-1ild/libunwind-6G", ' ' , "/bu", ' ' , "0\f@\000\000\000\000\000x\335\377\377\377\177\000\000\001", '\000' , "@\000\000\000\000\000L\024@\000\000\000\000\000\000 `\000\000\000\000\000\002\000\000\000\000\000\000\000fh\337\367\377\177\000\000\210\323\377\377\377\177\000\000S"... name = "\000init", '\000' cursor = {opaque = {140737488342240, 140737349734944, 140737488345288, 41, 0, 16, 0, 0, 140737488342528, 140737488344272, 140737488344264, 140737488344280, 140737488344256, 140737488344240, 140737488344232, 140737488344248, 140737488344288, 140737488344168, 140737488344176, 140737488344184, 140737488344192, 140737488344200, 140737488344208, 140737488344216, 140737488344224, 140737488345280, 140737488343298, 0, 0, 0, 0, 0, 0, 0, 0, 140733193388032, 895, 0, 0, 0, 1, 140737488341296, 0 , 18374686479688335360, 71776119061217280, 2676586395008836901, 2676586395008836901, 0, 0, 71776119061217280, 0, 8313976365278131247, 749683806384123513, 8315180033046884398, 8314323775431603060, 7091318038740162638, 3543598907189063285, 8458438963527707753, 5131338734807644014, 2314885530818453536, 8458374865179648032, 2314885530818453536, 2314885530818453536, 0 , 4677, 8, 582, 140737488346272, 0, 140737347586525, 0, 0, 0, 0, 140737488344688, 140737488344672, 4198853, 140737488345064, 4198844, 140737341713395, 140737341731540, 8314207862079356940, 2, 1, 0, 0, 140737488343360, 4199193, 140737488346488, 140737347602141, 140737488346272, 0, 18446744073709551614, 27, 4301267200, 140737488343304, 4197384, 42, 4199193, 4199169, 4199169}} ip = 41 sp = 140737488345288 off = 136 uc = {uc_flags = 0, uc_link = 0x0, uc_stack = {ss_sp = 0x0, ss_flags = 0, ss_size = 0}, uc_mcontext = {gregs = {0, 140737349734944, 0, 0, 1, 1, 140737488347296, 140737488347553, 140737488341296, 1, -6640827866535438581, 0, 140737488344128, 0, -18924, 140737488341248, 4197684, 3131253403820449596, 7020267661388052528, 4482601670507458153, 3130955496157101568, 3530890695905933360, 4136125455344231221}, fpregs = 0xffff0000ffff037f, __reserved1 = {4294967295, 0, 8064, 0, 0, 0, 0, 0}}, uc_sigmask = {__val = {0 }}, __fpregs_mem = {cwd = 51728, swd = 65535, ftw = 32767, fop = 0, rip = 0, rdp = 0, mxcsr = 0, mxcr_mask = 0, _st = {{significand = {0, 0, 0, 0}, exponent = 0, padding = {0, 0, 0}}, {significand = {0, 0, 0, 0}, exponent = 0, padding = {0, 0, 0}}, {significand = {0, 0, 0, 0}, exponent = 24380, padding = {29811, 29281, 11124}}, {significand = {30768, 14642, 62, 24941}, exponent = 28265, padding = {12331, 26232, 15925}}, {significand = {15872, 27648, 25455, 11123}, exponent = 30768, padding = {26164, 15969, 0}}, {significand = {0, 0, 0, 0}, exponent = 0, padding = {0, 0, 0}}, {significand = {0, 0, 0, 0}, exponent = 0, padding = {0, 0, 0}}, {significand = {0, 0, 0, 0}, exponent = 0, padding = {0, 0, 0}}}, _xmm = {{element = {0, 0, 0, 0}}, {element = {0, 0, 0, 0}}, {element = {0, 0, 0, 0}}, {element = {0, 0, 0, 0}}, {element = {0, 0, 0, 0}}, {element = {0, 0, 0, 0}}, {element = {0, 0, 0, 0}}, {element = {91334400, 3936879718, 0, 0}}, {element = {4156346912, 32767, 4294958456, 32767}}, {element = {4156346912, 32767, 4156346912, 32767}}, {element = {4199344, 0, 4294958240, 32767}}, {element = {4198353, 0, 0, 0}}, {element = {4152036256, 32767, 0, 0}}, {element = {0, 0, 0, 0}}, {element = {2, 0, 0, 0}}, {element = {4199272, 0, 1, 0}}}, padding = {8, 0, 582, 0, 4156346912, 32767, 4156346912, 32767, 4199344, 0, 4294958240, 32767, 0, 0, 4294955216, 32767, 4294958456, 32767, 4156346912, 32767, 4199208, 0, 4294967287, 0}}} ret = depth = 4 #4 0x0000000000400fd1 in sighandler (signal=) at test-async-sig.c:136 No locals. #5 No symbol table info available. #6 0x0000000000400a50 in _ULx86_64_step@plt () No symbol table info available. #7 0x0000000000400e4d in do_backtrace (may_print=may_print@entry=0, get_proc_name=0) at test-async-sig.c:110 buf = "\000_start+0x29>\000main+0xf5>\000\003\000\000\001\000\000\000\252\252\327}\000\000\000\000p\343\377\377\377\177\000\000P\343\377\377\377\177\000\000\300@\377\367\377\177\000\000`\346\377\367\377\177\000\000\b\343\377\367\377\177\000\000\001\000\000\000\000\000\000\000II\336\367\377\177\000\000\000\000\000\000\000\000\000\000\300@\377\367\377\177\000\000\001\000\000\000\377\177\000\000\000\000\000\000\000\000\000\000\001\000\000\000\002\000\000\000\b\343\377\367\377\177\000\000\353\212\275\367\377\177\000\000\377\377\377\377\377\377\377\377\300\343\377\377\377\177\000\000`\220\274\367\377\177\000\000\000\000\000\000\000\000\000\000`\346\377\367\377\177\000\000\260\342\377\377\377\177\000\000\220\342\377\377\377\177\000\000\273\a\274Z\000\000\000\000\260\220\274\367\001", '\000' "\247, \006@\000\000\000\000\000\377\377\377\377", '\000' "\260, \017@\000\000\000\000\000\004\000\000\004\000\000\000\000(i>\367\377\177\000\000\340T\377\367\377\177", '\000' ... name = "_start", '\000' cursor = {opaque = {140737488346272, 140737349734944, 140737488345280, 4197684, 0, 16, 188, 140737488347760, 140737488347856, 140737488345472, 140737488345464, 140737488345480, 140737488345456, 140737488345440, 140737488345432, 140737488345448, 140737488345488, 140737488345368, 140737488345376, 140737488345384, 140737488345392, 140737488345400, 140737488345408, 140737488345416, 140737488345424, 140737488345496, 20274549506, 4197384, 4197426, 0, 0, 6299648, 0, 309237645313, 0, 0, 28, 124554051584, 128849018880, 0, 137438953472, 140737488345328, 154618822691, 167503724582, 0, 0, 0, 40, 1, 140737488347856, 5, 140737351942600, 281479271743488, 4295032833, 140737354093792, 140737354127864, 0, 140737351939330, 0, 140737351948086, 140737354129632, 140737488347744, 140737488347728, 140737488347712, 140737351939280, 140737351925276, 140737354129632, 0, 140737488347248, 1, 2954611200, 140737351927498, 0, 0, 46165800, 140737354117472, 140737347581070, 18446744072585478144, 140737354117472, 0, 140737488347104, 140737351925276, 140737349780708, 4, 140737488347376, 7, 2090266759, 140737351927328, 0, 7, 32660418, 140737341431000, 140737341430948, 140737351925062, 140737341431000, 3, 140737488347472, 7, 267685871, 140737351927328, 140737354114336, 47, 4182591, 140737345363712, 140737345363380, 140737351885840, 140737345363712, 4294969485, 140737488347728, 140737351925276, 140737488347536, 140737351925276, 140737488347600, 140737351925276, 140737488347616, 140737351925276, 140737488347632, 3, 140737488347648, 7, 2111285930, 140737351927328, 0, 42, 32988842, 140737345363712, 140737345363576}} ip = 4197684 sp = 140737488345280 off = 41 uc = {uc_flags = 0, uc_link = 0x7ffff7de283a, uc_stack = {ss_sp = 0x7ffff7ffa520, ss_flags = 3, ss_size = 140737488345728}, uc_mcontext = {gregs = {140737349779136, 4677, 94208, 4294967299, 0, 0, 0, 0, 140737488345328, 0, -6640827866535438581, 51607, 516, 0, 0, 140737488345280, 4197684, 140737488345872, 17592186043123, 6, 140737488344984, 2049, 3284146}, fpregs = 0xffff0000ffff037f, __reserved1 = {4294967295, 0, 8064, 14664, 4096, 32, 1352879183, 484831349}}, uc_sigmask = {__val = {1351385280, 0, 1352108993, 226887863, 140737351953204, 0, 140737347581070, 0, 140737351919674, 140737354114336, 0, 140737354125408, 7, 0, 140737351919947, 4294967296}}, __fpregs_mem = {cwd = 55760, swd = 65535, ftw = 32767, fop = 0, rip = 0, rdp = 3941656, mxcsr = 4294958112, mxcr_mask = 32767, _st = {{significand = {33, 0, 0, 0}, exponent = 6, padding = {0, 1, 0}}, {significand = {0, 0, 0, 0}, exponent = 34963, padding = {63487, 32767, 0}}, {significand = {11, 0, 0, 0}, exponent = 1, padding = {0, 0, 0}}, {significand = {0, 0, 0, 0}, exponent = 0, padding = {0, 0, 0}}, {significand = {0, 0, 0, 0}, exponent = 22936, padding = {63487, 32767, 0}}, {significand = {58752, 65535, 32767, 0}, exponent = 832, padding = {0, 0, 0}}, {significand = {17791, 17996, 258, 1}, exponent = 0, padding = {0, 0, 0}}, {significand = {3, 62, 1, 0}, exponent = 3792, padding = {0, 0, 0}}}, _xmm = {{element = {64, 0, 12744, 0}}, {element = {0, 3670080, 4194313, 1900574}}, {element = {6, 5, 64, 0}}, {element = {64, 0, 64, 0}}, {element = {504, 0, 504, 0}}, {element = {8, 0, 3, 4}}, {element = {6816, 0, 6816, 0}}, {element = {6816, 0, 28, 0}}, {element = {28, 0, 16, 0}}, {element = {1, 5, 0, 0}}, {element = {0, 0, 0, 0}}, {element = {8296, 0, 8296, 0}}, {element = {2097152, 0, 1, 6}}, {element = {11616, 0, 2108768, 0}}, {element = {2108768, 0, 832, 0}}, {element = {968, 0, 2097152, 0}}}, padding = {2, 6, 11656, 0, 2108808, 0, 2108808, 0, 528, 0, 528, 0, 8, 0, 4, 4, 568, 0, 568, 0, 568, 0, 68, 0}}} ret = depth = 0 #8 0x0000000000400bcf in main (argc=, argv=) at test-async-sig.c:182 act = {__sigaction_handler = {sa_handler = 0x400fb0 , sa_sigaction = 0x400fb0 }, sa_mask = {__val = {0 }}, sa_flags = 4, sa_restorer = 0x0} i = 51607 (gdb) info registers rax 0x3 3 rbx 0xa3d70a3d70a3d70b -6640827866535438581 rcx 0x1 1 rdx 0x3 3 rsi 0x7ffff7bd7cc0 140737349778624 rdi 0xa3d70a3d70a3d000 -6640827866535440384 rbp 0x7fffffffc8c8 0x7fffffffc8c8 rsp 0x7fffffffc890 0x7fffffffc890 r8 0x7fffffffcce0 140737488342240 r9 0x1245 4677 r10 0x8 8 r11 0x246 582 r12 0xa3d70a3d70a3d000 -6640827866535440384 r13 0x7ffff7bd7cc0 140737349778624 r14 0x7fffffffd8c8 140737488345288 r15 0x7fffffffd1e1 140737488343521 rip 0x7ffff79c20e2 0x7ffff79c20e2 eflags 0x10246 [ PF ZF IF RF ] cs 0x33 51 ss 0x2b 43 ds 0x0 0 es 0x0 0 fs 0x0 0 gs 0x0 0 (gdb) x/16i $pc => 0x7ffff79c20e2 : mov (%rbx),%rax 0x7ffff79c20e5 : mov %rax,0x0(%rbp) 0x7ffff79c20e9 : xor %eax,%eax 0x7ffff79c20eb : mov 0x8(%rsp),%rbx 0x7ffff79c20f0 : mov 0x10(%rsp),%rbp 0x7ffff79c20f5 : mov 0x18(%rsp),%r12 0x7ffff79c20fa : mov 0x20(%rsp),%r13 0x7ffff79c20ff : add $0x28,%rsp 0x7ffff79c2103 : retq 0x7ffff79c2104 : mov (%rdx),%rax 0x7ffff79c2107 : mov %rax,(%rsi) 0x7ffff79c210a : xor %eax,%eax 0x7ffff79c210c : jmp 0x7ffff79c20eb 0x7ffff79c210e : lea 0x7(%rsi),%rax 0x7ffff79c2112 : mov %rbx,%r12 0x7ffff79c2115 : xor %rsi,%rax (gdb) thread apply all backtrace Thread 1 (Thread 0x7ffff7ff2740 (LWP 4677)): #0 access_mem (as=, addr=11805916207174113035, val=0x7fffffffc8c8, write=, arg=) at x86_64/Ginit.c:173 #1 0x00007ffff79c2cd0 in dwarf_get (val=0x7fffffffc8c8, loc=..., c=) at ../include/tdep-x86_64/libunwind_i.h:162 #2 _ULx86_64_step (cursor=cursor@entry=0x7fffffffcce0) at x86_64/Gstep.c:162 #3 0x0000000000400e4d in do_backtrace (may_print=may_print@entry=1, get_proc_name=get_proc_name@entry=1) at test-async-sig.c:110 #4 0x0000000000400fd1 in sighandler (signal=) at test-async-sig.c:136 #5 #6 0x0000000000400a50 in _ULx86_64_step@plt () #7 0x0000000000400e4d in do_backtrace (may_print=may_print@entry=0, get_proc_name=0) at test-async-sig.c:110 #8 0x0000000000400bcf in main (argc=, argv=) at test-async-sig.c:182 (gdb) quit A debugging session is active. Inferior 1 [process 4677] will be killed. Quit anyway? (y or n)