From:             [EMAIL PROTECTED]
Operating system: UnixWare 7.1.1
PHP version:      4.1.2
PHP Bug Type:     Reproducible crash
Bug description:  Reproducible segmentation fault in pages using oci8 (Oracle 8.1.7)

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 bug report at http://bugs.php.net/?id=15858&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=15858&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=15858&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=15858&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=15858&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15858&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=15858&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=15858&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=15858&r=submittedtwice

Reply via email to