iODBC
iODBC copied to clipboard
Deadlock during SQLDriverConnect()
We call SQLDriverConnect() which get lock using ENTER_HDBC(). Then the SQLSetConnectOptionW() is called which also get lock using ENTER_HDBC(). The second ENTER_HDBC() cause the deadlock.
The test: CheckBeforeConnect(SQL_ATTR_LOGIN_TIMEOUT, value, value); This function set the connect attribute before connection using SQLSetConnectAttr() and then calls SQLDriverConnect().
Stack trace:
Development are looking into this ...