[Qt-creator] GDB error with Qt creator
Poenitz Andre
Andre.Poenitz at digia.com
Tue Nov 19 13:16:10 CET 2013
Spandan Sharma wrote:
> I am not being able to debug my c++ code because the debugger shows the error
> message saying it quit unexpectedly with error code 1.
> [...] Config: Qt Creator: 2.7.2 (based on Qt 5.1.0 - 64 bit) Qt 5.1.0 OS: Mac
> Compiler: Clang 3.2
> [...] "GNU gdb 6.3.50-20050815 (Apple version gdb-1824) (Wed Feb 6 22:51:23 UTC 2013)\n"
Is that the "standard" configuration on the system?
> dUNEXPECTED GDB STDERR: gdb stack crawl at point of internal error:
> dUNEXPECTED GDB STDERR: 0 gdb-i386-apple-darwin 0x000000010b315f31 internal_vproblem + 174
> dUNEXPECTED GDB STDERR: 1 gdb-i386-apple-darwin 0x000000010b315e79 internal_verror + 30
> dUNEXPECTED GDB STDERR: 2 gdb-i386-apple-darwin 0x000000010b315579 do_cleanups + 0
> dUNEXPECTED GDB STDERR: 3 gdb-i386-apple-darwin 0x000000010b318e86 hex_string_custom + 0
> dUNEXPECTED GDB STDERR: 4 gdb-i386-apple-darwin 0x000000010b35287b macho_symfile_read + 1244
> dUNEXPECTED GDB STDERR: 5 gdb-i386-apple-darwin 0x000000010b25f161 syms_from_objfile + 1270
> d6 gdb-i386-apple-darwin 0x000000010b25ff3a symbol_file_add_with_addrs_or_offsets_using_objfile + 744
> dUNEXPECTED GDB STDERR: 7 gdb-i386-apple-darwin 0x000000010b2606b5 symbol_file_add_main_1 + 227
> d8 gdb-i386-apple-darwin 0x000000010b260852 symbol_file_command + 134
> dUNEXPECTED GDB STDERR: 9 gdb-i386-apple-darwin 0x000000010b2a94af file_command + 29
> dUNEXPECTED GDB STDERR: 10 gdb-i386-apple-darwin 0x000000010b313862 execute_command + 479
> dUNEXPECTED GDB STDERR: 11 gdb-i386-apple-darwin 0x000000010b22c423 mi_execute_cli_command + 124
> d12 gdb-i386-apple-darwin 0x000000010b22b6b5 captured_mi_execute_command + 490
> dUNEXPECTED GDB STDERR: 13 gdb-i386-apple-darwin 0x000000010b28500a catch_exception + 174
> dUNEXPECTED GDB STDERR: 14 gdb-i386-apple-darwin 0x000000010b22b39d mi_execute_command + 174
> >~"/SourceCache/gdb/gdb-1824/src/gdb/macosx/machoread.c:739: internal-error: assertion failure in function \"int macho_read_indirect_symbols(bfd *, struct > bfd_mach_o_dysymtab_command *, struct bfd_mach_o_symtab_command *,
> struct objfile *)\": (strlen (sname) + sizeof (\"dyld_stub_\") + 1) < 4096\n\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable.\n"
It's GDB crashing in symbol reading, not much Qt Creator can do here.
> What is the way out?
You could try other compiler/debugger combinations (note that for LLDB you'd need
at least Creator from current 3.0 branch), perhaps tweaking some compiler settings
like optimization flags can avoid the crash.
Andre'
More information about the Qt-creator
mailing list