Re: GDB error - exit with status 10
Re: GDB error - exit with status 10
- Subject: Re: GDB error - exit with status 10
- From: Alexander Bokovikov <email@hidden>
- Date: Wed, 13 Apr 2011 20:08:48 +0600
Thank you, Jim,
I've tried it, but had not more info than before. GDB log is terminated on
the .dSYM file reading without any detailed information about what
particular data reading produced the error:
=================><8=================
Reading symbols from <My app's binary here>...Reading symbols from
<...../build/Debug/MyApp.app.dSYM/Contents/Resources/DWARF/MyApp>...
The Debugger has exited due to signal 10 (SIGBUS).The Debugger has exited
due to signal 10 (SIGBUS).
=================><8=================
Then I've tried to find a difference between the "old" and "new" project
sources, and I've found the reason. I'm using a FPC static library in my
XCode project. This library is built, as a target, then is linked with main
ObjC code. The problem is in the FPC code.
This code doesn't work:
const
MyTypedConst : string = 'Some string';
This code works OK:
const
MyTypedConst : string[80] = 'Some string';
I don't know where is the problem. Is it in the GDB or is it in the
FreePascal compiler?
Compilation is going OK. None of errors/warnings appear.
Best regards,
Alexander
----- Original Message -----
From: "Jim Ingham" <email@hidden>
To: "Alexander Bokovikov" <email@hidden>
Cc: <email@hidden>
Sent: Wednesday, April 13, 2011 1:06 AM
Subject: Re: GDB error - exit with status 10
gdb seems to be having trouble reading some of the DWARF information in
your project.
You can narrow this down by putting:
set verbose on
in ~/.gdbinit then rerunning the debugging session. Look in the console
and gdb will write out the name of each .o file as it is ingesting it.
The last one you see before this crash will be the one that is causing the
problem. Once you locate the offending .o file, if you don't mind sharing
that with us, then please file a bug and include the .o file that is
causing the problem and we'll take a look.
You might try switching compilers to see if the compiler is causing the
problem. That way at least you'll have a way to work around it till we
figure out what is going wrong.
Jim
On Apr 12, 2011, at 11:36 AM, Alexander Bokovikov wrote:
Hello,
I'm sorry if this is something known, but I can't find anything about
this situation.
I have OS X 10.5.8, XCode 3.1.4 and GDB 6.3.50. I just can't imagin what
I might touch in the system, but now it fails to start the debugging
process in the Debug target (though starts it in Release target) . I
didn't change anything in targets options since last successful session.
Of course, I changed the project source code itself.
Here are lines from crashreport:
Process: gdb-i386-apple-darwin [4719]
Path: /Developer/usr/libexec/gdb/gdb-i386-apple-darwin
Identifier: gdb-i386-apple-darwin
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: Xcode [1602]
Date/Time: 2011-04-12 23:09:11.420 +0600
OS Version: Mac OS X 10.5.8 (9L30)
Report Version: 6
Anonymous UUID: 6082EA69-A486-4C0A-8D0A-40EC70D1129F
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000010
Crashed Thread: 0
Thread 0 Crashed:
0 gdb-i386-apple-darwin 0x000ce442 dwarf_decode_lines + 606
1 gdb-i386-apple-darwin 0x000d0a40 dwarf2_build_psymtabs +
3456
2 gdb-i386-apple-darwin 0x00163aed macho_symfile_read + 325
3 gdb-i386-apple-darwin 0x0005222d syms_from_objfile + 1581
4 gdb-i386-apple-darwin 0x000561bb
symbol_file_add_with_addrs_or_offsets_using_objfile + 824
5 gdb-i386-apple-darwin 0x0005615d
symbol_file_add_with_addrs_or_offsets_using_objfile + 730
6 gdb-i386-apple-darwin 0x0005639d
symbol_file_add_name_with_addrs_or_offsets + 122
7 gdb-i386-apple-darwin 0x00056e0a symbol_file_add_main_1 +
242
8 gdb-i386-apple-darwin 0x00056f2c symbol_file_command + 217
9 gdb-i386-apple-darwin 0x000a468b file_command + 51
10 gdb-i386-apple-darwin 0x0011ef47 execute_command + 715
11 gdb-i386-apple-darwin 0x00016979 mi_execute_cli_command +
151
12 gdb-i386-apple-darwin 0x0001743e captured_mi_execute_command
+ 388
13 gdb-i386-apple-darwin 0x0007a99a catch_exception + 65
14 gdb-i386-apple-darwin 0x00016f63 mi_execute_command + 169
15 gdb-i386-apple-darwin 0x0001710b mi_execute_command_wrapper
+ 48
16 gdb-i386-apple-darwin 0x0008002d handle_file_event + 345
17 gdb-i386-apple-darwin 0x0007fbfa process_event + 129
18 gdb-i386-apple-darwin 0x00080abd gdb_do_one_event + 1130
19 gdb-i386-apple-darwin 0x0007abba catch_errors + 77
20 gdb-i386-apple-darwin 0x0007fc59 start_event_loop + 82
21 gdb-i386-apple-darwin 0x0007b946 captured_command_loop + 18
22 gdb-i386-apple-darwin 0x0007abba catch_errors + 77
23 gdb-i386-apple-darwin 0x0007cdf0 captured_main + 5231
24 gdb-i386-apple-darwin 0x0007abba catch_errors + 77
25 gdb-i386-apple-darwin 0x0007ce31 gdb_main + 63
26 gdb-i386-apple-darwin 0x00002126 main + 52
27 gdb-i386-apple-darwin 0x000020c6 start + 54
I tried two of my "old" XCode projects and I'm getting the same situation
everywhere now. "Debug" target fails, but "Release" target is OK.
Please anybody help!
Best regards,
Alexander
_______________________________________________
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
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