[asterisk-bugs] [Asterisk 0013784]: segfault in res_odbc.c when rtupdate=yes in sip.conf with MS-SQL ODBC

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Oct 30 19:51:45 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13784 
====================================================================== 
Reported By:                jjotham
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   13784
Category:                   Channels/chan_sip/Registration
Reproducibility:            sometimes
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.6.0 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-10-25 23:25 CDT
Last Modified:              2008-10-30 19:51 CDT
====================================================================== 
Summary:                    segfault in res_odbc.c when rtupdate=yes in sip.conf
with MS-SQL ODBC
Description: 
system registers and updates users inot MS-SQL table sippeers, sipusers
using unixODBC and FreeTDS 0.64
whenever rtupdate is set to yes asterisk crashes after updating several
SIP peers registrations. Crash occurs on call to function SQLFreeHandle in
res_odbc.c
Tested Crash in versions 1.6.01, 1.4.21 and 1.2.30.2

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

---------------------------------------------------------------------- 
 (0094452) jjotham (reporter) - 2008-10-30 19:51
 http://bugs.digium.com/view.php?id=13784#c94452 
---------------------------------------------------------------------- 
here it is:
Here it is:
;;; odbc setup file

; ENV is a global set of environmental variables that will get set.
; Note that all environmental variables can be seen by all connections, ;
so you can't have different values for different connections.
[ENV]
INFORMIXSERVER => my_special_database
INFORMIXDIR => /opt/informix

[sql1]
enabled => yes
dsn => sql1_IPH
pooling => yes
limit => 50
username => 
password =>
pre-connect => yes
; Many databases have a default of '\' to escape special characters.  MS
SQL ; Server does not.
backslash_is_escape => no

[sql1_ast]
enabled => yes
dsn => sql1_ast
pooling => yes
limit => 50
username => 
password =>
pre-connect => yes
; Many databases have a default of '\' to escape special characters.  MS
SQL ; Server does not.
backslash_is_escape => no

[PeletelMobile]
enabled => yes
dsn => sql1_ast_test
pooling => yes
limit => 50
username => 
password =>
pre-connect => yes
; Many databases have a default of '\' to escape special characters.  MS
SQL ; Server does not.
backslash_is_escape => no

[sql1_ast_test]
enabled => yes
dsn => sql1_ast_test
;pooling => no
pooling => yes
limit => 50
username => 
password =>
pre-connect => yes
; Many databases have a default of '\' to escape special characters.  MS
SQL ; Server does not.
backslash_is_escape => no 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-30 19:51 jjotham        Note Added: 0094452                          
======================================================================




More information about the asterisk-bugs mailing list