php 5.4 under freebsd 7 - segmentation fault

Hi all,
I've got problems with 3 php extensions - openssl, ldap and curl. The ports are:

Code:
php5-openssl-5.4.5
php5-ldap-5.4.5
php5-curl-5.4.5

PHP crash every time with segmentation fault when one of those three is enabled.

Code:
# php --version
PHP 5.4.5 (cli) (built: Jul 26 2012 11:08:22) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
Segmentation fault: 11 (core dumped)

I was trying to rebuild the every one of those three, even the openssl port but without success - problem still exists. Any suggestions are welcome!

P.S. Below is my freebsd version with generic kernel
Code:
7.4-STABLE FreeBSD 7.4-STABLE #0: Mon Jul 25 14:44:17 EEST 2011
 
Do you have any CFLAGS or similar in /etc/make.conf? If so, remove them.
 
SirDice said:
Do you have any CFLAGS or similar in /etc/make.conf? If so, remove them.

Below is make.conf

Code:
# cat /etc/make.conf
WITHOUT_X11=yes
WITHOUT-X11=yes

# Apache suexec configuration options
SUEXEC_DOCROOT=/var/www/vhosts

# GCC compiler optimisations
#CPUTYPE=athlon-xp
#CFLAGS= -O2 -pipe -funroll-loops -ffast-math
#COPTFLAGS= -O2 -pipe -funroll-loops -ffast-math

# added by use.perl 2012-06-08 17:40:48
PERL_VERSION=5.14.2

Flags was commented long time ago. Those extensions and the php port itself was build without any flags.
 
saiman said:
Flags was commented long time ago. Those extensions and the php port itself was build without any flags.
Ok, that's good. It's the most common cause of strange crashes.
 
SirDice said:
Ok, that's good. It's the most common cause of strange crashes.

Questions is - what to do? Wait for port update and hope it's because the port or maybe upgrade to last version of FreeBSD 7 or even 8 hopping it happens because the system? Actually the php itself works well, maybe I can "disable" somehow core dumps and just wait to upgrade the port. Or can try to contact the port maintainer but suppose he'll be not able to help me. Actually is there anyone else with FreeBSD 7 and similar problems with those php5 extensions or it's just me?
 
Sorry, I have no idea why it's crashing. Perhaps it's some incompatible combination of options that were turned on? When you rebuild the ports did you choose the default options?
 
Problem disappeared after upgrade to 8.3 RELEASE. I'm going to rebuild all ports - just in case.
 
I'm having the same problem, with the addition of php5-ftp also causing a segfault.
I was just wondering, had you installed openssl from ports on your 7.4? Or were you using stock openssl from 7.4?
I have it installed from ports and I'm wondering if this clashes here, with maybe some ports using stock openssl and some using ports openssl...
 
Back
Top