From owner-freebsd-questions@FreeBSD.ORG Sun Apr 2 22:56:32 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E69E16A420 for ; Sun, 2 Apr 2006 22:56:32 +0000 (UTC) (envelope-from ajr9@po.cwru.edu) Received: from beta.eecs.cwru.edu (beta.EECS.CWRU.Edu [129.22.150.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D54243D45 for ; Sun, 2 Apr 2006 22:56:31 +0000 (GMT) (envelope-from ajr9@po.cwru.edu) Received: from [10.0.0.6] ([::ffff:72.25.105.188]) (AUTH: PLAIN reitz, TLS: TLSv1/SSLv3,128bits,RC4-SHA) by beta.eecs.cwru.edu with esmtp; Sun, 02 Apr 2006 18:56:30 -0400 id 000ABEB2.4430569E.000069DC Mime-Version: 1.0 (Apple Message framework v746.3) Content-Transfer-Encoding: 7bit Message-Id: <6C3A3A4C-F296-49CA-BDD9-D79DAB994D1F@po.cwru.edu> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-questions@freebsd.org From: Andrew Reitz Date: Sun, 2 Apr 2006 15:56:27 -0700 X-Mailer: Apple Mail (2.746.3) Subject: FreeBSD 6-STABLE: Apache 2.2 and php 4.4 segmentation fault 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: Sun, 02 Apr 2006 22:56:32 -0000 Hello, I am a long time FreeBSD user of FreeBSD 4.x and Apache 1.3.x. I have decided to "get with the times", and upgrade to FreeBSD 6 and Apache2. So far, my experience with FreeBSD 6 has been great, but I appear to have bumped into a problem with running Apache 2 and php4 together. By itself, Apache is working fine spitting out static pages. However, whenever I try to load a page that needs to go through the PHP interpreter, I get a segmentation fault: nr:/usr/local/etc# tail /var/log/httpd-error.log [Sun Apr 02 15:54:47 2006] [notice] Graceful restart requested, doing restart [Sun Apr 02 15:54:48 2006] [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter [Sun Apr 02 15:54:49 2006] [notice] Digest: generating secret for digest authentication ... [Sun Apr 02 15:54:49 2006] [notice] Digest: done [Sun Apr 02 15:54:50 2006] [notice] Apache/2.2.0 (FreeBSD) mod_ssl/ 2.2.0 OpenSSL/0.9.7e-p1 DAV/2 configured -- resuming normal operations [Sun Apr 02 15:54:51 2006] [notice] child pid 46107 exit signal Segmentation fault (11) [Sun Apr 02 15:54:55 2006] [notice] child pid 46108 exit signal Segmentation fault (11) [Sun Apr 02 15:54:59 2006] [notice] child pid 46109 exit signal Segmentation fault (11) [Sun Apr 02 15:57:38 2006] [notice] child pid 46110 exit signal Segmentation fault (11) [Sun Apr 02 15:58:15 2006] [notice] child pid 46111 exit signal Segmentation fault (11) And here is some information about my system: nr:/usr/local/etc# uname -a FreeBSD nr.tool.no 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #2: Mon Mar 13 01:11:05 PST 2006 andyr@nr.tool.no:/usr/obj/usr/src/sys/ PARAMORE i386 nr:/usr/local/etc# pkg_info |grep -i apache apache-2.2.0_7 Version 2.2 of Apache web server with prefork MPM. php4-4.4.2_1 PHP Scripting Language (Apache Module and CLI) nr:/usr/local/etc# pkg_info |grep -i php gallery-1.5.2.2 A slick web based photo album written using PHP libmcrypt-2.5.7_2 Multi-cipher cryptographic library (used in PHP) php4-4.4.2_1 PHP Scripting Language (Apache Module and CLI) php4-bz2-4.4.2_1 The bz2 shared extension for php php4-gd-4.4.2_1 The gd shared extension for php php4-gettext-4.4.2_1 The gettext shared extension for php php4-mbstring-4.4.2_1 The mbstring shared extension for php php4-mcrypt-4.4.2_1 The mcrypt shared extension for php php4-mysql-4.4.2_1 The mysql shared extension for php php4-openssl-4.4.2_1 The openssl shared extension for php php4-pcre-4.4.2_1 The pcre shared extension for php php4-session-4.4.2_1 The session shared extension for php php4-zlib-4.4.2_1 The zlib shared extension for php phpMyAdmin-2.7.0.2 A set of PHP-scripts to manage MySQL over the web I have done some Googling, and it seems like there are problems when Apache is compiled with threads, but I haven't found anything that I consider to be definitive. And of course, while I installed everything from ports, I don't remember which knobs I twisted when installing. :) Can anyone supply any hints as to how I can get more debugging information (I don't see any core files anywhere), and/or how I can fix this problem? Thanks much in advance, -Andy Reitz