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

Asterisk Bug Tracker noreply at bugs.digium.com
Mon May 9 09:35:31 CDT 2011


The following issue has been UPDATED. 
====================================================================== 
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:                     ready for testing
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-09 09:35 CDT
====================================================================== 
Summary:                    [patch] 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-09 09:35 lmadsen        Description Updated                          
======================================================================




More information about the asterisk-bugs mailing list