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

From Joseph Tate
Subject Seg Fault when using modules linked both to libpq and libodbcpsql.
Date
Msg-id bqis31$1kbi$1@news.hub.org
Whole thread Raw
List pgsql-bugs
I'm not really sure how to go about debugging this, but when I use PHP
to create large objects using libpq, with the php odbc module installed,
I get the following seg fault:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1226627936 (LWP 28034)]
0xb69f7987 in CC_send_function () from /usr/lib/libodbcpsql.so.2
(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
#4  0xb697a542 in zend_assign_to_variable_reference ()
    from /usr/local/Zend/lib/Optimizer-2.1.0/php-4.3.x/ZendOptimizer.so
#5  0x00000002 in ?? ()
#6  0x08307424 in ?? ()

When I don't have the php odbc module installed, no seg fault occurs.
What's my next step in working this out?

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

I'm running postgresql 7.3.4 on RHL 9 with PHP 4.3.2 and Apache 2.0.46

Joseph

pgsql-bugs by date:

Previous
From: Joseph Tate
Date:
Subject: Bug in pg_restore or in postmaster itself?
Next
From: Olaf Hartmann
Date:
Subject: libpq3 + ssl memory leak