[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Causing a core dump in GNUstep program
From: |
Dr. H. Nikolaus Schaller |
Subject: |
Re: Causing a core dump in GNUstep program |
Date: |
Thu, 28 Aug 2014 13:09:25 +0200 |
Am 28.08.2014 um 12:58 schrieb Riccardo Mottola:
> Hi,
>
> Wolfgang Lux wrote:
>> Am 28.08.2014 um 00:58 schrieb Andreas Höschler:
>>
>>> >I am tracking a very hard to catch problem and therefore would like to
>>> >purposely create a core dump via a piece of code in my program when the
>>> >problem reoccurs (might take days or weeks). What line of code can I
>>> >include in my GNUstep Objective-C program to create a core dump on
>>> >purpose? Any idea?
>> abort();
> I'd try that first, especially after the lesson in PC's hihglight code and
> all related statements of the wild optimizations that can happen with illegal
> code!
>
> I couldn't find evidence however that SIGABRT is guaranteed to leave a core
> file.
you can use kill(getpid(), SIGFPE)