Re: Segfault - Mailing list pgsql-odbc

From Tom Lane
Subject Re: Segfault
Date
Msg-id 6838.1066777036@sss.pgh.pa.us
Whole thread Raw
In response to Segfault  (Oliver Elphick <olly@lfix.co.uk>)
List pgsql-odbc
Oliver Elphick <olly@lfix.co.uk> writes:
> I have not been able to trace the program because I haven't yet worked
> out how to set breakpoints in a module loaded after the run command in
> gdb.

Set a breakpoint somewhere after the module will be loaded.  Once the
module has been loaded, you can tell gdb about it with

    gdb> sharedlibrary path-to-.so-file

Then you'll be able to set a breakpoint in the shared library.
(An annoyance here is that you can't restart the program from scratch
without losing this work and having to redo it.  Grumble.)

At least, that works for me on HP-UX.  I assume it's the same on all
gdb platforms ...

            regards, tom lane

pgsql-odbc by date:

Previous
From: Oliver Elphick
Date:
Subject: Segfault
Next
From: "Dave Page"
Date:
Subject: psqlODBC 07.03.0200 Released