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 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
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 >asterisk -help Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
On Mon, 2 Mar 2009, 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.man asterisk, read about "-g." Thanks in advance, ------------------------------------------------------------------------ Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
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. Mark Michelson
Hi Ken, If you run "ulimit -c" on the command line and get a "0" output, then you need to run "ulimit -c unlimited" on the command line. -Steve 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 > > >
Eric Wieling, Asteria Solutions Group
2009-Mar-02 17:20 UTC
[asterisk-users] How to generate core dump?
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.There should be a file called something like backtrace.txt that gives you instructions on how to compile with debugging options, generate a coredump when Asteriss crashes, as well as information on how to generate a backtrace to determine where the problem is located. This file would be in the doc/ directory in your Asterisk source. -- Eric Wieling * Asteria Solutions Group * Huntsville, AL Call centers * IVRs * Enterprise PBXs * Conferencing applications 256-705-0277 * http://www.asteriasgi.com/ * sales at asteriasgi.com