#34581 [Fbk->Opn]: crash with mod_rewrite

From: Date: Sat, 01 Oct 2005 22:17:59 +0000
Subject: #34581 [Fbk->Opn]: crash with mod_rewrite
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85868@lists.php.net to get a copy of this message
 ID:               34581
 User updated by:  phpbugrep-20050921 at pgregg dot com
 Reported By:      phpbugrep-20050921 at pgregg dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Apache2 related
 Operating System: FreeBSD5.4-STABLE
 PHP Version:      5CVS-2005-09-21 (snap)
 New Comment:

Email sent as requested.


Previous Comments:
------------------------------------------------------------------------

[2005-10-01 23:45:14] tony2001@php.net

Send the login details to tony2001@php.net, I'll try to have a look at
it.

------------------------------------------------------------------------

[2005-09-28 12:28:09] phpbugrep-20050921 at pgregg dot com

hmm, I have already given enough information on reproducing it.  
However, I have set up a FreeBSD machine for you to login (with root
access) if you wish so you may login and examine the setup.

I have setup a minimal apache2 httpd and a _minimal_ PHP (oh a
--disable-everything-implied would be nice ;)   gdb6.3 is installed.

Please message Qube or Derick on Efnet for the login credentials - if
you have @ in the appropriate channel you'll get them.

------------------------------------------------------------------------

[2005-09-27 18:20:03] dave at cc0 dot net

PHP5.1RC1 segfaults apache when a mod_rewrite is used in an .htaccess.
My .htaccess: 

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !.gif$
RewriteCond %{REQUEST_FILENAME} !.jpg$
RewriteRule ^(.*)$ /home/lists/index.php [T=application/x-httpd-php,L]

Commenting out last (RewriteRule) does not segfault apache, but
obviously does not work as needed.

The related apache error log lines:

[Mon Sep 26 09:07:25 2005] [notice] child pid 10619 exit signal
Segmentation fault (11)
[Mon Sep 26 09:07:26 2005] [error] [client 1.2.3.4] PHP Warning: 
Unknown: SAFE MODE Restriction in effect. The script whose uid is 0 is
not allowed to access /home/lists/index.php owned by uid 8000 in
Unknown on line 138769176
[Mon Sep 26 09:07:26 2005] [error] [client 1.2.3.4] PHP Warning: 
Unknown: failed to open stream: No such file or directory in Unknown on
line 138769176
[Mon Sep 26 09:07:26 2005] [error] [client 1.2.3.4] PHP Warning: 
Unknown: Failed opening '/home/lists/index.php' for inclusion
(include_path='/home/include:/home/lists/include') in Unknown on line
138769176

------------------------------------------------------------------------

[2005-09-22 15:53:58] tony2001@php.net

I can't reproduce it either (tried both with Apache 1.3.x & Apache
2.x).
And valgrind doesn't say a word about it.
Please add some more info on how to reproduce it.


------------------------------------------------------------------------

[2005-09-22 13:01:59] phpbugrep-20050921 at pgregg dot com

I did, but I have now turned it off. Makes no difference though.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/34581

-- 
Edit this bug report at http://bugs.php.net/?id=34581&edit=1


Thread (18 messages)

« previous php.bugs (#85868) next »