Thorolf Godawa
2010-Sep-02 18:26 UTC
[asterisk-users] How to create a coredump for Asterisk
Hi everybody, sometimes we have an Asterisk-crash, but no clue why this is happening, so I'm trying to make a coredump to analyse it. I compiled Asterisk 1.4.20.1 on CentOS 5.4 i386 with "DEBUG_THREADS" and "DONT_OPTIMIZE", then I start it with: # /bin/bash /usr/sbin/safe_asterisk This should do an "ulimit -c unlimited", but I entered it in the terminal again. A # ps -ef | grep asterisk tells me that Asterisk is running as root and with the g-option for writing a coredump: root 21622 1 0 20:15 pts/0 00:00:00 /bin/bash /usr/sbin/safe_asterisk root 21627 21622 1 20:15 pts/0 00:00:00 /usr/sbin/asterisk -f -vvvg -c In the asterisk-start-script, the coredump-dir is configured as: DUMPDROP=/tmp Unfortunately, if I kill all asterisk-processes with "kill -9 ...", a coredump never is writen to "/tmp", I also looked in other dirs. Any idea what is going wrong here? Some links I found, but they do not help me: http://www.asterisk.org/doxygen/trunk/AstDebug.html http://www.voip-info.org/wiki/view/Asterisk+debugging http://man.sourcentral.org/centos5/5+core http://de.w3support.net/index.php?db=so&id=17965 Thanks a lot, -- Chau y hasta luego, Thorolf
Danny Nicholas
2010-Sep-02 18:31 UTC
[asterisk-users] How to create a coredump for Asterisk
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Thorolf Godawa Subject: [asterisk-users] How to create a coredump for Asterisk <snip> Just my opinion, but Asterisk probably isn't going to dump when you kill the process; something internal has to trigger it.
> Unfortunately, if I kill all asterisk-processes with "kill -9 ...", a > coredump never is writen to "/tmp", I also looked in other dirs.Try kill -6 (i.e. SIGABRT). That usually triggers a core dump for me. Luki
Paul Belanger
2010-Sep-03 17:35 UTC
[asterisk-users] How to create a coredump for Asterisk
On Thu, Sep 2, 2010 at 2:26 PM, Thorolf Godawa <nospam at godawa.de> wrote:> Any idea what is going wrong here? >Read doc/backtrace.txt If you cannot get Asterisk to coredump, try running it under gdb to see what is happening. -- Paul Belanger | dCAP Polybeacon | Consultant Jabber: paul.belanger at polybeacon.com | IRC: pabelanger (Freenode) blog.polybeacon.com
Thorolf Godawa
2010-Sep-12 22:56 UTC
[asterisk-users] How to create a coredump for Asterisk
Hi Luki an all others who answered,> Try kill -6 (i.e. SIGABRT). That usually triggers a core dump for me.yes, that works for testing and creates a coredump. Thank you very much for your answer! PS: Running Asterisk under GDB unfortunately is not an option, because it is a production system and it only crashes very, very seldom. Normaly it works for months without problems, but once Asterisk crashed 3 times a day. Now the system works stable since some weeks again and we have no clue why it crashed. -- Chau y hasta luego, Thorolf
On 12 September 2010 23:56, Thorolf Godawa <nospam at godawa.de> wrote:> Hi Luki an all others who answered, > > > Try kill -6 (i.e. SIGABRT). That usually triggers a core dump for me. > yes, that works for testing and creates a coredump. > > Thank you very much for your answer! > > PS: Running Asterisk under GDB unfortunately is not an option, because > it is a production system and it only crashes very, very seldom. Normaly > it works for months without problems, but once Asterisk crashed 3 times > a day. Now the system works stable since some weeks again and we have no > clue why it crashed. > -- > > Chau y hasta luego, > > Thorolf > >Asterisk is a funny beast. I had one site running 1.4.22 for months and we upgraded to 1.4.25 and it was segfault city! Back to .22 and all good again... I really wonder about the quality control on release cycles... *duck*> -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100913/5119ed9b/attachment.htm