dbTalk Databases Forums  

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

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] Seg Fault when using modules linked both to libpq and libodbcpsql. in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Joseph Tate
 
Posts: n/a

Default [BUGS] Seg Fault when using modules linked both to libpq and libodbcpsql. - 12-04-2003 , 01:32 PM






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


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.