[asterisk-dev] asterisk core dumps

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Thu Mar 13 08:06:05 CDT 2008


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



More information about the asterisk-dev mailing list