ID: 40751 User updated by: sti-pe2 at online dot no Reported By: sti-pe2 at online dot no Status: Open Bug Type: Session related Operating System: FreeBSD 5.3-RELEASE PHP Version: 4.4.6 New Comment:
I installed older versions of PHP, and 4.3.10(!) actually works... All newer versions result in the same error. Are there any known issues regarding sessions when upgrading from 4.3.10 to 4.3.11? Any config in Apache that may be a problem? Previous Comments: ------------------------------------------------------------------------ [2007-03-08 07:37:27] sti-pe2 at online dot no Recompiled without --enable-versioning, but I still get the same error. ------------------------------------------------------------------------ [2007-03-07 21:57:46] [EMAIL PROTECTED] After 10 thousands requests with ab I still can't see anything except "does this work?". --enable-versioning - could you please remove this option? ------------------------------------------------------------------------ [2007-03-07 21:39:16] sti-pe2 at online dot no 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 this bug report at http://bugs.php.net/?id=40751&edit=1