php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34388 oci_connect returns segmentation fault
Submitted: 2005-09-06 12:59 UTC Modified: 2005-09-06 15:04 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: php at edith dot net Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 5.1.0RC1 OS: Linux Red Hat Enterprise 4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at edith dot net
New email:
PHP Version: OS:

 

 [2005-09-06 12:59 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-06 13:53 UTC] 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 14:54 UTC] 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 15:04 UTC] tony2001@php.net
Not PHP problem, apparently.
Take a look at the bt - Oracle libs conflict with DB2 libs for some reason.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 20:01:35 2025 UTC