Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jan 2008 08:19:41 -0700 (MST)
From:      fbsdq@peterk.org
To:        freebsd-questions@freebsd.org
Subject:   apache coredump with 'mhash' php extension enabled
Message-ID:  <1147.63.65.46.186.1200669581.squirrel@webmail.pknet.net>

next in thread | raw e-mail | index | archive | help
iH,
   Apache is dumping core if I have the following enabled in php/mod_php:

mailds:#grep -v ^# /usr/local/etc/php/extensions.ini
extension=mhash.so
mailds:#/usr/local/etc/rc.d/apache start
Starting apache.
mailds:#tail -3 /var/log/messages
Jan 18 07:57:37 mailds kernel: pid 95875 (httpd), uid 0: exited on signal
11 (core dumped)
Jan 18 07:58:30 mailds kernel: pid 95885 (httpd), uid 0: exited on signal
11 (core dumped)
Jan 18 07:58:31 mailds kernel: pid 95894 (httpd), uid 0: exited on signal
11 (core dumped)
nothing is being written to httpd-error.log
mailds:#tail -1 /var/log/httpd-error.log
[Thu Jan 17 12:49:18 2008] [notice] caught SIGTERM, shutting down

but with that php extension commented out:
mailds:#grep -v ^# /usr/local/etc/php/extensions.ini
mailds:#
mailds:#tail -3 /var/log/httpd-error.log
[Thu Jan 17 12:49:18 2008] [notice] caught SIGTERM, shutting down
[Fri Jan 18 08:01:29 2008] [notice] Apache/1.3.39 (Unix) PHP/5.2.5 with
Suhosin-Patch configured -- resuming normal operations
[Fri Jan 18 08:01:29 2008] [notice] Accept mutex: flock (Default: flock)
mailds:#ps auxw|grep httpd|wc -l
       6

I've also tried this another box,fresh install yesterday with latest cvsup
RELENG_7;
It does the same apache core dump, with only apache13/php5/php5-mhash
installed.
This was all installed from ports [make install], I've tested with my
httpd.conf file and default one, still this php extension causes apache to
coredump

mailds:#pkg_info |egrep "apache|php|hash"
apache-1.3.39_2     The extremely popular Apache http server. Very fast,
very c
mhash-0.9.9         An easy-to-use library for strong hashes such as MD5
and SH
php5-5.2.5          PHP Scripting Language
php5-gettext-5.2.5  The gettext shared extension for php
php5-iconv-5.2.5    The iconv shared extension for php
php5-mbstring-5.2.5 The mbstring shared extension for php
php5-mhash-5.2.5    The mhash shared extension for php
php5-openssl-5.2.5  The openssl shared extension for php
php5-pcre-5.2.5     The pcre shared extension for php
php5-pgsql-5.2.5    The pgsql shared extension for php
php5-session-5.2.5  The session shared extension for php
php5-xml-5.2.5      The xml shared extension for php


   I've got the latest code cvsup from Jan 17, world rebuilt for RELENG_7,
latest portsnap from about the same time - this is fresh install of
7-beta4, cvsupped to "7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Thu Jan
17 09:33:41 MST 2008"
  I've got the mhash running on another box, but that was done awhile ago
with with version 0.9.7.. [it's required for squirrelmail].

  Any ideas anyone? gdb httpd /httpd.core doesn't give out much info, php
in debug mode, still not seeing anything in logs.
  php cli works fine: [php code from php.net mhash example]
mailds:#grep -v ^# /usr/local/etc/php/extensions.ini
extension=mhash.so
mailds:#php php.t
The hash is d03cb659cbf9192dcd066272249f8412<br />
The hmac is 750c783e6ab0b503eaa86e310a5db738<br />
 and with extension disabled [no surprise];
mailds:#grep -v ^# /usr/local/etc/php/extensions.ini
mailds:#php php.t
PHP Fatal error:  Call to undefined function mhash() in
/usr/local/etc/apache/php.t on line 6
  so I know it works, just curious if anyone has mhash 0.9.9 working with
apache13/any ideas about what is going on?


]Peter[





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1147.63.65.46.186.1200669581.squirrel>