[unixODBC-dev] [PATCH] Fix for __SQLGetInfo

Nick Gorham nick at lurcher.org
Wed Mar 23 17:42:05 GMT 2011

On 23/03/11 17:27, Richard Kettlewell wrote:
> Hi,
> __SQLGetInfo() exits via function_return(), but its callers all expect 
> to call this function too.  The effect is that it unlocks the mutex 
> earlier than expected, and moreover then releases it a second time 
> (possibly after another thread has acquired it).
> The effect is intermittent crashes, at least the extremely 
> thread-heavy program I am working on.
> The attached patch fixes this problem, eliminating the crashes.  I've 
> been running my tests against a patched version all day, so I'm pretty 
> confident that I've improved the situation l-)
> ttfn/rjk
> _______________________________________________
> unixODBC-dev mailing list
> unixODBC-dev at mailman.unixodbc.org
> http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
Cool, good catch.

Change applied.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-dev/attachments/20110323/f22dad06/attachment.html>

More information about the unixODBC-dev mailing list