Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Oct 2008 10:11:29 +0200
From:      Laszlo Nagy <gandalf@shopzeus.com>
To:        Fred Condo <fcondo@quinn.com>
Cc:        nightrecon@verizon.net, freebsd-questions@freebsd.org
Subject:   Re: php5 segfault
Message-ID:  <48EDBCB1.7020803@shopzeus.com>
In-Reply-To: <EA000AF4-02F5-4515-9257-48736A51B4B8@quinn.com>
References:  <48ECACB4.8080103@shopzeus.com>	<20081008131248.GA77388@icarus.home.lan>	<gcirs1$iak$1@ger.gmane.org> <EA000AF4-02F5-4515-9257-48736A51B4B8@quinn.com>

next in thread | previous in thread | raw e-mail | index | archive | help

>>> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48EDBCB1.7020803>