[Bug gdb/21240] arm-none-eabi-gdb crashes on start

qiyao at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Fri Apr 7 13:42:00 GMT 2017


https://sourceware.org/bugzilla/show_bug.cgi?id=21240

--- Comment #7 from Yao Qi <qiyao at gcc dot gnu.org> ---
Reproduced on GDB mainline as well.
(gdb) abc
Process 40992 stopped
* thread #1: tid = 0x1f03, 0x00007fff8b71382a libsystem_kernel.dylib`__kill +
10, stop reason = signal SIGABRT
    frame #0: 0x00007fff8b71382a libsystem_kernel.dylib`__kill + 10
libsystem_kernel.dylib`__kill + 10:
-> 0x7fff8b71382a:  jae    0x00007fff8b713831       ; __kill + 17
   0x7fff8b71382c:  jmpq   0x00007fff8b714ffc       ; cerror
   0x7fff8b713831:  ret    
   0x7fff8b713832:  nop    
(lldb) bt 
* thread #1: tid = 0x1f03, 0x00007fff8b71382a libsystem_kernel.dylib`__kill +
10, stop reason = signal SIGABRT
    frame #0: 0x00007fff8b71382a libsystem_kernel.dylib`__kill + 10
    frame #1: 0x00007fff8ac4ba9c libsystem_c.dylib`abort + 177
    frame #2: 0x00000001003774e1 gdb`uw_init_context_1 + 88 at
unwind-dw2.c:1563
    frame #3: 0x00000001003778d8 gdb`_Unwind_RaiseException + 62 at
unwind.inc:88
    frame #4: 0x000000010033119f gdb`__cxa_throw + 90 at eh_throw.cc:82
    frame #5: 0x0000000100124e7d gdb`throw_exception_cxx + 125 at
common-exceptions.c:303
    frame #6: 0x0000000100124f15 gdb`throw_it + 101 at common-exceptions.c:317
    frame #7: 0x0000000100125156 gdb`throw_verror(errors, char const*,
__va_list_tag*) + 22 at common-exceptions.c:379
    frame #8: 0x00000001002633d4 gdb`verror(char const*, __va_list_tag*) + 20
at utils.c:432
    frame #9: 0x000000010017594c gdb`error(char const*, ...) + 140 at
errors.c:43
    frame #10: 0x000000010037a178 gdb`undef_cmd_error + 86 at cli-decode.c:1464

However, if I remove -static-libgcc from LDFLAGS in GDB build, GDB works fine.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list