[asterisk-bugs] [Asterisk 0012508]: handle_response_peerpoke floods asterisk cli with notices, cli crashes

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Jun 23 20:19:22 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12508 
====================================================================== 
Reported By:                kactus
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12508
Category:                   Channels/chan_sip/Registration
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.0 
SVN Revision (number only!): 114601 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             04-23-2008 22:35 CDT
Last Modified:              06-23-2008 20:19 CDT
====================================================================== 
Summary:                    handle_response_peerpoke floods asterisk cli with
notices, cli crashes
Description: 
Since upgrading asterisk to svn later than 1.6 beta 8 cli is flooded with 

NOTICE[7435]: chan_sip.c:16045 handle_response_peerpoke: Peer 'PEERNAME'
is now Reachable. (71ms / 2000ms)

several times a second. Did not happen with svn releases around the time
of beta 6 and 7 aprox around april 17 (sorry didn't keep the old revision
numbers) or earlier revisions. 

disconnecting phone or rebooting causes:
[Apr 24 11:22:31] NOTICE[7435]: chan_sip.c:19841 sip_poke_noanswer: Peer
'DRA-997896-0043' is now UNREACHABLE!

being spammed in the same fashion.

after running it for a while we end up seeing

[root at voip02 asterisk]# /usr/sbin/safe_asterisk: line 117:  7427
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.
Automatically restarting Asterisk.
mpg123: no process killed

I'll need to recompile for "don't optimise" so I haven't attached a core
debug, let me know if you need it. I will attached the sip info with sip
debug as well.
====================================================================== 

---------------------------------------------------------------------- 
 kactus - 06-23-08 20:19  
---------------------------------------------------------------------- 
Hello Corydon76

I've grabbed the latest trunk svn I'll need to let it run as it sometimes
takes over night before it dies though sometimes it was within 15 min.
Generally the more I tried to do with it the quicker it died. 

It outputs the message anywhere from 2 to 11 times a second. I'd probably
say its a memory leak as I timed it and the box lost 10 MB of free memory
in 6 min but I couldn't see that any process increased by a coresponding
amount (I might have missed it though) Load averages seem to be floating
between 0.12 and 0.30 with one phone registered, baseline with asterisk off
is 0.01.

Of interest as I am writing this it has suddenly stopped. Though
registering a second extension starts the process for that extension. Try
to call between the two however and I receive an error of "[Jun 24
08:55:20] ERROR[43224]: res_config_odbc.c:140 realtime_odbc: No Database
handle available with the name of 'DBNAME' (check res_odbc.conf)" which
kicks off 5 times. 

Checking ODBC show all shows that 5 out of 5 connections are in use (using
ODBC to MSSQL) and rebooting the phone to see what happens throws about 3
dozen No Database Handle errors and then it dies dumping the core.

Disconnected from Asterisk server
Executing last minute cleanups
Asterisk ending (0).


Version is Asterisk SVN-trunk-r124744M

I'll upload the core dump momentarily. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-23-08 20:19  kactus         Note Added: 0089132                          
======================================================================




More information about the asterisk-bugs mailing list