iODBC icon indicating copy to clipboard operation
iODBC copied to clipboard

Deadlock during SQLDriverConnect()

Open aleksei-i opened this issue 2 years ago • 1 comments

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: Screenshot 2023-12-14 at 12 18 54 PM

aleksei-i avatar Dec 14 '23 20:12 aleksei-i

Development are looking into this ...

pkleef avatar Dec 15 '23 10:12 pkleef