NOTE: I’ve already searched multiple times through the forums and been unsuccessful in identifying any other threads that address this specific issue. Therefore, I have created a new thread.
NOTE: I am not a frequent user of forums so I’m still learning the do’s and don’ts of posting.
We have two different Asterisk servers running v1.6 which are randomly crashing. Both are running on very nice hardware – one, a production server running on an HP DL380 G2 (dual processor, 3GB RAM, 18GB RAID1) and the other a lab system running on top-notch workstation tower (Asus mobo w/Intel core 2 duo, 2GB RAM and 80GB drive). Both servers are SIP only (no Digium or other hardware for TDM traffic).
When these events happen, it appears that Asterisk just crashes and the process terminates. The fix has simply been to go in and restart Asterisk (/usr/sbin/asterisk) which seems to work fine until the next time it “randomly” crashes.
I say random because these two systems are both under ZERO user load – one of the systems is a test/development system and the crashes seems to happen randomly in the middle of the day or night. I cannot find/see any rhyme or reason to them.
I also thought it might be related to v1.6.0 so we upgraded one of the systems to v1.6.1 and we continue to see the problem. I’ve copied several of the events from /var/log/asterisk/messages below for everyone to see. Primarily, the Asterisk process seems to crash (die) in function ast_log more than any other function (even though other functions are also listed below).
[May 3 14:23:09] ERROR[24980] /usr/src/asterisk-1.6.0/include/asterisk/utils.h: Memory Allocation Failure in function sip_alloc at line 5807 of chan_sip.c
[May 3 14:23:09] ERROR[24980] /usr/src/asterisk-1.6.0/include/asterisk/utils.h: Memory Allocation Failure in function ast_threadstorage_get at line 186 of /usr/src/asterisk-1.6.0/include/asterisk/threadstorage.h
[May 3 15:09:42] ERROR[24980] /usr/src/asterisk-1.6.0/include/asterisk/utils.h: Memory Allocation Failure in function sip_alloc at line 5807 of chan_sip.c
[May 3 15:09:42] ERROR[24980] /usr/src/asterisk-1.6.0/include/asterisk/utils.h: Memory Allocation Failure in function ast_threadstorage_get at line 186 of /usr/src/asterisk-1.6.0/include/asterisk/threadstorage.h
[May 3 15:09:43] ERROR[24980] /usr/src/asterisk-1.6.0/include/asterisk/utils.h: Memory Allocation Failure in function sip_alloc at line 5807 of chan_sip.c
[May 3 15:09:43] ERROR[24980] /usr/src/asterisk-1.6.0/include/asterisk/utils.h: Memory Allocation Failure in function ast_threadstorage_get at line 186 of /usr/src/asterisk-1.6.0/include/asterisk/threadstorage.h
[May 28 06:52:22] ERROR[3004] /usr/src/asterisk-1.6.0/include/asterisk/utils.h: Memory Allocation Failure in function ast_log at line 1049 of logger.c
[May 28 06:52:33] ERROR[3004] /usr/src/asterisk-1.6.0/include/asterisk/utils.h: Memory Allocation Failure in function ast_log at line 1049 of logger.c
[Jun 6 21:09:57] ERROR[21234] /usr/src/asterisk-1.6.0/include/asterisk/utils.h: Memory Allocation Failure in function ast_log at line 1049 of logger.c
[Jun 26 21:57:19] ERROR[3650] /usr/src/asterisk-1.6.1.0/include/asterisk/utils.h: Memory Allocation Failure in function ast_log at line 1145 of logger.c
[Jul 6 00:42:02] ERROR[16342] /usr/src/asterisk-1.6.1.0/include/asterisk/utils.h: Memory Allocation Failure in function __ao2_alloc at line 309 of astobj2.c
[Jul 6 00:42:14] ERROR[16342] /usr/src/asterisk-1.6.1.0/include/asterisk/utils.h: Memory Allocation Failure in function ast_log at line 1145 of logger.c
[Jul 6 00:42:23] ERROR[16342] /usr/src/asterisk-1.6.1.0/include/asterisk/utils.h: Memory Allocation Failure in function ast_log at line 1145 of logger.c
[Aug 2 21:28:43] ERROR[15799] /usr/src/asterisk-1.6.1.0/include/asterisk/utils.h: Memory Allocation Failure in function ast_event_n
ew at line 936 of event.c
[Aug 2 21:33:44] ERROR[15819] /usr/src/asterisk-1.6.1.0/include/asterisk/utils.h: Memory Allocation Failure in function __ao2_alloc
at line 309 of astobj2.c
[Aug 2 22:38:40] ERROR[15819] /usr/src/asterisk-1.6.1.0/include/asterisk/utils.h: Memory Allocation Failure in function __ao2_alloc
at line 309 of astobj2.c
I would assume it is a hardware problem except that it only seems to crash in function ast_log of utils.h on BOTH hardware boxes and it happens at times when there is NO traffic at all.
Any help that can be offered would be greatly appreciated. We are currently still evaluating Asterisk as an alternative to our current Mitel PBX and this issue is the only thing standing in the way of going live.
Thanks,
CARTER