From:             sti-pe2 at online dot no
Operating system: FreeBSD 5.3-RELEASE
PHP version:      4.4.6
PHP Bug Type:     Session related
Bug description:  Apache segmentation fault

Description:
------------
When running some of my php-pages, I get segmentation faults in Apache. 
I think I have narrowed it down to session-handling in php, see reproduce
code. Pages not including sessions works fine.
I have upgraded both Apache, PHP and MySQL lately, but don't know if this
is related to the errors I experience.

Systeminfo:
FreeBSD 5.3-RELEASE
Apache 1.3.37
PHP 4.4.6
ZendOptimizer 3.2.2 (disabled for now)
MySQL 4.1.22 

register_globals=on
Tests with register_globals=off does not make any difference.

PHP compile options:
./configure --enable-versioning --enable-memory-limit --with-layout=GNU
--with-config-file-scan-dir=/usr/local/etc/php --disable-all
--with-regex=php --with-apxs=/usr/local/sbin/apxs --disable-ipv6
--prefix=/usr/local

Reproduce code:
---------------
<?
  session_register("test_sessie");

  echo "does this work?";
?> 

Expected result:
----------------
Output to screen/browser: 
does this work?

Actual result:
--------------
The browser returns a blank page, command line returns "Segmentation fault
(core dumped)".

/var/log/messages:
kernel: pid 459 (httpd), uid 80: exited on signal 11 

Apache's error.log:
child pid 458 exit signal Segmentation fault (11) 

# gdb php
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-marcel-freebsd"...
(gdb) run test.php
Starting program: /usr/local/bin/php test.php

Program received signal SIGSEGV, Segmentation fault.
0x080cae9a in _zval_ptr_dtor (zval_ptr=0x282e7928) at
/root/dl/php-4.4.6/Zend/zend_execute_API.c:287
287             (*zval_ptr)->refcount--;
(gdb)


-- 
Edit bug report at http://bugs.php.net/?id=40751&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=40751&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=40751&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=40751&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=40751&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=40751&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=40751&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=40751&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=40751&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=40751&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=40751&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=40751&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=40751&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=40751&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=40751&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=40751&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=40751&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=40751&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=40751&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=40751&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=40751&r=mysqlcfg

Reply via email to