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

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Jul 18 12:32:48 CDT 2007


The following issue requires your FEEDBACK. 
====================================================================== 
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:                     feedback
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-18-2007 12:32 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.


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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-18-07 12:32  file           Status                   new => feedback     
======================================================================




More information about the asterisk-bugs mailing list