#34581 [Com]: crash with mod_rewrite

2005-10-12 Thread jonathan dot semczyk at telecomlille dot net
 ID:   34581
 Comment by:   jonathan dot semczyk at telecomlille dot net
 Reported By:  phpbugrep-20050921 at pgregg dot com
 Status:   Assigned
 Bug Type: Apache2 related
 Operating System: FreeBSD5.4-STABLE
 PHP Version:  5CVS-2005-09-21 (snap)
 Assigned To:  tony2001
 New Comment:

Thanks Tony, it did work for me.

Jon.


Previous Comments:


[2005-10-12 19:09:00] [EMAIL PROTECTED]

This patch worked for me:
http://tony2001.phpclub.net/dev/tmp/bug34581.diff



[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] [EMAIL PROTECTED]

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=34581edit=1


#34581 [Com]: crash with mod_rewrite

2005-09-27 Thread dave at cc0 dot net
 ID:   34581
 Comment by:   dave at cc0 dot net
 Reported By:  phpbugrep-20050921 at pgregg dot com
 Status:   Feedback
 Bug Type: Apache2 related
 Operating System: FreeBSD5.4-STABLE
 PHP Version:  5CVS-2005-09-21 (snap)
 New Comment:

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


Previous Comments:


[2005-09-22 15:53:58] [EMAIL PROTECTED]

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.



[2005-09-22 11:28:34] [EMAIL PROTECTED]

Do you have any ErrorDocument directive set in any .htaccess file or
httpd.conf?




[2005-09-22 11:10:04] phpbugrep-20050921 at pgregg dot com

more php5-200509211030/config.nice

#! /bin/sh
#
# Created by configure

'./configure' \
'--with-apxs2=/usr/local/apache2/bin/apxs' \
'--with-pgsql' \
'--with-gd' \
'--with-zlib-dir=/usr' \
'--with-jpeg-dir=/usr/local' \
'--with-xpm-dir=/usr/X11R6' \
'--with-ttf=/usr/compat/linux/usr/' \
'--with-freetype-dir=/usr/local' \
'--enable-gd-native-ttf' \
'--with-mime-magic' \
'--enable-bcmath' \
'--with-xmlreader' \
'--with-xsl' \
'--enable-debug' \
$@

Thanks



[2005-09-22 08:32:28] [EMAIL PROTECTED]

What was the configure line you used to configure PHP?
(I can't reproduce this with the one I have..)




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=34581edit=1