Re: Xcode 2.3 GDB crash when loading plugin
Re: Xcode 2.3 GDB crash when loading plugin
- Subject: Re: Xcode 2.3 GDB crash when loading plugin
- From: Jim Ingham <email@hidden>
- Date: Tue, 30 May 2006 14:28:04 -0700
This is a bug in gdb we mishandle the case where a library has no
data section at all. The short-term workaround is to put something
like:
static int gdb_workaround = 0;
in libraries that cause this crash.
Jim
On May 30, 2006, at 10:14 AM, Steve Baxter wrote:
Has anyone seen gdb crash like this when loading a plugin:
Host Name: Steves-iMac-2431
Date/Time: 2006-05-30 17:59:02.637 +0100
OS Version: 10.4.6 (Build 8I1119)
Report Version: 4
Command: gdb-i386-apple-darwin
Path: /usr/libexec/gdb/gdb-i386-apple-darwin
Parent: Xcode [20206]
Version: ??? (???)
PID: 9776
Thread: 0
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000018
Thread 0 Crashed:
0 gdb-i386-apple-darwin 0x00122fc0 record_minimal_symbol + 1070
1 gdb-i386-apple-darwin 0x00127b9b read_dbx_symtab + 1250
2 gdb-i386-apple-darwin 0x0012a367 dbx_symfile_read + 593
3 gdb-i386-apple-darwin 0x00165dc8 macho_build_psymtabs + 1679
4 gdb-i386-apple-darwin 0x00165f20 macho_symfile_read + 263
5 gdb-i386-apple-darwin 0x0004a4ed syms_from_objfile + 1282
6 gdb-i386-apple-darwin 0x0004e14c
symbol_file_add_with_addrs_or_offsets + 425
7 gdb-i386-apple-darwin 0x0004ebcc symbol_file_add_bfd_helper + 87
8 gdb-i386-apple-darwin 0x00069c0f catch_errors + 76
9 gdb-i386-apple-darwin 0x0004c027 symbol_file_add_bfd_safe + 112
10 gdb-i386-apple-darwin 0x000feaae dyld_load_symfile + 491
11 gdb-i386-apple-darwin 0x000fee1d dyld_load_symfiles + 353
12 gdb-i386-apple-darwin 0x000ff30e dyld_update_shlibs + 112
13 gdb-i386-apple-darwin 0x000f58d3 macosx_dyld_add_libraries + 153
14 gdb-i386-apple-darwin 0x000f93b7 macosx_solib_add + 699
15 gdb-i386-apple-darwin 0x0005ffb4 handle_inferior_event + 7414
16 gdb-i386-apple-darwin 0x00061466 fetch_inferior_event + 292
17 gdb-i386-apple-darwin 0x0006e49b fetch_inferior_event_wrapper
+ 17
18 gdb-i386-apple-darwin 0x00069c0f catch_errors + 76
19 gdb-i386-apple-darwin 0x0006e362 inferior_event_handler + 182
20 gdb-i386-apple-darwin 0x0006c391 handle_file_event + 344
21 gdb-i386-apple-darwin 0x0006bd91 process_event + 132
22 gdb-i386-apple-darwin 0x0006cc6d gdb_do_one_event + 1159
23 gdb-i386-apple-darwin 0x00069c0f catch_errors + 76
24 gdb-i386-apple-darwin 0x0006bdef start_event_loop + 81
25 gdb-i386-apple-darwin 0x0006a941 captured_command_loop + 17
26 gdb-i386-apple-darwin 0x00069c0f catch_errors + 76
27 gdb-i386-apple-darwin 0x0006bc5f captured_main + 4835
28 gdb-i386-apple-darwin 0x00069c0f catch_errors + 76
29 gdb-i386-apple-darwin 0x0006bc9f gdb_main + 62
30 gdb-i386-apple-darwin 0x000025f9 main + 51
31 gdb-i386-apple-darwin 0x0000256e _start + 228
32 gdb-i386-apple-darwin 0x00002489 start + 41
Thread 1:
0 libSystem.B.dylib 0x9002a29c wait4 + 12
1 gdb-i386-apple-darwin 0x00105bf9 macosx_signal_thread + 143
2 libSystem.B.dylib 0x90024a27 _pthread_body + 84
Thread 2:
0 libSystem.B.dylib 0x900107ec read + 12
1 libSystem.B.dylib 0x90024a27 _pthread_body + 84
Thread 0 crashed with i386 Thread State:
eax: 0x00000000 ebx: 0x00122ba0 ecx:0x0000005f edx: 0x067c6000
edi: 0x00000000 esi: 0x00000007 ebp:0xbfffdd18 esp: 0xbfffdc90
ss: 0x0000002f efl: 0x00010202 eip:0x00122fc0 cs: 0x00000027
ds: 0x0000002f es: 0x0000002f fs:0x00000000 gs: 0x00000037
Binary Images Description:
0x1000 - 0x242fff gdb-i386-apple-darwin /usr/libexec/gdb/gdb-
i386-apple-darwin
0x8fe00000 - 0x8fe4bfff dyld 44.17 /usr/lib/dyld
0x90000000 - 0x9016efff libSystem.B.dylib /usr/lib/libSystem.B.dylib
0x901be000 - 0x901c0fff libmathCommon.A.dylib /usr/lib/system/
libmathCommon.A.dylib
0x90bc6000 - 0x90bcdfff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
0x9113f000 - 0x9114dfff libz.1.dylib /usr/lib/libz.1.dylib
0x92a41000 - 0x92b1ffff libxml2.2.dylib /usr/lib/libxml2.2.dylib
0x92b3c000 - 0x92c29fff libiconv.2.dylib /usr/lib/libiconv.2.dylib
0x9416d000 - 0x941aefff libsqlite3.0.dylib /usr/lib/
libsqlite3.0.dylib
0x95d54000 - 0x95d82fff libncurses.5.4.dylib /usr/lib/libncurses.
5.4.dylib
In the debugger console we get:
warning: Can't find LC_SEGMENT.__DATA.__data section in symbol file
The Debugger has exited due to signal 10 (SIGBUS).The Debugger has
exited due to signal 10 (SIGBUS).
This only seems to happen on Intel, and only happens with some of
our plugins (though I can't work out what the pattern is yet). We
are using dwarf debugging format.
Cheers,
Steve.
Steve Baxter
Software Development Manager
Improvision
+44-2476-692229
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden