From owner-freebsd-questions@FreeBSD.ORG Thu Oct 9 08:11:38 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 58EB1106568A for ; Thu, 9 Oct 2008 08:11:38 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from viefep20-int.chello.at (viefep20-int.chello.at [62.179.121.40]) by mx1.freebsd.org (Postfix) with ESMTP id 9C8338FC12 for ; Thu, 9 Oct 2008 08:11:37 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from edge05.upc.biz ([192.168.13.212]) by viefep20-int.chello.at (InterMail vM.7.08.02.02 201-2186-121-104-20070414) with ESMTP id <20081009081135.ICKF7113.viefep20-int.chello.at@edge05.upc.biz>; Thu, 9 Oct 2008 10:11:35 +0200 Received: from [192.168.2.175] ([89.134.231.52]) by edge05.upc.biz with edge id QYBY1a03m18VCLh05YBZlW; Thu, 09 Oct 2008 10:11:35 +0200 X-SourceIP: 89.134.231.52 Message-ID: <48EDBCB1.7020803@shopzeus.com> Date: Thu, 09 Oct 2008 10:11:29 +0200 From: Laszlo Nagy User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Fred Condo References: <48ECACB4.8080103@shopzeus.com> <20081008131248.GA77388@icarus.home.lan> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: nightrecon@verizon.net, freebsd-questions@freebsd.org 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:11:38 -0000 >>> 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. 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. Best, Laszlo