Re: [PATCH] Fix for __SQLGetInfo
Nick Gorham <[email protected]>
| Newsgroups | gmane.comp.db.unixodbc.devel |
|---|---|
| Message-ID | <[email protected]> |
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 > [email protected] > http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev Cool, good catch. Change applied. -- Nick _______________________________________________ unixODBC-dev mailing list [email protected] http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev