From: jfgingras at cegep-ste-foy dot qc dot ca Operating system: FreeBSD 6.1-RELEASE PHP version: 5.2.1 PHP Bug Type: Reproducible crash Bug description: open_basedir crash httpd
Description: ------------ If open_basedir if defined in a <Directory>, any call to a php file, event if this file is empty, will either throw a Bus error or a Segmentation fault. This problem appears as soon as I upgraded php 5.1.6 to 5.2.1 I didn't change anything in any configuration file of apache, and I did not upgrade apache either. My Apache version is 2.0.58 When I remove the open_basedir directive, it solve the problem. Here's the logfile of apache: [...] [Mon Feb 26 09:21:43 2007] [notice] child pid 31432 exit signal Segmentation fault (11) [Mon Feb 26 09:27:13 2007] [notice] child pid 65784 exit signal Bus error (10) [Mon Feb 26 09:27:44 2007] [notice] child pid 65537 exit signal Segmentation fault (11) [Mon Feb 26 09:28:27 2007] [notice] child pid 68909 exit signal Bus error (10) [Mon Feb 26 09:34:19 2007] [notice] child pid 32270 exit signal Bus error (10) [Mon Feb 26 09:36:58 2007] [notice] child pid 68902 exit signal Bus error (10) [Mon Feb 26 09:37:13 2007] [notice] child pid 69863 exit signal Bus error (10) Reproduce code: --------------- Here's what I have in my <Directory>: <Directory /var/www/htdocs/stages/> php_admin_value open_basedir /var/www/htdocs/stages php_admin_value upload_tmp_dir /var/www/htdocs/stages/tmp php_value register_globals 1 </Directory> -- Edit bug report at http://bugs.php.net/?id=40641&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40641&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40641&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40641&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40641&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40641&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40641&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40641&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40641&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40641&r=support Expected behavior: http://bugs.php.net/fix.php?id=40641&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40641&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40641&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40641&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40641&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40641&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40641&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40641&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40641&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40641&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40641&r=mysqlcfg