From owner-freebsd-questions@FreeBSD.ORG Thu Oct 9 10:00:49 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 A32F11065687 for ; Thu, 9 Oct 2008 10:00:49 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA06.emeryville.ca.mail.comcast.net (qmta06.emeryville.ca.mail.comcast.net [76.96.30.56]) by mx1.freebsd.org (Postfix) with ESMTP id 840938FC27 for ; Thu, 9 Oct 2008 10:00:49 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA03.emeryville.ca.mail.comcast.net ([76.96.30.27]) by QMTA06.emeryville.ca.mail.comcast.net with comcast id QZkh1a0010b6N64A6a0pDs; Thu, 09 Oct 2008 10:00:49 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA03.emeryville.ca.mail.comcast.net with comcast id Qa0o1a0032P6wsM8Pa0otN; Thu, 09 Oct 2008 10:00:48 +0000 X-Authority-Analysis: v=1.0 c=1 a=QycZ5dHgAAAA:8 a=uWCwK4Fg7PgCJmIRgzoA:9 a=_2tqACY-d6d6ImWierEA:7 a=SmPCP3OAceiAAXmYaevc3MpsXpcA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id C5D20C9419; Thu, 9 Oct 2008 03:00:47 -0700 (PDT) Date: Thu, 9 Oct 2008 03:00:47 -0700 From: Jeremy Chadwick To: Laszlo Nagy Message-ID: <20081009100047.GA523@icarus.home.lan> References: <48ECACB4.8080103@shopzeus.com> <20081008131248.GA77388@icarus.home.lan> <48EDBCB1.7020803@shopzeus.com> <20081009081741.GA98538@icarus.home.lan> <48EDD487.7090401@shopzeus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48EDD487.7090401@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 10:00:49 -0000 On Thu, Oct 09, 2008 at 11:53:11AM +0200, Laszlo Nagy wrote: > >>> 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. >> > Problem solved. I put pgsql.so on top of all other modules and now there > is no segfault. Thank you! I thought you said you changed the order and it didn't work? *confused* > Although I do not understand why it has not been fixed. The same > problem existed two years ago, right? What "problem" are you referring to? The extension ordering issue? If so: it should be obvious why it hasn't been fixed. It doesn't appear to affect everyone -- for example, we have never seen this problem in the 4-5 years we've been using PHP on FreeBSD -- and the solution doesn't really make much sense anyway. It smells of a missing symbol problem (e.g. libxx.so wants a symbol named "hello_bob", but the symbol is available in libyy.so, which has to be loaded first; however, ld.so and dlopen(3) have explicit handling for this scenario (see RTLD_NOW vs. RTLD_LAZY), so I'm at a loss). That said, if you feel this is a humongous issue, I highly recommend you mail the PHP port maintainer and express your concerns, or open a PR. -- | 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 |