• 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: GDB error - exit with status 10
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GDB error - exit with status 10


  • Subject: Re: GDB error - exit with status 10
  • From: Jim Ingham <email@hidden>
  • Date: Tue, 12 Apr 2011 12:06:40 -0700

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

  • Follow-Ups:
    • Re: GDB error - exit with status 10
      • From: Alexander Bokovikov <email@hidden>
References: 
 >GDB error - exit with status 10 (From: Alexander Bokovikov <email@hidden>)

  • Prev by Date: GDB error - exit with status 10
  • Next by Date: Re: Shark install location
  • Previous by thread: GDB error - exit with status 10
  • Next by thread: Re: GDB error - exit with status 10
  • Index(es):
    • Date
    • Thread