Apache dumping core since the php changes due to recode.so ?(reply)

Arnold Cavazos Jr. abcjr at abcjr.net
Sat May 7 12:20:37 PDT 2005

I don't know about PHP5, but under PHP4 recode.so _must_ be loaded 
before mysql.so and imap.so in /usr/local/etc/php/extensions.ini or 
apache will dump core.


Arnold Cavazos, Jr.		abcjr at abcjr . net

On Sun, May 01, 2005 at 09:59:07PM -0400, Bryant Eadon wrote:
> Yes, I am seeing the same thing -- I am stracing it and find that after my 
> install of PHP5 on x86, something tanks.
> I have upgraded (make deinstall  of mod_php4 , make install of mod_php5 )   
> but the system is still broken.
> Checking the httpd.core with GDB wasn't very helpful.  I installed strace 
> from ports and checked the output as the process ran with :   sudo strace 
>  httpd -X     --- I kept getting segfaults ..  So I safely dropped the 
> output to file:   sudo strace -o file.out httpd -X
> Checking the strace output and what was going on I saw there was a problem 
> with recode.so a module compiled in with PHP5.  With some google searching 
> I came up with this post, which, when I renamed the file it indeed allowed 
> me to fix the problem, but I wanted to know what was really happening.
> So, with a bit more help on EFnet #php I was able to determine that 
> recode.so doesn't agree with a couple different files,  here is a website 
> -- check the Note at the bottom for some in depth details!
> http://us3.php.net/manual/en/ref.recode.php
> To summarize it:
> 1.  Don't include recode.so unless you really need it because it conflicts 
> with various other .so files.
> 2.  Fixing how your php.ini load order might fix the problem -- load the 
> recode before others.
> My solution was to drop recode.  Is this a bug ?  I'm not familiar with bug 
> submission guidelines .. if anyone would like to forward this to the 
> developer (or if you're the developer) I'll happily provide more details.
> Later,
> -- 
> Bryant Eadon
> Computer Systems Engineer
> Rensselaer Polytechnic Institute
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"

Arnold Cavazos, Jr.		abcjr at abcjr . net

More information about the freebsd-ports mailing list