Re: PHP segmentation faults

2011-09-30 Thread Alex Dupre
Moggie ha scritto:
 Unfortunately, for some time now, PHP scripts have been producing
 segmentation faults when executed on one of our systems :(

Have you enabled LINK_THR option in php port?

-- 
Alex Dupre
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: PHP segmentation faults

2011-09-30 Thread Moggie


On 30/09/2011 08:10, Alex Dupre wrote:

Moggie ha scritto:

Unfortunately, for some time now, PHP scripts have been producing
segmentation faults when executed on one of our systems :(

Have you enabled LINK_THR option in php port?



The LINK_THR option was not enabled. I've just enabled it and rebuilt 
the PHP ports, it seems the segmentation fault error has gone away now, 
yay! Thank you :)

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: PHP segmentation faults

2011-09-30 Thread Attos
There is a thread in the archive that discusses this issue.

The thread subject is php5-5.3.6_1 with Segmentation fault (amd64)

Check item 101 in the following page:
http://docs.freebsd.org/mail/archive/2011/freebsd-ports/20110703.freebsd-ports.html

Hope this works.
Cheers

On Fri, Sep 30, 2011 at 8:14 AM, Moggie mog...@elasticmind.net wrote:


 On 30/09/2011 08:10, Alex Dupre wrote:

 Moggie ha scritto:

 Unfortunately, for some time now, PHP scripts have been producing
 segmentation faults when executed on one of our systems :(

 Have you enabled LINK_THR option in php port?



 The LINK_THR option was not enabled. I've just enabled it and rebuilt the
 PHP ports, it seems the segmentation fault error has gone away now, yay!
 Thank you :)

 __**_
 freebsd-ports@freebsd.org mailing list
 http://lists.freebsd.org/**mailman/listinfo/freebsd-portshttp://lists.freebsd.org/mailman/listinfo/freebsd-ports
 To unsubscribe, send any mail to 
 freebsd-ports-unsubscribe@**freebsd.orgfreebsd-ports-unsubscr...@freebsd.org
 




-- 
Attos Janus
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


PHP segmentation faults

2011-09-29 Thread Moggie

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
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: PHP segmentation faults

2011-09-29 Thread johan Hendriks

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



___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: PHP segmentation faults

2011-09-29 Thread Mark Foster
Try using xdebug (another php module) it will produce a stack trace when
it segfaults.

On 09/29/2011 10:29 AM, Moggie wrote:
 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
 ___
 freebsd-ports@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-ports
 To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


-- 
Mark D. Foster m...@foster.cc
http://mark.foster.cc/

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: PHP segmentation faults

2011-09-29 Thread Moggie


On 30/09/2011 00:58, Jase Thew wrote:

On 29/09/2011 18:29, Moggie wrote:

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.


Can you provide a copy of your /usr/local/etc/php/extensions.ini. 
Also, what version of PHP are you referring to?


Regards,

Jase.



Hi,

Sure can (pasted below) and thanks for the reply. Using PHP version 
php5-5.3.8.


I've not had chance to try out the things people have suggested in other 
responses yet, but I will. Thanks again to everyone who has responded :)


Kind regards,
moggie


--- extensions.ini begins ---

extension=session.so
extension=simplexml.so
extension=ctype.so
extension=apc.so
extension=mbstring.so
extension=tokenizer.so
extension=filter.so
extension=mcrypt.so
extension=gd.so
extension=iconv.so
extension=zlib.so
extension=bz2.so
extension=openssl.so
extension=dom.so
extension=hash.so
extension=pdo.so
extension=pdo_mysql.so
extension=pdo_sqlite.so
extension=mysqli.so
extension=mysql.so
extension=sockets.so
extension=xml.so
; additional extension(s) not known by fixphpextorder.sh
extension=sqlite3.so
extension=zip.so
extension=json.so
extension=posix.so
extension=snmp.so

--- extensions.ini ends ---


___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: PHP segmentation faults

2011-09-29 Thread Moggie

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

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org