[asterisk-dev] asterisk core dumps

asterisk Asterisk at isgcom.com
Thu Mar 13 08:31:17 CDT 2008


Always run asterisk with the safe_asterisk script.   It will do a dump
and also restart asterisk for you.


-----Original Message-----
From: asterisk-dev-bounces at lists.digium.com
[mailto:asterisk-dev-bounces at lists.digium.com] On Behalf Of Tilghman
Lesher
Sent: Thursday, March 13, 2008 9:06 AM
To: Asterisk Developers list
Subject: Re: [asterisk-dev] asterisk core dumps

On Thursday 13 March 2008 04:18:01 Tzafrir Cohen wrote:
> Why will asterisk not dump core by defualt? (In the unfortunate event
of a
> segmentation fault or similar)
>
> In most systems there is an explicit system administrator action
needed
> to allow core files: 'ulimit -c unlimited'. So why not enable core
dumps
> by default? Is there any runtime overhead?

Because a dump from an optimized build is not generally useful.
However,
there is a runtime flag to enable core dumps:  -g, which performs the
same
kernel operation as 'ulimit -c unlimited'.

-- 
Tilghman

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev



More information about the asterisk-dev mailing list