Mark Michelson schrieb:
> Ken D'Ambrosio wrote:
>> Asterisk segfaulted on me the other day; how do I tell it to generate a
>> core file so -- if it happens again -- I can attempt to debug?  I looked
>> in the obvious places in "make menuconfig" and didn't see anything
>> appropriate.
>>
>> Thanks,
>>
>> -Ken
>>
>>
> 
> Run Asterisk with the -g option and it will dump a core file if it should 
> crash.

If you also want to specify the location/file name this can be useful 
too (man core)

echo "/tmp/core.%p" > /proc/sys/kernel/core_pattern

klaus

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

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

Reply via email to