Hello,

Environment: OpenBSD 4.5 stable , generic MP kernel. Dmesg here:
http://pastebin.com/m5f5e96fe

Summary: We have a special need to use Apache 2 with PHP5 and before
the ports where updated from php5.2.6 and apache 2.2.9 this procedure
worked 100% before and now even in a new install just by calling
phpinfo() iam getting the following intermittent errors in the error
log and a white screen:

Error: [Sun Aug 09 12:47:27 2009] [notice] child pid 12566 exit signal
Segmentation fault (11)


Ruled out: I have ruled out hardware issues by totally replacing the
box and also doing a fresh install.. I have made sure all X11 file
sets where installed because they are needed for compilation.

How to recreate the problem:

a.) Compile kernel to stable rebooted, and compiled userland to stable.
b.) Dowloaded the latest ports from the stable branch.
c.) cd /usr/ports/www/apache-httpd/; make; make install. Confirmed
sucessfull install of apache 2.2.11
d.) cd /usr/ports/www/php5/core; vi Makefile and changed:
CONFIGURE_ARGS+=--with-apxs=/usr/sbin/apxs \ to
CONFIGURE_ARGS+=--with-apxs2=/usr/local/sbin/apxs2 \
then make; make install. Confirmed the installation of php5.2.10
e.) Configured httpd2.conf so that it loads the php5 module:
LoadModule php5_module /usr/local/lib/php/libphp5.so
f.) cd /usr/ports/www/php5/extensions; vi Makefile and changed:
CONFIGURE_ARGS+=--with-apxs=/usr/sbin/apxs \ to
CONFIGURE_ARGS+=--with-apxs2=/usr/local/sbin/apxs2 \
then make; make install.
g.) export PKG_PATH=/usr/ports/packages/i386/all/; pkg_add  php5-bz2
php5-curl php5-gd php5-gmp php5-mbstring php5-mcrypt php5-mhash
php5-mysql php5-shmop. (This will grab the packages compiled from the
pkg:path).
h.) Placed a info.php file in the apache2 htdocs and refresh it many
times, many of those generate that error and images (logos) dont load.
...... the issue is totally INTERMITTENT.. after I rebooted I could
load phpinfo() fine but then I tried installing phpmyadmin and
sometimes some functions just yield out the error. Sometimes the issue
is so bad all the pages load half way.


Iam about to throw myself out the window because Ive tried for days to
look for a specific pattern towards when the Segmentation is
generated, but it is absolutely random. Sometimes my sites dont
generate the Seg fault error but they just log a 500 error without
further explanation. I have repeated this so many times that sometimes
it isnt even necessary to load the extensions just the php5-core will
error.

Please advise!

Andres

Reply via email to