[asterisk-bugs] [Asterisk 0010797]: Segfault in chan_sip.c

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Sep 22 11:49:18 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10797 
====================================================================== 
Reported By:                lucius
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   10797
Category:                   Channels/chan_sip/General
Reproducibility:            random
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.11  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             09-22-2007 04:29 CDT
Last Modified:              09-22-2007 11:49 CDT
====================================================================== 
Summary:                    Segfault in chan_sip.c
Description: 
Asterisk segfault randomize once or twice per month.
I attached gdb output from ast_grap_core script.

My environment:

Asterisk 1.4.11
Slackware 10.2.0 (glibc-2.3.5)
Kernel 2.6.15.4 SMP
Hardware Compaq Proliant 1600

 
====================================================================== 

---------------------------------------------------------------------- 
 lucius - 09-22-07 11:49  
---------------------------------------------------------------------- 
This is my macro

[macro-manydial]
exten => s,1,Dial(${ARG3},${ARG2},${ARG1})
exten => s,2,Goto(s-${DIALSTATUS},1)
exten => s-BUSY,1,Macro(manydial,${ARG1},${ARG2},${ARG4})

and this is example call macro

exten => 70,1,Answer()
exten => 70,2,Macro(manydial,tT,30,SIP/katowice1,SIP/katowice2)
exten => 70,3,VoiceMail(u70 at Oddzialy)
exten => 70,4,Hangup()

I don’t know, why asterisk call this macro recurse to 6 levels deep. 
For me asterisk should call max to 2 levels. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-22-07 11:49  lucius         Note Added: 0070949                          
======================================================================




More information about the asterisk-bugs mailing list