pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Inoue, Hiroshi <inoue@tpf.co.jp>
To: Itnal, Prakash (NSN - IN/Bangalore) <prakash.itnal@nsn.com>
Cc: ext Heikki Linnakangas <hlinnakangas@vmware.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: Not sure if this crash is in psql odbc driver?
Date: Thu, 24 Jul 2014 08:44:31 +0900
Message-ID: <53D048DF.50005@tpf.co.jp> (raw)
In-Reply-To: <6C8E163ED7EF5846B2F44CDBC63300110B401E3D@SGSIMBX002.nsn-intra.net>
References: <6C8E163ED7EF5846B2F44CDBC63300110B3E96FA@SGSIMBX002.nsn-intra.net>
	<53A7DFE6.4060800@vmware.com>
	<6C8E163ED7EF5846B2F44CDBC63300110B3EB4A4@SGSIMBX002.nsn-intra.net>
	<53ABD889.7010900@vmware.com>
	<6C8E163ED7EF5846B2F44CDBC63300110B401E3D@SGSIMBX002.nsn-intra.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

(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



view thread (9+ messages)  latest in thread

Message-ID: <53D048DF.50005@tpf.co.jp>
Permalink:  ../53D048DF.50005@tpf.co.jp/
Also on:    postgresql.org/message-id/53D048DF.50005@tpf.co.jp

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: inoue@tpf.co.jp, prakash.itnal@nsn.com, hlinnakangas@vmware.com
  Subject: Re: Not sure if this crash is in psql odbc driver?
  In-Reply-To: <53D048DF.50005@tpf.co.jp>
  References: <6C8E163ED7EF5846B2F44CDBC63300110B3E96FA@SGSIMBX002.nsn-intra.net> <53A7DFE6.4060800@vmware.com> <6C8E163ED7EF5846B2F44CDBC63300110B3EB4A4@SGSIMBX002.nsn-intra.net> <53ABD889.7010900@vmware.com> <6C8E163ED7EF5846B2F44CDBC63300110B401E3D@SGSIMBX002.nsn-intra.net> <53D048DF.50005@tpf.co.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox