[unixODBC-dev] [PATCH] Fix for __SQLGetInfo
nick at lurcher.org
Wed Mar 23 17:42:05 GMT 2011
On 23/03/11 17:27, Richard Kettlewell wrote:
> __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-)
> unixODBC-dev mailing list
> unixODBC-dev at mailman.unixodbc.org
Cool, good catch.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the unixODBC-dev