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

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Dec 17 15:01:24 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:                     new
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-17 09:01 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.

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

---------------------------------------------------------------------- 
 (0129719) bertrand (reporter) - 2010-12-17 09:01
 https://issues.asterisk.org/view.php?id=18495#c129719 
---------------------------------------------------------------------- 
Here is my ODBC function (func_odbc.conf):
[HINTS]
dsn=asterisk
readsql=SELECT `channels` FROM `hints` WHERE
`exten`='${SQL_ESC(${ARG1})}'

Here is my hint extension (extensions.conf):
exten => _XXXX,hint,${ODBC_HINTS(${EXTEN})} 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-12-17 09:01 bertrand       Note Added: 0129719                          
======================================================================




More information about the asterisk-bugs mailing list