[asterisk-bugs] [Asterisk 0019244]: find_table does not take pgsql_lock before using pgsqlConn

Asterisk Bug Tracker noreply at bugs.digium.com
Thu May 5 15:23:44 CDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=19244 
====================================================================== 
Reported By:                byronclark
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   19244
Category:                   Resources/res_config_pgsql
Reproducibility:            sometimes
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:           1.8.3.3 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-05-05 15:23 CDT
Last Modified:              2011-05-05 15:23 CDT
====================================================================== 
Summary:                    find_table does not take pgsql_lock before using
pgsqlConn
Description: 
We saw crashes from a corrupted pgsqlConn when find_table used the
connection when another method (which did lock) used the connection
simultaneously.

The attached patch (against 1.8 svn) adds locking to the find_table
function.

It looks like trunk is still missing the locking in find_table, but the
code there is pretty different.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-05 15:23 byronclark     New Issue                                    
2011-05-05 15:23 byronclark     Asterisk Version          => 1.8.3.3         
2011-05-05 15:23 byronclark     Regression                => No              
2011-05-05 15:23 byronclark     SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list