[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Causing a core dump in GNUstep program
From: |
Andreas Höschler |
Subject: |
Re: Causing a core dump in GNUstep program |
Date: |
Thu, 28 Aug 2014 10:59:08 +0200 |
Hi Wolfgang and Ivan,
On Aug 28, 2014, at 9:39 AM, 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();
> free(-1); even.
>
> If you are unfamiliar with "limits" others are talking about:
>
> $ ulimit -c unlimited
>
> and when done
>
> $ ulimit -c 0
Thanks a lot!! I will give both a try!!
Andreas