Re: Seg Fault when using modules linked both to libpq and libodbcpsql. - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Seg Fault when using modules linked both to libpq and libodbcpsql.
Date
Msg-id 1224.1070470375@sss.pgh.pa.us
Whole thread Raw
In response to Seg Fault when using modules linked both to libpq and libodbcpsql.  (Joseph Tate <jtate+pgsql@dragonstrider.com>)
List pgsql-bugs
Joseph Tate <jtate+pgsql@dragonstrider.com> writes:
> (gdb) where
> #0  0xb69f7987 in CC_send_function () from /usr/lib/libodbcpsql.so.2
> #1  0xb6a06940 in lo_creat () from /usr/lib/libodbcpsql.so.2
> #2  0xb69c6c23 in lo_import () from /usr/lib/libpq.so.3
> #3  0xb69e4121 in zif_pg_lo_import (ht=2, return_value=0x8307424,
>      this_ptr=0x0, return_value_used=1)
>      at /usr/src/debug/php-4.3.2/ext/pgsql/pgsql.c:2099

> I don't know why libpq is calling into the libodbcpsql library.

It's not supposed to do that.

> It appears that somehow that libodbcpsql stuff is interfering with
> libpq.  Are there some symbols that could be clobbering each other?

Looks like a conflict on "lo_creat", to start with ...

            regards, tom lane

pgsql-bugs by date:

Previous
From: Joseph Tate
Date:
Subject: Bug in pg_restore or in postmaster itself?
Next
From: Alvar Freude
Date:
Subject: bytea, index and like operator