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

 ID:               51603
 Updated by:       paj...@php.net
 Reported by:      phil at weballey dot com
 Summary:          excuting php script causes apache2 seg fault
-Status:           Open
+Status:           Feedback
 Type:             Bug
 Package:          Apache2 related
 Operating System: FreeBSD 8.0
 PHP Version:      5.3.2

 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.




Previous Comments:
------------------------------------------------------------------------
[2010-04-19 20:48:12] phil at weballey dot com

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    
r...@i386-builder.daemonology.net:/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 <b...@horde.org>

 * @author Chuck Hagenbuch <ch...@horde.org>

 */





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



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

Reply via email to