ID:               15858
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           Open
 Bug Type:         OCI8 related
 Operating System: UnixWare 7.1.1
 PHP Version:      4.0.6-4.2.1
 New Comment:

In newer snapshot this compile error persists, --disable-mbstring
helps, but compilation then stops at 

gcc -I/usr/local/include -Isapi/apache/
-I/home/sw/php4-200210040300/sapi/apache/ -DPHP_ATOM_INC
-I/home/sw/php4-200210040300/include -I/home/sw/php4-200210040300/main
-I/home/sw/php4-200210040300 -I/home/sw/php4-200210040300/Zend
-I/u01/app/oracle/product/8.1.7/rdbms/public
-I/u01/app/oracle/product/8.1.7/rdbms/demo
-I/home/sw/php4-200210040300/ext/xml/expat -DUW=700 -DMOD_SSL=208110
-DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I/home/sw/php4-200210040300/TSRM -g
-Wall -c /home/sw/php4-200210040300/sapi/apache/mod_php4.c  -fPIC -DPIC
-o sapi/apache/mod_php4.lo
In file included from /usr/local/include/ap_config.h:1118,
                 from /usr/local/include/httpd.h:72,
                 from
/home/sw/php4-200210040300/sapi/apache/php_apache_http.h:15,
                 from
/home/sw/php4-200210040300/sapi/apache/mod_php4.c:22:
/usr/include/sys/file.h:105: warning: `/*' within comment
/home/sw/php4-200210040300/sapi/apache/mod_php4.c: In function
`apache_php_module_shutdown_wrapper':
/home/sw/php4-200210040300/sapi/apache/mod_php4.c:788: structure has no
member named `shutdown'
/home/sw/php4-200210040300/sapi/apache/mod_php4.c: In function
`php_child_exit_handler':
/home/sw/php4-200210040300/sapi/apache/mod_php4.c:809: structure has no
member named `shutdown'
make: *** [sapi/apache/mod_php4.lo] Error 1

In the same configuration, version 4.2.3 can be compiled without any
problem.


Previous Comments:
------------------------------------------------------------------------

[2002-10-03 19:30:02] [EMAIL PROTECTED]

Try newer snapshot..and if that compile error persists, just configure
using --disable-mbstring to skip the compile of that buggy thing.


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

[2002-10-03 10:00:20] [EMAIL PROTECTED]

Unfortunately, I am not able to compile this version at all:

/home/sw/php4-200210030600/ext/mbstring/mbregex.c:4565: parm types
given both in parmlist and separately
/home/sw/php4-200210030600/ext/mbstring/mbregex.c:4564: parameter name
omitted
/home/sw/php4-200210030600/ext/mbstring/mbregex.c:4567: parse error
before `regs'
/home/sw/php4-200210030600/ext/mbstring/mbregex.c:4568: parse error
before `regs'
/home/sw/php4-200210030600/ext/mbstring/mbregex.c:4569: parse error
before `regs'
make: *** [ext/mbstring/mbregex.lo] Error 1

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

[2002-10-01 18:10:40] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip



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

[2002-03-04 11:15:48] [EMAIL PROTECTED]

Hi!

we have

- SuperMicro P3TDLE, 2* Pentium III, 1 GB RAM
- UnixWare 7.1.1 with latest patches installed
- Apache 1.3.23
- PHP 4.1.2
- Oracle 8.1.7.2
- gcc 2.95.2

PHP was configured with command:

export ORACLE_HOME=/u01/app/oracle/product/8.1.7
export LD_LIBRARY_PATH=/usr/local/lib:$ORACLE_HOME/lib
./configure --with-oci8 --with-apxs --without-mysql --enable-sigchild
--host=i486-sco-sysv5uw7
 
We have found (at least) one php page using database connection (this
page is rather complicated, but we can provide it on demand), which
generates "Segmentation fault" reproducibly. It seems, that
"Segmentation fault" is caused by php, as it can be seen from following
lines generated by gdb session:

egg 174# gdb /usr/local/apache.dbg/bin/httpd
(gdb) run -X
Starting program: /usr/local/apache.dbg/bin/./httpd -X
warning: Lowest section in /usr/lib/libdl.so.1 is .hash at 00000094

Program received signal SIGSEGV, Segmentation fault.
_efree (ptr=0x0) at zend_alloc.c:222
222             CALCULATE_REAL_SIZE_AND_CACHE_INDEX(p->size);
[New Thread 1]
(gdb) bt
#0  _efree (ptr=0x0) at zend_alloc.c:222
#1  0xbfd6b787 in zend_hash_destroy (ht=0x0) at zend_hash.c:548
#2  0xbfd651b4 in _zval_dtor (zvalue=0x82072f4) at zend_variables.c:57
#3  0xbfd5d498 in _zval_ptr_dtor (zval_ptr=0x82566d0) at
zend_execute_API.c:274
#4  0xbfd6b7d0 in zend_hash_clean (ht=0x81cede4) at zend_hash.c:567
#5  0xbfd57f07 in execute () from
/usr/local/apache.dbg/libexec/libphp4.so
#6  0xbfd66a97 in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
    at zend.c:814
#7  0xbfd77326 in php_execute_script (primary_file=0x80479d8) at
main.c:1307
#8  0xbfd71af6 in apache_php_module_main (r=0x812d7e4,
display_source_mode=0)
    at sapi_apache.c:90
#9  0xbfd72d2f in send_php (r=0x812d7e4, display_source_mode=0,
filename=0x0)
    at mod_php4.c:575
#10 0xbfd72d96 in send_parsed_php (r=0x0) at mod_php4.c:590
#11 0x8056aa5 in ap_invoke_handler ()
#12 0x806d910 in process_request_internal ()
#13 0x806d97a in ap_process_request ()
#14 0x8063be7 in child_main ()
#15 0x8063da9 in make_child ()
#16 0x8063f22 in startup_children ()
#17 0x80644f0 in standalone_main ()
#18 0x8064d40 in main ()
#19 0x804f149 in _start ()

Unfortunately, we are unable to configure PHP with --enable-debug
option, it crashes with "Segmentation fault" during Apache startup :-(

Can somebody help ?

Pavel



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


-- 
Edit this bug report at http://bugs.php.net/?id=15858&edit=1

Reply via email to