Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X04yh-0000fP-K8 for pgsql-odbc@arkaria.postgresql.org; Thu, 26 Jun 2014 08:24:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X04yh-0007QZ-42 for pgsql-odbc@arkaria.postgresql.org; Thu, 26 Jun 2014 08:24:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X04yg-0007QG-GE for pgsql-odbc@postgresql.org; Thu, 26 Jun 2014 08:24:18 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1X04yb-0004Sg-SZ for pgsql-odbc@postgresql.org; Thu, 26 Jun 2014 08:24:17 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 83346288E7; Thu, 26 Jun 2014 01:24:09 -0700 (PDT) Received: from EX13-CAS-002.vmware.com (EX13-CAS-002.vmware.com [10.113.191.52]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id 7D3F54124A; Thu, 26 Jun 2014 01:24:09 -0700 (PDT) Received: from EX13-MBX-024.vmware.com (10.113.191.44) by EX13-MBX-010.vmware.com (10.113.191.30) with Microsoft SMTP Server (TLS) id 15.0.775.38; Thu, 26 Jun 2014 01:24:09 -0700 Received: from [192.168.1.90] (10.113.160.246) by EX13-MBX-024.vmware.com (10.113.191.44) with Microsoft SMTP Server (TLS) id 15.0.775.38; Thu, 26 Jun 2014 01:23:53 -0700 Message-ID: <53ABD889.7010900@vmware.com> Date: Thu, 26 Jun 2014 11:23:37 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 MIME-Version: 1.0 To: "Itnal, Prakash (NSN - IN/Bangalore)" , "pgsql-odbc@postgresql.org" Subject: Re: Not sure if this crash is in psql odbc driver? References: <6C8E163ED7EF5846B2F44CDBC63300110B3E96FA@SGSIMBX002.nsn-intra.net> <53A7DFE6.4060800@vmware.com> <6C8E163ED7EF5846B2F44CDBC63300110B3EB4A4@SGSIMBX002.nsn-intra.net> In-Reply-To: <6C8E163ED7EF5846B2F44CDBC63300110B3EB4A4@SGSIMBX002.nsn-intra.net> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.113.160.246] X-ClientProxiedBy: EX13-CAS-013.vmware.com (10.113.191.65) To EX13-MBX-024.vmware.com (10.113.191.44) X-Pg-Spam-Score: -6.9 (------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org Oh, that came from a libc assertion free(). Did it print out an error message with more details? Seems to be some sort of memory corruption, that explains why you're seeing crashes at random places. I'd suggest running the test program with Valgrind, to see if it finds the issue. If it's a driver bug, I think we'll need to see a self-contained test program to reproduce it, otherwise it'll be impossible to track it down. On 06/26/2014 08:16 AM, Itnal, Prakash (NSN - IN/Bangalore) wrote: > Please find the backtrace with debug enabled psqlODBC driver. This time we encountered abort. The requested table has only one row. > > > Thread 1 (LWP 7326): > #0 0x000000556380aff0 in raise () from /lib64/libc.so.6 > No symbol table info available. > #1 0x000000556380f8fc in abort () from /lib64/libc.so.6 > No symbol table info available. > #2 0x00000055638459e4 in __libc_message () from /lib64/libc.so.6 > No symbol table info available. > #3 0x0000005563851ec4 in malloc_printerr () from /lib64/libc.so.6 > No symbol table info available. > #4 0x0000005563856f04 in free () from /lib64/libc.so.6 > No symbol table info available. > #5 0x0000005581d8d200 in QR_free_memory (self=0x5563951a70) at qresult.c:463 > num_backend_rows = 366742936192 > num_fields = 0 > #6 0x0000005581d8c6f0 in QR_close_result (self=0x5563951a70, destroy=1) at qresult.c:273 > conn = 0x120f80cd0 > next = 0x5581d8c8a4 > top = 1 > #7 0x0000005581d8c8c8 in QR_Destructor (self=0x5563951a70) at qresult.c:327 > No locals. > #8 0x0000005581dafc04 in SC_recycle_statement (self=0x120dbbdc0) at statement.c:886 > func = 0x5581dee0b8 "SC_recycle_statement" > conn = 0x120f709e0 > res = 0x5563951a70 > #9 0x0000005581daf924 in SC_initialize_and_recycle (self=0x120dbbdc0) at statement.c:802 > No locals. > #10 0x0000005581d7b76c in PGAPI_ExecDirect (hstmt=0x120dbbdc0, szSqlStr=0x55930762a8 "SELECT wbts_id FROM act_wbts WHERE wbts_id=130", cbSqlStr=-3, flag=1) at execute.c:161 > stmt = 0x120dbbdc0 > result = 0 > func = 0x5581de5e10 "PGAPI_ExecDirect" > conn = 0x120f709e0 > #11 0x0000005581dc129c in SQLExecDirect (StatementHandle=0x120dbbdc0, StatementText=0x55930762a8 "SELECT wbts_id FROM act_wbts WHERE wbts_id=130", TextLength=-3) at odbcapi.c:364 > func = 0x5581def670 "SQLExecDirect" > ret = 0 > stmt = 0x120dbbdc0 > flag = 1 > #12 0x0000005563d69858 in SQLExecDirect () from /usr/lib64/libodbc.so.2 > No symbol table info available. > #13 0x00000055631136b4 in db_ExecDirect1 (stmt1=0x5593076250, query=0x55930762a8 "SELECT wbts_id FROM act_wbts WHERE wbts_id=130") at ../src/db_utilityqx.c:923 > > -- > Regards, > Prakash I. > > > -----Original Message----- > From: ext Heikki Linnakangas [mailto:hlinnakangas@vmware.com] > Sent: Monday, June 23, 2014 1:36 PM > To: Itnal, Prakash (NSN - IN/Bangalore); pgsql-odbc@postgresql.org > Subject: Re: [ODBC] Not sure if this crash is in psql odbc driver? > > On 06/23/2014 08:50 AM, Itnal, Prakash (NSN - IN/Bangalore) wrote: >> Hi, >> >> We encountered a crash that points to psql odbc driver. The crash is >> not at fixed at same point but it always points to psql-odbc driver. It >> is at same two places shown below. Kindly let me know if this is really >> an issue in psql code! > > Could be, but it's impossible to track it down without more information. > For starters, if you could try with a debug-enabled build of the driver, > so that we could see line number information and local variables in the > backtrace, that would help. > > If you can reduce the test to a small self-contained test case that > reproduces the crash, that would be best. Can you provide more details > on the application and how it uses the driver? Is it multi-threaded? > What ODBC functions does it call? What config options are you using? > > - Heikki > -- - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc