Bug 78235

Summary: lang/php4 segfaults with both xslt and ZendOptimizer loaded
Product: Ports & Packages Reporter: Martin Dragun <dragun>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Martin Dragun 2005-03-01 11:00:34 UTC
PHP module causes segmentation fault when trying to start apache. This
only happens if both ZendOptimizer and xslt modules are loaded in
php.ini. Each one of these modules works fine if loaded without the
other one.

The same happens if trying to run the cli version of php from command
line with both modules loaded

[root@dw2]-[/root]# uname -rs
FreeBSD 5.3-STABLE
[root@dw2]-[/root]# php -v
PHP 4.3.10 (cli) (built: Jan  3 2005 20:58:49)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
     with Zend Extension Manager v1.0.6, Copyright (c) 2003-2004, by 
Zend Technologies
     with Zend Optimizer v2.5.7, Copyright (c) 1998-2004, by Zend 
Technologies
Segmentation fault (core dumped)
Comment 1 Volker Stolz freebsd_committer freebsd_triage 2005-03-09 18:07:37 UTC
Responsible Changed
From-To: freebsd-i386->freebsd-ports-bugs

Reclassify
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2005-03-20 20:17:26 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Disambiguate and assign.
Comment 3 chuck.burkins 2005-06-15 10:54:12 UTC
I can reproduce this behavior with pspell (using the php4-extensions-1.0
port to configure and build a pspell.so) and Zend Optimizer 2.5.10 on
FreeBSD 4.11.

I have a workaround in my case, after working with the zend group at
some length.

When I changed my Makefile in /usr/ports/lang/php4 to from
this (now commented) :
#CONFIGURE_ARGS= --enable-versioning \
# --enable-memory-limit \
# --with-layout=GNU \
# --with-config-file-scan-dir=${PREFIX}/etc/php \
# --disable-all

to this:

CONFIGURE_ARGS= --enable-memory-limit \
--with-layout=GNU \
--with-config-file-scan-dir=${PREFIX}/etc/php \
--with-pspell \
--disable-all

and then did a
make deinstall; make install clean
my problems were resolved. I now have a working server with both Zend
Optimizer and pspell on FreeBSD 4.11. I realize that this might not be
possible with xslt and certainly not to the modular design the port
maintainer is aspiring too, but it worked for me.

-Chuck Burkins
Comment 4 Sam Lawrance freebsd_committer freebsd_triage 2005-12-20 06:54:23 UTC
State Changed
From-To: open->feedback

Is this still an issue?  Can you reproduce it on a recently 
updated system?
Comment 5 Alex Dupre freebsd_committer freebsd_triage 2006-01-17 07:04:59 UTC
State Changed
From-To: feedback->closed

No feedback on recent versions.