Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XA6D0-0007Sv-BE for pgsql-odbc@arkaria.postgresql.org; Wed, 23 Jul 2014 23:44:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XA6Cz-0004pw-Qf for pgsql-odbc@arkaria.postgresql.org; Wed, 23 Jul 2014 23:44:29 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XA6Cz-0004po-6A for pgsql-odbc@postgresql.org; Wed, 23 Jul 2014 23:44:29 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by makus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XA6Cv-0005KE-CP for pgsql-odbc@postgresql.org; Wed, 23 Jul 2014 23:44:27 +0000 Received: (qmail 29468 invoked by uid 512); 23 Jul 2014 23:44:22 -0000 Received: from unknown (HELO ?127.0.0.1?) (100.126.1.62) by sd2.tpf-fw-c.co.jp with SMTP; 23 Jul 2014 23:44:22 -0000 Message-ID: <53D048DF.50005@tpf.co.jp> Date: Thu, 24 Jul 2014 08:44:31 +0900 From: "Inoue, Hiroshi" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: "Itnal, Prakash (NSN - IN/Bangalore)" CC: ext Heikki Linnakangas , "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> <53ABD889.7010900@vmware.com> <6C8E163ED7EF5846B2F44CDBC63300110B401E3D@SGSIMBX002.nsn-intra.net> In-Reply-To: <6C8E163ED7EF5846B2F44CDBC63300110B401E3D@SGSIMBX002.nsn-intra.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.5 (/) 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 (2014/07/21 19:43), Itnal, Prakash (NSN - IN/Bangalore) wrote: > Hi, > > Recently we tested this with debug version of psql-odbc driver. Attached is the backtrace. Due security policies I have delete certain sections which are any way not relevant from backtrace. > > ODBC version: Latest ODBC code from trunk > Postgres server version: 9.1 > Unix ODBC: 2.2.14 > Target Architecture: mips-64 > Scenario: Restart (server and client both running on same HW unit) > > > Below is quick summary from backtrace: > > From backtrace: > Thread 1 (LWP 7532): > #0 0x000000555aec5d7c in memcpy () from /lib64/libc.so.6 > No symbol table info available. > #1 0x000000559b99dd08 in copy_and_convert_field (stmt=0x559c076130, field_type=17, atttypmod=-1, valuei=0x559c229c90, fCType=-2, precision=0, rgbValue=0x55a7fd7310, cbValueMax=1252, pcbValue=0x55a7fd7298, pIndicator=0x55a7fd7298) at convert.c:1793 > . > . > ptr = 0x0 What's the value of len? regards. Hiroshi Inoue > . > . > > > From code: > 1788 if (cbValueMax > 0) > 1789 { > 1790 copy_len = (len > cbValueMax) ? cbValueMax : len; > 1791 > 1792 /* Copy the data */ > 1793 memcpy(rgbValueBindRow, ptr, copy_len); > 1794 > 1795 /* Adjust data_left for next time */ > 1796 if (stmt->current_col >= 0) > 1797 pgdc->data_left -= copy_len; > 1798 } > > Since the ptr is 0x0 (NULL), the memcpy is failed. We are not able to debug it fully since we are not fully competent with psqlODBC code base. > > It would be of great help if someone helps to resolve this! > > -- > Regards, > Prakash I. -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc