• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode 2.3 GDB crash when loading plugin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Wed, 31 May 2006 09:00:08 -0700

On May 31, 2006, at 2:59 AM, Steve Baxter wrote:

Hi Jim,

Thanks for that, the workaround works. For anyone that is interested, I had to use the following to guarantee that it worked in all cases (and prevent the data section getting stripped):

volatile int sGDBWorkaround = 0;

Good point...


Do I need to raise a bug?

No, we already have one, thanks.

Jim


Cheers,

Steve.

On 30 May 2006, at 22:28, Jim Ingham wrote:

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:
40apple.com


This email sent to email@hidden

Steve Baxter Software Development Manager Improvision +44-2476-692229


Jim Ingham Apple Developer Tools



_______________________________________________
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


References: 
 >Xcode 2.3 GDB crash when loading plugin (From: Steve Baxter <email@hidden>)
 >Re: Xcode 2.3 GDB crash when loading plugin (From: Jim Ingham <email@hidden>)
 >Re: Xcode 2.3 GDB crash when loading plugin (From: Steve Baxter <email@hidden>)

  • Prev by Date: Re: bfobserver daemon
  • Next by Date: Re: bfobserver daemon
  • Previous by thread: Re: Xcode 2.3 GDB crash when loading plugin
  • Next by thread: Compilation Phase Missed in Xcode 2.3
  • Index(es):
    • Date
    • Thread