Seg Fault when using modules linked both to libpq and libodbcpsql.

From: Joseph Tate <jtate(at)dragonNOSPAMstrider(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Seg Fault when using modules linked both to libpq and libodbcpsql.
Date: 2003-12-02 20:18:43
Message-ID: bqis31$1kbi$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-bugs by date

  From Date Subject
Next Message Joseph Tate 2003-12-02 23:41:35 Bug in pg_restore or in postmaster itself?
Previous Message Tom Lane 2003-12-02 16:28:58 Re: Setting time zone commands