PHP segmentation faults

Moggie moggie at elasticmind.net
Fri Sep 30 01:09:19 UTC 2011


On 29/09/2011 20:54, johan Hendriks wrote:
> Op 29-09-11 19:29, Moggie schreef:
>> Hi,
>>
>> Unfortunately, for some time now, PHP scripts have been producing 
>> segmentation faults when executed on one of our systems :(
>>
>> Various posts found via google suggested reinstalling all the PHP 
>> ports and/or using a script to re-order the PHP extension modules, 
>> but all so far without success.
>>
>> The output of php -m is as follows:
>>
>> [PHP Modules]
>> apc
>> bz2
>> Core
>> ctype
>> date
>> dom
>> ereg
>> filter
>> gd
>> hash
>> iconv
>> json
>> libxml
>> mbstring
>> mcrypt
>> mhash
>> mysql
>> mysqli
>> mysqlnd
>> openssl
>> pcre
>> PDO
>> pdo_mysql
>> pdo_sqlite
>> posix
>> Reflection
>> session
>> SimpleXML
>> snmp
>> sockets
>> SPL
>> sqlite3
>> standard
>> tokenizer
>> xml
>> zip
>> zlib
>>
>>
>> I'm using this simple test to reproduce the problem:
>>
>> /tmp/test.php
>> <?php
>>         Print "Hello, World!";
>> ?>
>>
>>
>> /usr/local/bin/php /tmp/test.php
>> Hello, World!Segmentation fault (core dumped)
>>
>>
>> All this makes me sad, especially since my Cacti graphs aren't being 
>> updated any more :( Any help or advise on how I might go about 
>> resolving this please would be very much appreciated. Thank you in 
>> advance for your time and consideration.
>>
>> Kind regards,
>> moggie
>>
>
> try to disable some modules you do not use for cacti for example.
> then try to enable some modules one at the time to see which  is faulty.
>
> Also try to shuffle with the order in which they load.
> I had the same with zabbix, and finally found an order in which my 
> maps did not crash the server any more.
>
> This is the order in my /usr/local/etc/php/extensions.ini
>
> extension=zlib.so
> extension=mysql.so
> extension=gettext.so
> extension=xml.so
> extension=gd.so
> extension=ctype.so
> extension=session.so
> extension=iconv.so
> extension=pdo.so
> extension=pdo_pgsql.so
> extension=pgsql.so
> extension=apc.so
> extension=pdf.so
> extension=bcmath.so
> extension=bz2.so
> extension=curl.so
> extension=dom.so
> extension=mbstring.so
> extension=mysqli.so
> extension=pdo_sqlite.so
> extension=sqlite.so
> extension=sqlite3.so
> extension=json.so
> extension=tokenizer.so
> extension=filter.so
> extension=hash.so
> extension=posix.so
> extension=simplexml.so
> extension=xmlreader.so
> extension=xmlwriter.so
> extension=ldap.so
> extension=mcrypt.so
> extension=openssl.so
> extension=snmp.so
> extension=sockets.so
> extension=zip.so
>
> I do not have all the extensions you have, but maybe this helps you.
>
> regards,
> Johan Hendriks
>
>

Hi Johan,

Thank you for the reply. Unfortunately there is other stuff running on 
this box as well. However, if I don't get any joy from playing with the 
ordering some more, I will have no choice but to try removing modules 
and making things worse before they get better :]

Thanks again,
moggie



More information about the freebsd-ports mailing list