Bug 87505

Summary: converters/php5-recode extension makes apache2 segfault
Product: Ports & Packages Reporter: Diego Escalante <dieguito>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Diego Escalante 2005-10-16 06:50:12 UTC
I have apache2 installed:
Server version: Apache/2.0.54
with php5:
5.0.5
PHP Api Version:         20031224
Zend Module Api No:      20041030
Zend Extension Api No:   220040412
and recode:
Free recode 3.6
Written by Franc,ois Pinard <pinard@iro.umontreal.ca>.

When I load apache2, it segfaults after loading the php5 module, I debugged that the php5-recode module was causing the segfault, but I can't give more information about what is causing it.
If you need more program versions, please contact me.

Fix: 

Uninstall php5-recode
How-To-Repeat: Install apache2, php5 and php5-extensions from the ports.
Run apache2 with the extensions of php5 enabled.
Apache2 segfaults.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2005-10-16 06:51:20 UTC
Responsible Changed
From-To: freebsd-www->ale

Make this a ports PR and assign to maintainer.
Comment 2 andrew 2005-11-16 02:17:04 UTC
1) locate extensions.ini (most likely it is in /usr/local/etc/php/)
2) move line extension=recode.so to the top of the file
3) reload apache

please write me back if that helped

--
Andrew Novikov
iConsultant.biz
Comment 3 Diego Escalante 2005-11-16 22:45:55 UTC
Yes,

Indeed moving extension=recode.so to the start of the file fixed the problem.
However I don't understand why this happens.

Thanks!.

--
"First they ignore you, then they laugh at you,
then they fight you, then you win"  -Ghandi

La primavera llega con dificultad
http://diegoe.blogspot.com
Comment 4 andrew 2005-11-16 23:37:03 UTC
 > Indeed moving extension=recode.so to the start of the file fixed the
 > problem.
 > However I don't understand why this happens.

It is a known issue that recode.so must be loaded before some other 
extensions (notably mysql.so, possibly others).


My suugestions to Maintainers: I am not sure how extensions.ini is 
ordered and is it possible to put recode.so first (that would be best!).

But at least this behavior should be documented.

--
Andrew Novikov
iConsultant.biz
Comment 5 Alex Dupre freebsd_committer freebsd_triage 2006-01-17 07:09:40 UTC
State Changed
From-To: open->closed

Extensions incompatabilities are documented on php web site.