From owner-freebsd-questions@FreeBSD.ORG Fri Jan 18 15:44:19 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A29116A417 for ; Fri, 18 Jan 2008 15:44:19 +0000 (UTC) (envelope-from fbsdq@peterk.org) Received: from poshta.pknet.net (poshta.pknet.net [216.241.167.213]) by mx1.freebsd.org (Postfix) with SMTP id 3EB4E13C44B for ; Fri, 18 Jan 2008 15:44:19 +0000 (UTC) (envelope-from fbsdq@peterk.org) Received: (qmail 79273 invoked by uid 98); 18 Jan 2008 15:19:41 -0000 Received: from 216.241.167.213 by poshta.pknet.net (envelope-from , uid 82) with qmail-scanner-2.01 (clamdscan: 0.91.2/5145. spamassassin: 3.2.3. Clear:RC:1(216.241.167.213):. Processed in 0.06341 secs); 18 Jan 2008 15:19:41 -0000 Received: from unknown (HELO webmail.pknet.net) (216.241.167.213) by poshta.pknet.net with SMTP; 18 Jan 2008 15:19:40 -0000 Received: from 63.65.46.186 (SquirrelMail authenticated user fbsdq@peterk.org) by webmail.pknet.net with HTTP; Fri, 18 Jan 2008 08:19:41 -0700 (MST) Message-ID: <1147.63.65.46.186.1200669581.squirrel@webmail.pknet.net> Date: Fri, 18 Jan 2008 08:19:41 -0700 (MST) From: fbsdq@peterk.org To: freebsd-questions@freebsd.org User-Agent: SquirrelMail/1.4.11 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: apache coredump with 'mhash' php extension enabled X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2008 15:44:19 -0000 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
The hmac is 750c783e6ab0b503eaa86e310a5db738
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[