[asterisk-bugs] [Asterisk 0018495]: Segmentation fault when using dynamic hints and func_odbc

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Dec 20 15:13:38 UTC 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18495 
====================================================================== 
Reported By:                bertrand
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18495
Category:                   Channels/General
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.8.1.1 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-12-17 08:58 CST
Last Modified:              2010-12-20 09:13 CST
====================================================================== 
Summary:                    Segmentation fault when using dynamic hints and
func_odbc
Description: 
I'm running Debian Squeeze amd64. I'm using asterisk 1.8.1.1 which I
compiled with the following Compiler Flags: DONT_OPTIMIZE and
DEBUG_THREADS.

The crash only occurs when asterisk is launched in background (or with
start-stop-daemon). Asterisk does not crash when it is launched using
options -c, -v, or -f (or with setsid).

Asterisk crash when a SIP client try to subscribe to a dynamic hint. These
dynamic hints works well when asterisk is not running in background.

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

---------------------------------------------------------------------- 
 (0129794) bertrand (reporter) - 2010-12-20 09:13
 https://issues.asterisk.org/view.php?id=18495#c129794 
---------------------------------------------------------------------- 
Sorry, I forgot to attach the thread apply all backtrace. The backtrace
full is in the backtrace.txt.

One fix that might work is to change the comparison of the line 3764 in
channel.c:
from '(chan->tech->read)' to '(chan->tech && chan->tech->read)'.

However, I am not sure if this is normal that chan->tech == NULL. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-12-20 09:13 bertrand       Note Added: 0129794                          
======================================================================




More information about the asterisk-bugs mailing list