Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 187048 - net-www/apache-2.0.58-r2 virtual host recursion loop (2.0.59-r2 is fine)
Summary: net-www/apache-2.0.58-r2 virtual host recursion loop (2.0.59-r2 is fine)
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-29 18:40 UTC by Whit Blauvelt
Modified: 2007-07-30 22:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Whit Blauvelt 2007-07-29 18:40:01 UTC
Testing a basic virtual hosts setup in 2.0.58-r2 got a loop which LogLevel debug shows as:

[Sun Jul 29 13:41:33 2007] [debug] core.c(2757): [client 12.34.56.78] r->uri = /
[Sun Jul 29 13:41:33 2007] [debug] core.c(2770): [client 12.34.56.78] subrequested from r->uri = /
... [repeats up to LimitInternalRecursion setting - then repeats again, resulting in a huge log and 99% CPU usage]
 
Simply upgrading to 2.0.59-r2 gave the correct response in this case:

[Sun Jul 29 14:12:42 2007] [error] [client 12.34.56.78] Directory index forbidden by rule: /web/denton/dentontaylor/

The case was that the index file was .htm, and DirectoryIndex hadn't been set for that yet.

Reproducible: Always

Steps to Reproduce:
Install apache 2.0.58-r2, set up a virtual host (possibly without an index file in the home directory), visit with browser.

Actual Results:  
System resources sucked up, huge log file generated quickly, apache2 must be stopped.

Expected Results:  
The client browser should just have been sent an error message.

Since 2.0.59-r2 does not have this problem, the suggested solution is to unmask that soon, rather than leave 2.0.58-r2 as the latest apache (if not ~86).

System uname: 2.6.18-gentoo-r6 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 29 Jul 2007 17:30:10 +0000
dev-lang/python:     2.3.5-r3, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="en"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bitmap-fonts cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog jpeg ldap libg++ mailwrapper mbox midi mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl png pppd python readline reflection session snmp spl ssl tcpd truetype truetype-fonts type1-fonts unicode x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Christian Heim (RETIRED) gentoo-dev 2007-07-29 20:22:39 UTC
(In reply to comment #0)
> Testing a basic virtual hosts setup in 2.0.58-r2 got a loop which LogLevel
> debug shows as:
> 
> [Sun Jul 29 13:41:33 2007] [debug] core.c(2757): [client 12.34.56.78] r->uri =
> /
> [Sun Jul 29 13:41:33 2007] [debug] core.c(2770): [client 12.34.56.78]
> subrequested from r->uri = /
> ... [repeats up to LimitInternalRecursion setting - then repeats again,
> resulting in a huge log and 99% CPU usage]
> 
> Simply upgrading to 2.0.59-r2 gave the correct response in this case:
> 
> [Sun Jul 29 14:12:42 2007] [error] [client 12.34.56.78] Directory index
> forbidden by rule: /web/denton/dentontaylor/
> 
> The case was that the index file was .htm, and DirectoryIndex hadn't been set
> for that yet.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> Install apache 2.0.58-r2, set up a virtual host (possibly without an index file
> in the home directory), visit with browser.
> 
> Actual Results:  
> System resources sucked up, huge log file generated quickly, apache2 must be
> stopped.
> 
> Expected Results:  
> The client browser should just have been sent an error message.
> 
> Since 2.0.59-r2 does not have this problem, the suggested solution is to unmask
> that soon, rather than leave 2.0.58-r2 as the latest apache (if not ~86).

Could you please try 2.2.4-r10 ? That's the latest apache which is going to be stabled sooner or later (sooner I hope).
Comment 2 Whit Blauvelt 2007-07-30 00:31:40 UTC
> Could you please try 2.2.4-r10 ? That's the latest apache which is going to be
> stabled sooner or later (sooner I hope).

Can't try it at the moment on the box in question because it regards 1.3.* as a blocker. So after I get the sites on that box happy with 2.0.* I'll go to 2.2.*, but can't get 1.3.* out of the way for 2.2.* before then.

(Is 2.2.* truly incompatible with 1.3.*? Since Gentoo has end-of-lifed 1.*, others in my position will be better of if going to 2.2 without killing 1.3 is possible. 1.3.* and 2.0.* are perfectly happy running together.)
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2007-07-30 22:07:02 UTC
please reopen if this is still an issue with apache 2.2