Re: Extract information from Mac OS X crashlog
Re: Extract information from Mac OS X crashlog
- Subject: Re: Extract information from Mac OS X crashlog
- From: Jean-Daniel Dupas <email@hidden>
- Date: Thu, 26 Sep 2013 19:07:25 +0200
I didn't follow the whole thread, but did you tried with LLDB ?
Look for 'lldb.macosx.crashlog' at http://lldb.llvm.org/symbolication.html
Note that the slide for a static library, like for the main executable is not necessarily 0.
It is 0 on 32 bit without PIE, but not with PIE or 64 bit (IIRC, any executable on 64 bit is mapped at 0x100000000 and above).
The slide for the main executable (and so static libraries) can be found the same way you get the slide for other binaries: from the "Binary Images" section of the crash log.
Le 26 sept. 2013 à 18:08, Kevin Molcard <email@hidden> a écrit :
> Unfortunately I get the same result by setting manually the dSYM file.
>
> After some more investigation, it seems that it is because I use a static library.
> If I got a crash in a file that is compiled in the application target I can get the line number.
> However if the crash is occuring in a file that is from the static library I always get the "No line number information available for address" message.
>
> If I am not wrong, the static library is not position-independent code so the slide is 0 (right?).
> Should I use some particular flags in the static library target?
>
>
> Kevin
>
>
> On 9/26/13 8:39 AM, Kevin Molcard wrote:
>> Hi,
>> thanks for the information, I will read your document and do some tests.
>> I was not aware of the add-dsym command. I was putting the dSYM file in the same directory than my app.
>>
>> Kevin
>> On 9/25/13 5:37 PM, Jerry Krinock wrote:
>>> On 2013 Sep 25, at 00:45, Kevin Molcard <email@hidden> wrote:
>>>
>>>> Unfortunately, once I have stripped symbols, no matter the value of the|STRIP_STYLE|flag, the product I am not able to get the exact line number. From what I read in the TN, it seems to be possible.
>>> The procedure given in TN2123 assumes that gdb will find the dSYM with Spotlight, which doesn't always work. To fix that, give it your dSYM manually using the add-dsym command.
>>>
>>> For exact details, and other tips I've collected which are not in TN2123, read this…
>>>
>>> https://gist.github.com/jerrykrinock/6701316
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>
> --
> Kevin Molcard
> Sofware Engineer
>
> ARTURIA
> 30, chemin du Vieux Chene
> 38240 Meylan - France
> Tel: +33 438 020 555
> Fax: +33 438 020 525
>
> http://www.arturia.com
>
> _______________________________________________
> 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
-- Jean-Daniel
_______________________________________________
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