[Home]

Summary:ASTERISK-10064: [patch] race condition in connection pool allocation
Reporter:Matthew Nicholson (mnicholson)Labels:
Date Opened:2007-08-10 18:06:03Date Closed:2007-08-11 00:10:29
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Resources/res_odbc
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) res_odbc_race1.diff
Description:When a new connection is made and entered into the connection pool for an odbc connection, it is not flagged as used.  This creates the possibility of another thread getting the same connection.  If one of the threads disconnects the connection, the other thread can crash if it is still trying to use it.

****** ADDITIONAL INFORMATION ******

This bug might be in trunk too.
Comments:By: Digium Subversion (svnbot) 2007-08-11 00:05:26

Repository: asterisk
Revision: 79142

------------------------------------------------------------------------
r79142 | tilghman | 2007-08-11 00:05:24 -0500 (Sat, 11 Aug 2007) | 2 lines

Ensure the connection gets marked as used at allocation time (closes issue ASTERISK-10064, report and fix by mnicholson)

------------------------------------------------------------------------

By: Digium Subversion (svnbot) 2007-08-11 00:10:29

Repository: asterisk
Revision: 79147

------------------------------------------------------------------------
r79147 | tilghman | 2007-08-11 00:10:28 -0500 (Sat, 11 Aug 2007) | 10 lines

Merged revisions 79142 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79142 | tilghman | 2007-08-11 00:23:04 -0500 (Sat, 11 Aug 2007) | 2 lines

Ensure the connection gets marked as used at allocation time (closes issue ASTERISK-10064, report and fix by mnicholson)

........

------------------------------------------------------------------------