Summary:ASTERISK-14401: System crash
Reporter:has1084 (hasitha)Labels:
Date Opened:2009-06-30 05:34:30Date Closed:2009-09-14 09:28:32
Versions:Frequency of
Environment:Attachments:( 0) all_threads_bt.txt
( 1) bt_full.txt
( 2) bt.txt
Description:We have an Asterisk PBX which runs with FreePBX.  It has got 230 extensions and a queue with 15 static agents.

The problem I am facing is that the service keep crashing very frequently.  
When it crashes it throws following errors..

root@asterisk:~# /usr/sbin/safe_asterisk: line 125: 15317 Segmentation fault      (core dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} >&/dev/${TTY} < /dev/${TTY}
Asterisk ended with exit status 139
Asterisk exited on signal 11.
cat: /var/run/asterisk.pid: No such file or directory
Automatically restarting Asterisk.
mpg123: no process killed

any help on this will be greatly appreciated.
Comments:By: snuffy (snuffy) 2009-06-30 06:28:53

Hasitha, you will need to get a backtrace.
If you have the current core file you can attach a bt that one as a start.

You should follow instructions on doc/backtrace.txt to create a more useful one.

By: has1084 (hasitha) 2009-06-30 07:26:37

I haven't compiled asterisk with 'DONT_OPTIMIZE' option. I'll recompile the asterisk and upload a bt.

By: has1084 (hasitha) 2009-07-02 04:13:40

I've got the core dump but cannot get the backtrace. When I try to open it using gdb it gives me following error.

GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
"/tmp/core.24149": not in executable format: File format not recognized

Any ideas???
thanks in advance

By: David Woolley (davidw) 2009-07-02 07:30:40

gdb /usr/sbin/asterisk /tmp/core.24149

By: has1084 (hasitha) 2009-07-02 08:17:30

Thanks davidw.  I managed to get backtraces.

Please find attached traces.

By: has1084 (hasitha) 2009-07-07 03:54:52

Asterisk has crashed 8 times yesterday and once this morning.

Apparently, this happens only when queues are being used. This system has a queue with 15 dynamic agents and they use 'queue add member' function to login and logout from the queue.

By: Matthew Nicholson (mnicholson) 2009-09-14 09:28:31

This bug should be fixed in asterisk 1.4.24 and above, please reopen if you can reproduce this with the latest release.