php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5687 Segmentation fault
Submitted: 2000-07-20 06:27 UTC Modified: 2000-10-02 22:47 UTC
From: tmlam at se dot cuhk dot edu dot hk Assigned:
Status: Closed Package: Oracle related
PHP Version: 4.0 Release Candidate 2 OS: Redhat 6.1
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: tmlam at se dot cuhk dot edu dot hk
New email:
PHP Version: OS:

 

 [2000-07-20 06:27 UTC] tmlam at se dot cuhk dot edu dot hk
steps in compilations:
----------------------------------------
rm -rf apache_1.3.12
rm -rf mod_ssl-2.6.4-1.3.12
rm -rf php-4.0.1pl2

gzip -dc apache_1.3.12.tar.gz | tar xvf -
gzip -dc mod_ssl-2.6.4-1.3.12.tar.gz | tar xvf -
gzip -dc php-4.0.1pl2.tar.gz | tar xvf -

chown -R root.root apache_1.3.12 mod_ssl-2.6.4-1.3.12 php-4.0.1pl2

cd mod_ssl-2.6.4-1.3.12
./configure --with-apache=../apache_1.3.12

cd ../apache_1.3.12
./configure --prefix=/home/apache_1.3.12

cd ../php-4.0.1pl2
CFLAGS="-O2 -I/usr/local/ssl/include" ./configure --with-apache=../apache_1.3.12 --with-oracle=/u01/app/oracle/product/8.1.5 --with-mysql=/home/mysql  --with-config-file-path=/home/apache_1.3.12/conf --with-ftp --with-x --with-xml --enable-force-cgi-redirect --enable-discard-path --enable-sigchild --with-openssl=/usr/local/ssl --enable-debug=yes --enable-calendar --enable-dba-shared --enable-filepro --with-oci8=/u01/app/oracle/product/8.1.5
gmake
gmake install

cd ../apache_1.3.12
SSL_BASE=/usr/local/ssl ./configure --prefix=/home/apache_1.3.12 --enable-shared=max --enable-module=most --enable-module=ssl --activate-module=src/modules/php4/libphp4.a --enable-module=php4
make
make certificate
make install
-------------------------------------------
gdb's bt output:

Program received signal SIGSEGV, Segmentation fault.
0x817ca8c in ologof ()
(gdb) bt
#0  0x817ca8c in ologof ()
#1  0x807f7c7 in ora_do_logon (ht=2, return_value=0x8210ce4, this_ptr=0x0, return_value_used=1, persistent=0)
    at oracle.c:511
#2  0x807f1e6 in php_if_ora_logon (ht=2, return_value=0x8210ce4, this_ptr=0x0, return_value_used=1) at oracle.c:359
#3  0x80f19a9 in execute (op_array=0x81dd984) at ./zend_execute.c:1558
#4  0x8066e2b in php_execute_script (primary_file=0xbffffa3c) at main.c:1157
#5  0x80d7380 in apache_php_module_main (r=0x81f6964, fd=19, display_source_mode=0) at sapi_apache.c:93
#6  0x8064b1b in send_php ()
#7  0x8064b5c in send_parsed_php ()
#8  0x80fb0d3 in ap_invoke_handler ()
#9  0x810ea79 in process_request_internal ()
#10 0x810eadc in ap_process_request ()
#11 0x81062ee in child_main ()
#12 0x810649c in make_child ()
#13 0x81065f9 in startup_children ()
#14 0x8106c26 in standalone_main ()
#15 0x81073c3 in main ()
#16 0x4063b1eb in __libc_start_main (main=0x810706c <main>, argc=2, argv=0xbffffbf4, init=0x80629ec <_init>, 
    fini=0x8136b4c <_fini>, rtld_fini=0x4000a610 <_dl_fini>, stack_end=0xbffffbec) at ../sysdeps/generic/libc-start.c:90
(gdb) 

-----------------------------------------
the php file being executed:

<?php
$ora_con=ora_logon("xxx/yyy@sid","");
$ora_db=ora_open($ora_con);
$query="SELECT function_id FROM b_function_index";
ora_parse($ora_db,$query);
ora_exec($ora_db);
while(ora_fetch($ora_db))
  echo ora_getcolumn($ora_db,0);
ora_close($ora_db);
ora_logoff($ora_con);
?>

-------------------------------------------

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-23 05:51 UTC] sniper@php.net
Those configure lines you have used confuse me a bit.
why do you configure apache with --enable-shared=max
and still configure php4 as static module? 

Have you tried configuring php4 --with-apxs ??

--Jani

 [2000-10-02 22:47 UTC] sniper@php.net
No feedback. And please use only --with-oracle OR
 --with-oci8 at configure.

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 20:01:30 2025 UTC