From owner-freebsd-questions@FreeBSD.ORG Fri Mar 26 05:11:28 2004 Return-Path: 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 2855316A4CE for ; Fri, 26 Mar 2004 05:11:28 -0800 (PST) Received: from antsrv1.ant.uni-bremen.de (antsrv1.ant.uni-bremen.de [134.102.176.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 328A043D49 for ; Fri, 26 Mar 2004 05:11:27 -0800 (PST) (envelope-from rebehn@ant.uni-bremen.de) Received: from bremerhaven.ant.uni-bremen.de ([134.102.176.10] helo=ant.uni-bremen.de) by antsrv1.ant.uni-bremen.de with esmtp (Exim 4.30; FreeBSD) id 1B6r7O-000O1g-9M; Fri, 26 Mar 2004 14:11:26 +0100 Message-ID: <40642BFE.7030902@ant.uni-bremen.de> Date: Fri, 26 Mar 2004 14:11:26 +0100 From: Heinrich Rebehn User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040212 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Matthew Seaman References: <40582439.7060403@ant.uni-bremen.de> <20040317124000.GD26606@happy-idiot-talk.infracaninophile.co.uk> <405850A2.3060509@ant.uni-bremen.de> <20040317145808.GA29859@happy-idiot-talk.infracaninophile.co.uk> <4062DE26.2050305@ant.uni-bremen.de> <20040325140758.GA84635@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20040325140758.GA84635@happy-idiot-talk.infracaninophile.co.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: apache+mod_ssl + php4 crashes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2004 13:11:28 -0000 Matthew Seaman wrote: > On Thu, Mar 25, 2004 at 02:27:02PM +0100, Heinrich Rebehn wrote: > > >>I tried substituting libc_r with libkse (there is no libpthread on >>5.2.1-RELEASE-p3). Still no good. httpd dumps core. :-( > > > Yes. I now have heard that the new threading libraries have been > deemed good enough to be made part of the system, so libc_r is the > place for all threaded programs to link against, and the libkse and > libpthread stuff is basically obsolete. > > >>I did an lsof for the httpd process (with php4 commented out) and it >>shows no sign of any two modules using different threading libraries: > > > So the core dump is only happening when mod_php is enabled? Do you > have the command line version of php installed (you get this with > lang/php4, but not www/mod_php4), and does the crash still happen with > that? If so, try: > > % /usr/local/bin/php << E_O_F > ? > ? E_O_F > > (The ? at the start of those lines is a shell prompt, which might > appear as > in some shell. Either way, don't type that character.) > > That should print out a large amount of information about your PHP setup. > > Hmmm... Probably the next thing to try is simply rebuilding the > mod_php4 port. I'm fairly certain there is some sort of shlib > conflict or missing shlib which is making everything fall over. Try > only enabling the minimum number of options you can in the PHP config. > > Cheers, > > Matthew > I experimented with PHP config options and found out: make -DWITH_CTYPE -DWITH_OVERLOAD -DWITH_PCRE -DWITH_POSIX -DWITH_SESSION -DWITH_TOKENIZER -DWITH_XML -DWITH_ZLIB ==> httpd runs make -DWITH_CTYPE -DWITH_OVERLOAD -DWITH_PCRE -DWITH_POSIX -DWITH_SESSION -DWITH_TOKENIZER -DWITH_XML -DWITH_ZLIB -DWITH_DOMXML ==> httpd dumps core So DOMXML seems to be the problem, but why??? What is it good for anyhow? -- Heinrich -- Heinrich Rebehn University of Bremen Physics / Electrical and Electronics Engineering - Department of Telecommunications - Phone : +49/421/218-4664 Fax : -3341