• 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: Wed, 13 Apr 2011 14:05:26 -0700

Jonas, thanks for responding.  One little quibble, gdb doesn't guarantee that it will catch all cases of malformed DWARF and error out cleanly.  That would slow down debug info reading - already a too slow part of the debugger.  If the DWARF is actually bad, the answer is to fix the DWARF generator.  If we can figure out a way to protect against the crash w/o slowing down debug reading, we might do that, but handling bad DWARF is not a high priority.  OTOH, it sounds like maybe you have already fixed it ;-)

Alexander, if you can please try the most recent FPC.  If that still causes the same crash, the we'll have to look at a sample project that shows the crash to tell for sure what is going on.

Jim


On Apr 13, 2011, at 1:24 PM, Jonas Maebe wrote:

>
> On 13 Apr 2011, at 16:08, Alexander Bokovikov wrote:
>
>> 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?
>
> GDB crashing is definitely a GDB bug. However, it may be caused by FPC generating invalid debug information, which would also make it an FPC bug. I can't reproduce the problem with FPC 2.4.2 and the gdb from Xcode 3.2.5 though (neither with DWARF nor with Stabs debug info). In case you are using Stabs (-g), you could try switching to DWARF (-gw) and check whether that helps. And if you are not using FPC 2.4.2 yet, you may want to upgrade to that version.
>
>
> Jonas _______________________________________________
> 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

References: 
 >GDB error - exit with status 10 (From: Alexander Bokovikov <email@hidden>)
 >Re: GDB error - exit with status 10 (From: Jim Ingham <email@hidden>)
 >Re: GDB error - exit with status 10 (From: Alexander Bokovikov <email@hidden>)
 >Re: GDB error - exit with status 10 (From: Jonas Maebe <email@hidden>)

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