From:             dirk at bean-it dot nl
Operating system: Debian 5.0
PHP version:      5.3.1
PHP Bug Type:     Reproducible crash
Bug description:  Upgrading to php 5.3 > Application works but apache segfaults

Description:
------------
Upgrading to php 5.3 > Application works but apache segfaults

I've upgraded from 5.2.11 to 5.3.1. Our application works fine when
accessed from a browser, however the apache error log fills with messages
like:

[Fri Dec 04 11:24:59 2009] [notice] child pid 28025 exit signal
Segmentation fault (11)

Each request causes a message like this.

This is not happening when using 5.2.11. I've tried to locate the problem
by stepping through the code with the Zend debugger. Unfortunately, the
problem does not occur when doing this.

I've followed the instructions and created a backtrace (see below). The
weird thing is, PHP compiled with --enable-debug, does not crash. I does
give tons of "Memory leak" messages in the apache error.log. I'm not very
in to this, so I hope this information gives somebody a clue.

I've also tried a snapshot (5.3-200912040930), this doesn't work either,
same segfaults.

I'm more than happy to provide more info, test things, change things...
Just let me know.

./configure options (I cannot reduce this set, the application will stop
working)

'./configure' \
'--with-config-file-path=/etc' \
'--with-apxs2=/usr/bin/apxs2' \
'--with-gettext' \
'--with-libxml-dir=/usr/local' \
'--with-mysqli=/usr/bin/mysql_config' \
'--with-mcrypt' \
'--with-iconv' \
'--enable-mbstring' \
'--with-zlib=/usr' \
'--with-xsl' \
'--with-curl' \
'--with-gd' \
'--with-jpeg-dir=/usr/include' \
'--with-png-dir=/usr/include' \
'--with-openssl' \
'--with-freetype-dir' \
'--enable-gd-native-ttf' \
"$@"

Actual result:
--------------
Backtrace (created running the snapshot, without debug):

(gdb) bt
#0  0xb6e63777 in zval_mark_grey (pz=0x9fd0cf8) at
/root/php5.3-200912040930/Zend/zend_gc.c:360
#1  0xb6e63d35 in gc_collect_cycles () at
/root/php5.3-200912040930/Zend/zend_gc.c:417
#2  0xb6e48285 in zend_deactivate () at
/root/php5.3-200912040930/Zend/zend.c:900
#3  0xb6df767f in php_request_shutdown (dummy=0x0) at
/root/php5.3-200912040930/main/main.c:1606
#4  0xb6ec8aa9 in php_handler (r=0x9bc31d0) at
/root/php5.3-200912040930/sapi/apache2handler/sapi_apache2.c:493
#5  0x0807a1c9 in ap_run_handler ()
#6  0x0807d5e1 in ap_invoke_handler ()
#7  0x0808af00 in ap_internal_redirect ()
#8  0xb73356c3 in ?? () from /usr/lib/apache2/modules/mod_rewrite.so
#9  0x09bc31a0 in ?? ()
#10 0x09bb8d38 in ?? ()
#11 0xb7339bb7 in ?? () from /usr/lib/apache2/modules/mod_rewrite.so
#12 0x09bc3138 in ?? ()
#13 0x00000000 in ?? ()


-- 
Edit bug report at http://bugs.php.net/?id=50382&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=50382&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=50382&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=50382&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=50382&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50382&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=50382&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=50382&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=50382&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=50382&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=50382&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=50382&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=50382&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=50382&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=50382&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50382&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50382&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=50382&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=50382&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=50382&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=50382&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=50382&r=mysqlcfg

Reply via email to