[PHP-BUG] Bug #51603 [NEW]: excuting php script causes apache2 seg fault

[email protected] ("phil at weballey dot com")
Newsgroups php.bugs
Message-ID <[email protected]>
From:             
Operating system: FreeBSD 8.0
PHP version:      5.3.2
Package:          Apache2 related
Bug Type:         Bug
Bug description:excuting php script causes apache2 seg fault

Description:
------------
Executing the horde test.php installation validation script causes httpd to
seg fault. I can execute a simple php script with the phpinfo() inside.

This is one of the error messages. There is no other information I can find
in the sys logs (apache or otherwise);  

[Sat Apr 17 23:06:19 2010] [notice] Apache/2.2.14 (FreeBSD) mod_ssl/2.2.14
OpenS
SL/0.9.8k DAV/2 PHP/5.3.2 with Suhosin-Patch configured -- resuming normal
opera
tions
[Sat Apr 17 23:06:35 2010] [notice] child pid 66799 exit signal
Segmentation fau
lt (11)

This is with eaccelerator disabled. Enabling eaccelerator 0.9.3 via
extensions.ini does not help. However, enabling eaccelerator via a php.ini
stanza (included below) makes the seg faults go away.

zend_extension="/usr/local/lib/php/20090626/eaccelerator.so"
eaccelerator.shm_size="32"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="2"

CONFIGURATION INFORMATION:

PHP 5.3.2 on FreeBSD 8.0 built via ports. Here is the configure line from
"php -i":
 
phpinfo()
PHP Version => 5.3.2

System => FreeBSD mail.sfflcc.org 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0:
Tue Jan  5 16:02:27 UTC 2010    
[email protected]:/usr/obj/usr/src/sys/GENERIC i386
Build Date => Apr 17 2010 21:51:32
Configure Command =>  './configure'  '--with-layout=GNU'
'--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
'--enable-libxml' '--with-libxml-dir=/usr/local' '--program-prefix='
'--with-apxs2=/usr/local/sbin/apxs' '--with-pcre-regex=/usr/local'
'--with-regex=php' '--with-zend-vm=CALL' '--enable-zend-multibyte'
'--prefix=/usr/local' '--mandir=/usr/local/man'
'--infodir=/usr/local/info/' '--build=i386-portbld-freebsd8.0'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /usr/local/etc
Loaded Configuration File => /usr/local/etc/php.ini
Scan this dir for additional .ini files => /usr/local/etc/php
Additional .ini files parsed => /usr/local/etc/php/extensions.ini

PHP API => 20090626
PHP Extension => 20090626
Zend Extension => 220090626
Zend Extension Build => API220090626,NTS
PHP Extension Build => API20090626,NTS
Debug Build => no
Thread Safety => disabled
Zend Memory Manager => enabled
Zend Multibyte Support => enabled
IPv6 Support => enabled
Registered PHP Streams => compress.bzip2, zip, https, ftps, php, file,
glob, data, http, ftp, compress.zlib  
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3,
sslv2, tls
Registered Stream Filters => convert.iconv.*, bzip2.*, string.rot13,
string.toupper, string.tolower, string.strip_tags, convert.*, consumed,
dechunk, zlib.*


This server is protected with the Suhosin Patch 0.9.9.1
Copyright (c) 2006-2007 Hardened-PHP Project
Copyright (c) 2007-2009 SektionEins GmbH


This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
    with eAccelerator v0.9.6, Copyright (c) 2004-2010 eAccelerator, by
eAccelerator




Test script:
---------------
This is the preamble for the horde test.php script. I believe you can get
it from the horde organization. Otherwise I can send it - email me.

/**
 * $Horde: horde/test.php,v 1.122.6.31 2009-05-05 15:27:28 selsky Exp $
 *
 * Copyright 1999-2009 The Horde Project (http://www.horde.org/)
 *
 * See the enclosed file COPYING for license information (LGPL). If you
 * did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
 *
 * @author Brent J. Nordquist <[email protected]>
 * @author Chuck Hagenbuch <[email protected]>
 */



-- 
Edit bug report at http://bugs.php.net/bug.php?id=51603&edit=1
-- 
Try a snapshot (PHP 5.2):            http://bugs.php.net/fix.php?id=51603&r=trysnapshot52
Try a snapshot (PHP 5.3):            http://bugs.php.net/fix.php?id=51603&r=trysnapshot53
Try a snapshot (PHP 6.0):            http://bugs.php.net/fix.php?id=51603&r=trysnapshot60
Fixed in SVN:                        http://bugs.php.net/fix.php?id=51603&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51603&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=51603&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=51603&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=51603&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=51603&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=51603&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=51603&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=51603&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=51603&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=51603&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=51603&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=51603&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=51603&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=51603&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=51603&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=51603&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=51603&r=mysqlcfg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.