Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id BDA058D31EE for ; Sun, 4 Mar 2012 03:26:00 -0400 (AST) Received: from [46.102.68.3] (helo=server-ibm.byteanywhere.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S45pO-0003IL-LO for pgsql-odbc@postgresql.org; Sun, 04 Mar 2012 07:25:59 +0000 Received: from server-ibm.byteanywhere.com ([192.168.10.11] helo=www.byteanywhere.com) by server-ibm.byteanywhere.com with esmtp (Exim 4.72) (envelope-from ) id 1S45ks-0001ay-HL for pgsql-odbc@postgresql.org; Sun, 04 Mar 2012 09:21:18 +0200 Received: from 24.4.136.46 (SquirrelMail authenticated user marian) by www.byteanywhere.com with HTTP; Sun, 4 Mar 2012 09:21:18 +0200 Message-ID: <5ae6a5ef6bad7ed91cf1c900fc553b5c.squirrel@www.byteanywhere.com> Date: Sun, 4 Mar 2012 09:21:18 +0200 Subject: hang at SQLAllocStmt From: marian@byteanywhere.com To: pgsql-odbc@postgresql.org User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Host-Lookup-Failed: Reverse DNS lookup failed for 46.102.68.3 (deferred) X-Pg-Spam-Score: 1.9 (+) X-Archive-Number: 201203/1 X-Sequence-Number: 10782 Hi, I am running into a death lock with iODBC for function SQLAllocStmt(). The stack in the always the same and it hangs when SQLAllocStmt() is reached. The same code works with unixODBC. Is there any way to baypass that lock ? Anyone seen this problem before ? #0 0x00007f2113f4ec74 in __lll_lock_wait () from /usr/local/thekompany/lib/libpthread.so.0 #1 0x00007f2113f4a179 in _L_lock_953 () from /usr/local/thekompany/lib/libpthread.so.0 #2 0x00007f2113f49f9b in pthread_mutex_lock () from /usr/local/thekompany/lib/libpthread.so.0 #3 0x00007f2116580f72 in SQLAllocStmt (hdbc=0x2dd47c0, phstmt=0x80) at hstmt.c:427 #4 0x00007f2116580a08 in SQLAllocStmt_Internal (hdbc=0x2a03670, phstmt=0x2d91750) at hstmt.c:241 #5 0x00007f2116590d32 in SQLAllocHandle (handleType=3, inputHandle=0x2a03670, outputHandlePtr=0x2d91750) at odbc3.c:276 Thanks, Marian