php5 segfault
    Laszlo Nagy 
    gandalf at shopzeus.com
       
    Wed Oct  8 12:49:04 UTC 2008
    
    
  
uname -a:
FreeBSD shopzeus.com 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #3: Mon Oct  
6 07:50:31 EDT 2008     
gandalf at shopzeus.chello.hu:/usr/obj/usr/src/sys/SHOPZEUS  amd64
when compiling /usr/ports/php5 I see messages like:
bin/sh /usr/ports/lang/php5/work/php-5.2.6/libtool --silent 
--preserve-dup-deps --mode=compile cc  -IZend/ 
-I/usr/ports/lang/php5/work/php-5.2.6/Zend/ -DPHP_ATOM_INC 
-I/usr/ports/lang/php5/work/php-5.2.6/include 
-I/usr/ports/lang/php5/work/php-5.2.6/main 
-I/usr/ports/lang/php5/work/php-5.2.6 -I/usr/local/include/libxml2 
-I/usr/local/include -I/usr/ports/lang/php5/work/php-5.2.6/ext/date/lib 
-I/usr/ports/lang/php5/work/php-5.2.6/TSRM 
-I/usr/ports/lang/php5/work/php-5.2.6/Zend    -O2 -fno-strict-aliasing 
-pipe   -c /usr/ports/lang/php5/work/php-5.2.6/Zend/zend_API.c -o 
Zend/zend_API.lo
So it is using -O2 and -pipe. Is this something that I can disable? It 
might be because we are using postgresql connections. For pages without 
pgsql connection, there is no segfault.
It must be noted that the segfault happens on cleanup. E.g. all web 
sites are working fine, except that we are getting many many segfault 
messages in the logs all the time.
Thanks,
   Laszlo
 
    
    
More information about the freebsd-questions
mailing list