[Asterisk-bugs] [Asterisk 0010219]: Segmentation fault at channel.c:3275

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Jul 17 11:07:45 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10219 
====================================================================== 
Reported By:                rajeshcr
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   10219
Category:                   Core/Channels
Reproducibility:            random
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:            1.2.14  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        No 
Request Review:              
====================================================================== 
Date Submitted:             07-17-2007 11:01 CDT
Last Modified:              07-17-2007 11:07 CDT
====================================================================== 
Summary:                    Segmentation fault at channel.c:3275
Description: 

Hello,

Sometimes asterisk while getting channel information from the cli results
in seg fault crash. So far it happened two times with a gap of nearly a
month.

Every minute i run the cli command "show channels" and fetch the total
number of active channels and calls for displaying purpose.

Occasionally asterisk crashes while getting this channel information. The
gdb output showed it happened at channel.c:3275

The function at this location of channel.c is ast_bridged_channel and the
line is,

        if (bridged && bridged->tech->bridged_channel)
                bridged = bridged->tech->bridged_channel(chan, bridged);

When i investigated the problem with gdb & asterisk's core dump during
first crash,

the bridged->tech was null (0x0) and while accessing
bridged->tech->bridged_channel got "Cannot access memory at address 0xb0"


In the second time crash (happened today),
bridged->tech was not null
(gdb) print bridged->tech
$15 = (const struct ast_channel_tech *) 0xa6b636174

But when tried to access bridged->tech->bridged_channel got similar error
message,
"Cannot access memory at address 0xa6b636224"


Can anyone help me in solving this problem?


Thanks in advance
-Rajesh.


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

---------------------------------------------------------------------- 
 qwell - 07-17-07 11:07  
---------------------------------------------------------------------- 
Can you please try to reproduce with the latest version of Asterisk? 
1.2.14 is quite old now. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-17-07 11:07  qwell          Note Added: 0067441                          
======================================================================




More information about the asterisk-bugs mailing list