Re: PHP 4.0 Bug #5687 Updated: Segmentation fault

From: Date: Thu, 19 Oct 2000 01:24:37 +0000
Subject: Re: PHP 4.0 Bug #5687 Updated: Segmentation fault
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-35480@lists.php.net to get a copy of this message
Hi, Sorry for the late reply. You mails for unknown reason were kept in a different mailbox by my mail filtering program. I would like to let you know that my problem was solved with Rethat 6.2. > > No feedback. And please use only --with-oracle OR > --with-oci8 at configure. The development team want to have both Oracle 7 and Oracle 8i support and it is not sure it --with-oci8 is enough. > --------------------------------------------------------------------------- > > [2000-08-23 05:51:30] 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 ?? Yes I tried that. The apache simply could not start and there were no messages logged in any log files. Regards, TM Lam Department of Systems Eng. & Eng. Management The Chinese University of Hong Kong > > --Jani > > > --------------------------------------------------------------------------- > > [2000-07-20 06:27:45] tmlam@se.cuhk.edu.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); > ?> > > ------------------------------------------- > > --------------------------------------------------------------------------- > > > Full Bug description available at: http://bugs.php.net/?id=5687

« previous php.dev (#35480) next »