#34388 [Opn->Bgs]: oci_connect returns segmentation fault

From: Date: Tue, 06 Sep 2005 13:04:33 +0000
Subject: #34388 [Opn->Bgs]: oci_connect returns segmentation fault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-84582@lists.php.net to get a copy of this message
ID: 34388 Updated by: tony2001@php.net Reported By: php at edith dot net -Status: Open +Status: Bogus Bug Type: OCI8 related Operating System: Linux Red Hat Enterprise 4 PHP Version: 5.1.0RC1 New Comment: Not PHP problem, apparently. Take a look at the bt - Oracle libs conflict with DB2 libs for some reason. Previous Comments: ------------------------------------------------------------------------ [2005-09-06 14:54:57] php at edith dot net (gdb) bt #0 0x00000000 in ?? () #1 0x070597e5 in A_SHAUpdateCommon () from /opt/IBM/db2/V8.1/lib/libdb2.so.1 #2 0x07059893 in A_SHAFinalCommon () from /opt/IBM/db2/V8.1/lib/libdb2.so.1 #3 0x07f49b01 in A_X931RandomUpdate () from /opt/sw/app/oracle/product/10.1.0/lib/libnnz10.so #4 0x00dcf7f5 in ztcrbh () from /opt/sw/app/oracle/product/10.1.0/lib/libclntsh.so #5 0x00dcf654 in ztcrbp () from /opt/sw/app/oracle/product/10.1.0/lib/libclntsh.so #6 0x00dcf0df in ztcr2rnd () from /opt/sw/app/oracle/product/10.1.0/lib/libclntsh.so #7 0x00dd0888 in ztvo5pe () from /opt/sw/app/oracle/product/10.1.0/lib/libclntsh.so #8 0x00f2843c in kzsrepw () from /opt/sw/app/oracle/product/10.1.0/lib/libclntsh.so #9 0x00f275e8 in kzsrlcrb () from /opt/sw/app/oracle/product/10.1.0/lib/libclntsh.so #10 0x00c17c5c in upilgn () from /opt/sw/app/oracle/product/10.1.0/lib/libclntsh.so #11 0x00c19181 in upilogc () from /opt/sw/app/oracle/product/10.1.0/lib/libclntsh.so #12 0x00c1906f in upilog () from /opt/sw/app/oracle/product/10.1.0/lib/libclntsh.so #13 0x00bf375c in ocilog () from /opt/sw/app/oracle/product/10.1.0/lib/libclntsh.so #14 0x080cffe7 in ora_do_logon (ht=3, return_value=0x9f7b564, return_value_ptr=0x0, this_ptr=0x0, return_value_used=0, persistent=0) at /usr/local/src/php-5.1.0RC1/ext/oracle/oracle.c:560 #15 0x080d0534 in zif_ora_logon (ht=3, return_value=0x9f7b564, return_value_ptr=0x0, this_ptr=0x0, return_value_used=0) at /usr/local/src/php-5.1.0RC1/ext/oracle/oracle.c:405 #16 0x0822c663 in zend_do_fcall_common_helper_SPEC (execute_data=0xbfea2a80) at zend_vm_execute.h:184 #17 0x0822c0d5 in execute (op_array=0x9f86b1c) at zend_vm_execute.h:87 #18 0x0820cfd2 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/local/src/php-5.1.0RC1/Zend/zend.c:1078 #19 0x081da250 in php_execute_script (primary_file=0xbfea4f30) at /usr/local/src/php-5.1.0RC1/main/main.c:1672 #20 0x0828b133 in main (argc=2, argv=0xbfea4fc4) at /usr/local/src/php-5.1.0RC1/sapi/cli/php_cli.c:1039 ------------------------------------------------------------------------ [2005-09-06 13:53:37] tony2001@php.net Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. ------------------------------------------------------------------------ [2005-09-06 12:59:48] php at edith dot net Description: ------------ I have installed Oracle 10.1.0.3, and i've compiled php with the next configure: ./configure --with-jpeg-dir=/usr/lib/ --with-png-dir=/usr/lib/ --with-zlib-dir=/usr/lib --with-xpm-dir=/usr/lib/ --with-freetype-dir=/usr/lib/ --with-gd=/usr/lib/ --with-apxs2=/www/bin/apxs --with-oracle=/opt/sw/app/oracle/product/10.1.0 --with-oci8=/opt/sw/app/oracle/product/10.1.0 --with-snmp=/usr/local --enable-ftp --with-ibm-db2=/opt/IBM/db2/V8.1 --enable-sigchild --with-xmlrpc And everythings seems ok, but when I try to connect Oracle, i have "Segmentation Fault" My oracle environment variables are: ORACLE_HOME=/opt/sw/app/oracle/product/10.1.0 ORACLE_SID="DATABASE" LD_PRELOAD=$ORACLE_HOME/lib/libclntsh.so LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/src/php-5.1.0RC1/libs:$ORACLE_HOME/l ib NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P15 ORA_NLS10=$ORACLE_HOME/nls/data ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data Reproduce code: --------------- <? oci_connect(USER,PASSWORD,DATABASE); ?> Actual result: -------------- Segmentation Fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34388&edit=1

« previous php.bugs (#84582) next »