php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48822 Bus error in Apache after PHP 5.3.0 installed
Submitted: 2009-07-06 17:37 UTC Modified: 2009-07-07 20:24 UTC
From: stevenf at panic dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.3.0 OS: Mac OS X Server 10.5.7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: stevenf at panic dot com
New email:
PHP Version: OS:

 

 [2009-07-06 17:37 UTC] stevenf at panic dot com
Description:
------------
After compiling and installing PHP 5.3.0, Apache reports a bus error 
when I try to 
restart it:

sporty:php-5.3.0 stevenf$ sudo /usr/local/apache2/bin/apachectl 
graceful
/usr/local/apache2/bin/apachectl: line 78: 25030 Bus error               
$HTTPD -k $ARGV

The problem goes away if I roll back to PHP 5.2.10.

I have submitted the results of make test.

Note that this is a PowerPC machine -- this has caused some PHP 
problems in the past.

Uname info:

Darwin sporty.panic.com 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 
22:54:29 PDT 2009; 
root:xnu-1228.12.14~1/RELEASE_PPC Power Macintosh

Config string:

./configure  --with-openssl --with-apxs2=/usr/local/apache2/bin/apxs -
-with-mysql-
sock=/var/mysql --with-mysql=/usr --with-xmlrpc --enable-mbstring --
without-sqlite --
enable-sockets --with-curl --with-gd --with-jpeg-dir=/usr/local/lib --
with-png-
dir=/usr/local/lib

Apache info:

Apache/2.2.10 (Unix) DAV/2 PHP/5.2.10 mod_ssl/2.2.10 OpenSSL/0.9.7l



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-07 11:35 UTC] jani@php.net
1. Do you load any extensions in the php.ini used? Especially some 3rd party zend exts?
2. Remove /lib suffix from any configure option values. It's never needed
3. Backtrace..?
 [2009-07-07 16:52 UTC] stevenf at panic dot com
1. No, the php.ini only sets a few variables.

2. Good to know, thanks!

3. Can you point me to some instructions on how to get the backtrace 
in this situation?  Would I have to, for example, run httpd within 
gdb?

Further information:

PHP 5.3.0 + Apache 2 works on one of our three Xserves, and produces 
this same bus error on the other two.  CPU architecture does not seem 
to be a factor, as I earlier thought.  

I am still in the process of trying to figure out what might be 
different between the environments of the working and non-working 
machines.
 [2009-07-07 17:19 UTC] jani@php.net
Is date.timezone set in your php.ini? What MPM is used in Apache?
 [2009-07-07 17:34 UTC] stevenf at panic dot com
1. Yes, we have this line in php.ini: 

date.timezone = America/Los_Angeles

2. It looks like we are using the default Unix MPM (prefork).  Our 
Apache config string was simply:

./configure --enable-ssl --enable-so
 [2009-07-07 18:41 UTC] jani@php.net
Well, the only way to figure out what's wrong is propably checking what 
the differences are between those working / non-working servers. 
 [2009-07-07 18:55 UTC] stevenf at panic dot com
That's what I'm working on now.  I was able to get one of the non-
working servers to work by reducing the config string to:

./configure --with-apxs2=/usr/local/apache2/bin/apxs

So, I'm adding back the config options one at a time to isolate the 
problem one.
 [2009-07-07 20:24 UTC] stevenf at panic dot com
It is working now.  The only difference seems to be doing this works:

(Apache with PHP 5.2.10 running)
make (in PHP 5.3.0 directory)
apachectl stop
make install (in PHP 5.3.0 directory)
apachectl start

but this gives me the bus error:

(Apache with PHP 5.2.10 running)
make install (in PHP 5.3.0 directory)
apachectl graceful

Regardless of config settings.

Once it's installed the first way, apachectl graceful works as 
expected.  No idea.  Very strange.  I'm closing this bug as "bogus".  
Sorry for the trouble.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 19:01:30 2024 UTC