From owner-freebsd-questions@FreeBSD.ORG Thu Oct 9 08:17:43 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 CC4C1106568D for ; Thu, 9 Oct 2008 08:17:43 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA08.westchester.pa.mail.comcast.net (qmta08.westchester.pa.mail.comcast.net [76.96.62.80]) by mx1.freebsd.org (Postfix) with ESMTP id 746798FC17 for ; Thu, 9 Oct 2008 08:17:42 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA01.westchester.pa.mail.comcast.net ([76.96.62.11]) by QMTA08.westchester.pa.mail.comcast.net with comcast id QYAE1a0010EZKEL58YHiPy; Thu, 09 Oct 2008 08:17:42 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA01.westchester.pa.mail.comcast.net with comcast id QYHh1a0062P6wsM3MYHhud; Thu, 09 Oct 2008 08:17:42 +0000 X-Authority-Analysis: v=1.0 c=1 a=QycZ5dHgAAAA:8 a=v2o64td4ftXi3liqVoIA:9 a=7KqxQgGKC9H-oeNx_AUA:7 a=aEb8nhVJIFLIYs40KEWGaiqIiM8A:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 0EB33C9419; Thu, 9 Oct 2008 01:17:41 -0700 (PDT) Date: Thu, 9 Oct 2008 01:17:41 -0700 From: Jeremy Chadwick To: Laszlo Nagy Message-ID: <20081009081741.GA98538@icarus.home.lan> References: <48ECACB4.8080103@shopzeus.com> <20081008131248.GA77388@icarus.home.lan> <48EDBCB1.7020803@shopzeus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48EDBCB1.7020803@shopzeus.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: nightrecon@verizon.net, freebsd-questions@freebsd.org, Fred Condo Subject: Re: php5 segfault 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: Thu, 09 Oct 2008 08:17:43 -0000 On Thu, Oct 09, 2008 at 10:11:29AM +0200, Laszlo Nagy wrote: > >>>> Also, you cannot use a threaded Apache (e.g. threaded MPMs) with PHP >>>> since not all extensions support threading. Your Apache needs to be >>>> built without threads and use a non-thread model (e.g. prefork). I've >>>> also had success with Apache-ITK-mpm. >>> >>> This is very true for mod_php, but less so if PHP is run as FastCGI. >>> I am >>> currently running a box at work with the event mpm and mod_fcgid for >>> testing and it seems to be doing well. YMMV > All right. The problem is that we are getting segfaults with the CLI > version too. We are running some background PHP programs and they also > throw segfault. extensions.ini is used by the CLI version as well. I'm not sure why you think this wouldn't be the case. > Here is the interesting part. I wrote a test script that tries to > connect to the postgresql server. > > - if the hostname is wrong for the connection, there is no segfault > - if the hostname is right but the password is wrong (e.g. it cannot > connect to the server) then there IS segfault. > > There are no options to configure in php5-pgsql. > > I tried to change the order or module in extensions.ini, no success so far. Then my recommendation is to build PHP with DEBUG enabled (see "make config"), reproduce the situation, and provide a backtrace here. I would also consider filing a bug with the PHP folks. They may know something we don't. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |