[asterisk-bugs] [Asterisk 0011517]: Asterisk 1.4.15 uses 200% of CPU randomly and crashes the machine.

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Dec 11 09:32:00 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11517 
====================================================================== 
Reported By:                ygor
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11517
Category:                   . I did not set the category correctly.
Reproducibility:            random
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.15  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             12-11-2007 06:06 CST
Last Modified:              12-11-2007 09:32 CST
====================================================================== 
Summary:                    Asterisk 1.4.15 uses 200% of CPU randomly and
crashes the machine.
Description: 
I have several Asterisk servers running all over the country and when I
upgraded those servers, they all started to randomly crash.

The unique thing I have detected is that on Core 2 Duo machines the CPU
Usage goes around 200% CPU on top and on Xeon Quad-Core machines I get
around 360% usage of cpu, causing random crashes and completely inutilising
the machine.

Asterisk runs normally and this is a totaly random effect.
====================================================================== 

---------------------------------------------------------------------- 
 ygor - 12-11-07 09:32  
---------------------------------------------------------------------- 
My guess is that it has something to do with MySQL integration or with SIP
packetization....

Ps.: MySQL password is correct, and everything works on database... It
just gets mad before the crash....

Im sending the asterisk log, just before one of those weird Asterisk
deadlocks:



[Dec 11 13:23:51] WARNING[18976] app_addon_sql_mysql.c:
mysql_real_connect(mysql,localhost,root,dbpass,asterisk,...) failed
[Dec 11 13:23:51] WARNING[18976] app_addon_sql_mysql.c: Identifier 0,
identifier_type 1 not found in identifier list
[Dec 11 13:23:51] WARNING[18976] app_addon_sql_mysql.c: aMYSQL_query:
Invalid connection identifier 0 passed in aMYSQL_query
[Dec 11 13:23:51] WARNING[18976] app_addon_sql_mysql.c: Identifier 0,
identifier_type 1 not found in identifier list
[Dec 11 13:23:51] WARNING[18976] app_addon_sql_mysql.c: aMYSQL_query:
Invalid connection identifier 0 passed in aMYSQL_query
[Dec 11 13:23:51] WARNING[18976] app_addon_sql_mysql.c: Identifier 0,
identifier_type 2 not found in identifier list
[Dec 11 13:23:51] WARNING[18976] app_addon_sql_mysql.c: aMYSQL_fetch:
Invalid result identifier 0 passed
[Dec 11 13:23:51] WARNING[18976] app_addon_sql_mysql.c: Identifier 0,
identifier_type 2 not found in identifier list
[Dec 11 13:23:51] WARNING[18976] app_addon_sql_mysql.c: Invalid result
identifier 0 passed in aMYSQL_clear
[Dec 11 13:23:51] WARNING[18976] app_addon_sql_mysql.c: Identifier 0,
identifier_type 1 not found in identifier list
[Dec 11 13:23:51] WARNING[18976] app_addon_sql_mysql.c: Invalid connection
identifier 0 passed in aMYSQL_disconnect
[Dec 11 13:23:51] WARNING[18976] app_realtime.c: The RealTime application
has been deprecated in favor of the REALTIME dialplan function.
[Dec 11 13:23:56] WARNING[18982] app_realtime.c: The RealTime application
has been deprecated in favor of the REALTIME dialplan function.
[Dec 11 13:23:57] WARNING[18982] app_realtime.c: The RealTime application
has been deprecated in favor of the REALTIME dialplan function.
[Dec 11 13:24:03] WARNING[18983] app_realtime.c: The RealTime application
has been deprecated in favor of the REALTIME dialplan function.
[Dec 11 13:24:03] WARNING[18983] app_realtime.c: The RealTime application
has been deprecated in favor of the REALTIME dialplan function.
[Dec 11 13:24:04] WARNING[18984] app_realtime.c: The RealTime application
has been deprecated in favor of the REALTIME dialplan function.
[Dec 11 13:24:04] WARNING[18984] app_realtime.c: The RealTime application
has been deprecated in favor of the REALTIME dialplan function.
[Dec 11 13:24:04] WARNING[18984] app_realtime.c: The RealTime application
has been deprecated in favor of the REALTIME dialplan function.
[Dec 11 13:24:24] WARNING[18097] chan_sip.c: Maximum retries exceeded on
transmission b1a7101f-15e51bf8-f3785e85 at 10.0.0.185 for seqno 2 (Critical
Response)
[Dec 11 13:24:24] WARNING[18097] chan_sip.c: Maximum retries exceeded on
transmission c411eec7-449e391c-76ad550d at 10.0.0.170 for seqno 2 (Critical
Response)
[Dec 11 13:24:24] WARNING[18097] chan_sip.c: Hanging up call
c411eec7-449e391c-76ad550d at 10.0.0.170 - no reply to our critical packet.
[Dec 11 13:24:24] WARNING[18097] chan_sip.c: Maximum retries exceeded on
transmission b1a7101f-15e51bf8-f3785e85 at 10.0.0.185 for seqno 2 (Critical
Response)
[Dec 11 13:24:24] WARNING[18097] chan_sip.c: Maximum retries exceeded on
transmission c411eec7-449e391c-76ad550d at 10.0.0.170 for seqno 2 (Critical
Response)
[Dec 11 13:24:24] WARNING[18097] chan_sip.c: Hanging up call
c411eec7-449e391c-76ad550d at 10.0.0.170 - no reply to our critical packet.
[Dec 11 13:24:24] WARNING[18097] chan_sip.c: Maximum retries exceeded on
transmission b1a7101f-15e51bf8-f3785e85 at 10.0.0.185 for seqno 2 (Critical
Response)
[Dec 11 13:24:24] WARNING[18097] chan_sip.c: Maximum retries exceeded on
transmission c411eec7-449e391c-76ad550d at 10.0.0.170 for seqno 2 (Critical
Response)
[Dec 11 13:24:24] WARNING[18097] chan_sip.c: Hanging up call
c411eec7-449e391c-76ad550d at 10.0.0.170 - no reply to our critical packet.
[Dec 11 13:24:28] WARNING[18990] app_realtime.c: The RealTime application
has been deprecated in favor of the REALTIME dialplan function.
[Dec 11 13:24:29] WARNING[18990] app_realtime.c: The RealTime application
has been deprecated in favor of the REALTIME dialplan function.
[Dec 11 13:24:29] WARNING[18990] app_realtime.c: The RealTime application
has been deprecated in favor of the REALTIME dialplan function.
[Dec 11 13:24:32] WARNING[18097] chan_sip.c: Maximum retries exceeded on
transmission d382480d-e61e7304-4155ec6f at 10.0.0.162 for seqno 2 (Critical
Response)
[Dec 11 13:24:32] WARNING[18097] chan_sip.c: Hanging up call
d382480d-e61e7304-4155ec6f at 10.0.0.162 - no reply to our critical packet.
[Dec 11 13:24:32] WARNING[18097] chan_sip.c: Maximum retries exceeded on
transmission d382480d-e61e7304-4155ec6f at 10.0.0.162 for seqno 2 (Critical
Response)
[Dec 11 13:24:32] WARNING[18097] chan_sip.c: Hanging up call
d382480d-e61e7304-4155ec6f at 10.0.0.162 - no reply to our critical packet.
[Dec 11 13:24:37] NOTICE[18097] chan_sip.c: Peer '6107' is now Reachable.
(9ms / 2000ms)
[Dec 11 13:24:43] WARNING[18993] app_realtime.c: The RealTime application
has been deprecated in favor of the REALTIME dialplan function.
[Dec 11 13:24:44] WARNING[18993] app_realtime.c: The RealTime application
has been deprecated in favor of the REALTIME dialplan function.
[Dec 11 13:24:44] NOTICE[18097] chan_sip.c: Peer '6144' is now Reachable.
(9ms / 2000ms)
[Dec 11 13:24:45] NOTICE[18097] chan_sip.c: Peer '6150' is now Reachable.
(16ms / 2000ms)
[Dec 11 13:24:45] NOTICE[18097] chan_sip.c: Peer '6119' is now Reachable.
(10ms / 2000ms)
[Dec 11 13:24:45] NOTICE[18097] chan_sip.c: Peer '6177' is now Reachable.
(15ms / 2000ms)
[Dec 11 13:24:48] NOTICE[18097] chan_sip.c: Peer '6106' is now Reachable.
(14ms / 2000ms)
[Dec 11 13:24:50] NOTICE[18097] chan_sip.c: Peer '6116' is now Reachable.
(14ms / 2000ms)
[Dec 11 13:24:56] NOTICE[18097] chan_sip.c: Peer '6102' is now Reachable.
(8ms / 2000ms)
[Dec 11 13:24:59] NOTICE[18097] chan_sip.c: Peer '6140' is now Reachable.
(12ms / 2000ms)
[Dec 11 13:25:01] NOTICE[18097] chan_sip.c: Peer '6123' is now Reachable.
(13ms / 2000ms)
[Dec 11 13:25:12] WARNING[18995] app_realtime.c: The RealTime application
has been deprecated in favor of the REALTIME dialplan function.
[Dec 11 13:25:12] WARNING[18995] app_realtime.c: The RealTime application
has been deprecated in favor of the REALTIME dialplan function.
[Dec 11 13:25:37] NOTICE[18097] chan_sip.c: Peer '6141' is now
UNREACHABLE!  Last qualify: 13
[Dec 11 13:25:37] NOTICE[18097] chan_sip.c: Peer '6114' is now
UNREACHABLE!  Last qualify: 12
[Dec 11 13:25:37] NOTICE[18097] chan_sip.c: Peer '6104' is now
UNREACHABLE!  Last qualify: 14
[Dec 11 13:25:37] NOTICE[18097] chan_sip.c: Peer '6122' is now
UNREACHABLE!  Last qualify: 14
[Dec 11 13:25:37] NOTICE[18097] chan_sip.c: Peer '6127' is now
UNREACHABLE!  Last qualify: 12
[Dec 11 13:25:37] NOTICE[18097] chan_sip.c: Peer '6124' is now
UNREACHABLE!  Last qualify: 13
[Dec 11 13:25:37] NOTICE[18097] chan_sip.c: Peer '6108' is now
UNREACHABLE!  Last qualify: 14
[Dec 11 13:25:37] NOTICE[18097] chan_sip.c: Peer '6126' is now
UNREACHABLE!  Last qualify: 13
[Dec 11 13:25:37] NOTICE[18097] chan_sip.c: Peer '6129' is now
UNREACHABLE!  Last qualify: 12
[Dec 11 13:25:37] NOTICE[18097] chan_sip.c: Peer '6134' is now
UNREACHABLE!  Last qualify: 13
[Dec 11 13:25:37] NOTICE[18097] chan_sip.c: Peer '6113' is now
UNREACHABLE!  Last qualify: 13
[Dec 11 13:25:37] NOTICE[18097] chan_sip.c: Peer '6142' is now
UNREACHABLE!  Last qualify: 14 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-11-07 09:32  ygor           Note Added: 0075197                          
======================================================================




More information about the asterisk-bugs mailing list