pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Inoue, Hiroshi <inoue@tpf.co.jp>
To: Jade Koskela <jkoskela0@gmail.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: [PATCH] EXC_BAD_ACCESS in SC_execute
Date: Fri, 29 Aug 2014 08:54:31 +0900
Message-ID: <53FFC137.9030306@tpf.co.jp> (raw)
In-Reply-To: <CAN5Zvqw5M--vSJyrYEoxRx8i=QZJ5pe9csZzfyC_e5EXXTQbqA@mail.gmail.com>
References: <CAN5Zvqw5M--vSJyrYEoxRx8i=QZJ5pe9csZzfyC_e5EXXTQbqA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

Hi Jade,

(2014/08/27 6:25), Jade Koskela wrote:
> Hello,
>
> I am looking into dmp files which we collect when our application
> crashes. Using google breakpad/stackwalking I am generating the
> stacktrace. The crash looks like this:
>
> Crash reason:  EXC_BAD_ACCESS / 0x0000000d
> Crash address: 0x0
>
> Thread 10 (crashed)
>   0  psqlodbcw.so!SC_Execute    + 0x10bd
>
> I couldn't get the source line so I had to dig through the assembly.
> I was able to determine the error is happening on line statement.c line
> 2191 (from the latest version in the repository).

Did you build binaries from the latest git?

> numcols = QR_NumResultCols(tres);
>     (this expands to)
> numcols = tres->fields->num_fields
>
> The crash happens on the dereference of fields. It could be a null
> pointer, I'm not sure because I can't reproduce the error.
> Apparently EXC_BAD_ACCESS can be SIGSEGV or SIGBUS.
> I have generated a patch to handle the null pointer case.

OK I would check whether fields could be null or not.
It would take some time because I don't have much time.

regards,
Hiroshi Inoue


-- 
I am using the free version of SPAMfighter.
SPAMfighter has removed 12430 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len

Do you have a slow PC? Try a Free scan 
http://www.spamfighter.com/SLOW-PCfighter?cid=sigen



-- 
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 (2+ messages)

Message-ID: <53FFC137.9030306@tpf.co.jp>
Permalink:  ../53FFC137.9030306@tpf.co.jp/
Also on:    postgresql.org/message-id/53FFC137.9030306@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, jkoskela0@gmail.com
  Subject: Re: [PATCH] EXC_BAD_ACCESS in SC_execute
  In-Reply-To: <53FFC137.9030306@tpf.co.jp>
  References: <CAN5Zvqw5M--vSJyrYEoxRx8i=QZJ5pe9csZzfyC_e5EXXTQbqA@mail.gmail.com> <53FFC137.9030306@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