Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207946 - www-servers/apache-2.2.[68] mod_autoindex causes thread to run at 100% cpu
Summary: www-servers/apache-2.2.[68] mod_autoindex causes thread to run at 100% cpu
Status: RESOLVED DUPLICATE of bug 139451
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-28 19:05 UTC by Spooky Ghost
Modified: 2008-01-28 21:18 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 Spooky Ghost 2008-01-28 19:05:47 UTC
I have a directory with a large number of subdirs (XFS filesystem).  When I try and browse this in a (reasonably) default apache configuration the apache thread serving the page hits 100% CPU and never generates the page.  

Reproducible: Always

Steps to Reproduce:
1. Create directory with lots of subirs
mkdir /var/www/localhost/test
cd /var/www/localhost/test
for i in `seq -w 1 3000` ; do mkdir $i`echo $i | md5sum | awk '{print $1}'` ; done

(Don't know if the total length of text that makes up the names or simply the number is important)

2. lynx http://localhost/test/


Actual Results:  
Use top an and see apache thread at 100% cpu, try again from a different client and there will be another crashed thread.

Expected Results:  
Directory listing rendered in browser.

System is running Xen, happens in domU and dom0.  Tried various Apache indexing options but always yields the same result.

Portage 2.1.3.19 (default-linux/amd64/2007.0/no-multilib, gcc-4.1.2, glibc-2.6.1-r0, 2.6.20-xen-r6 x86_64)
=================================================================
System uname: 2.6.20-xen-r6 x86_64 AMD Opteron(tm) Processor 242
Timestamp of tree: Sun, 27 Jan 2008 16:46:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
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.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /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 /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=opteron -O3 -pipe"
DISTDIR="/misc/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="ccache distlocks metadata-transfer noautoaccts parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.virginmedia.com http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--progress --stats"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://<dom0>.dingwall.me.uk/gentoo-portage"
USE="3dnow X Xaw3d aac aalib acl acpi aim alsa amd64 apache2 arts audiofile avi bash-completion berkdb bitmap-fonts bluetooth bonobo bzip2 caps cdb cdr cjk cli cpdflib cracklib crypt cups curl dba dbm dbus dga directfb divx4linux doc dri dts dvb dvd dvdr encode esd exif expat fam fbcon fftw flac flash foomaticdb fortran ftp gd gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml hal iconv icq imagemagick imap imlib innodb ipv6 irmc isdnlog jabber java jbig joystick jpeg jpeg2k kde kerberos lcms ldap libedit libwww lirc lm_sensors mad maildir mailwrapper mhash midi mime ming mmx mng mp3 mpeg msn mudflap mysql ncurses nls nptl nptlonly offensive ogg openal opengl openmp oscar pam pcre pdf pdflib perl php png postgres ppds pppd python qt3 quicktime readline reflection samba sasl sdl seamonkey session slp snmp spell spl sse sse2 ssl svg tcl tcltk tcpd tetex theora tiff tk truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vhosts videos vorbis wmf xine xinerama xml xml2 xorg xpm xsl xv xvid yahoo zlib" ALSA_CARDS="emu10k1 intel8x0" 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" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse vmmouse joystick" KERNEL="linux" LCD_DEVICES="mtxorb xosd text ncurses" LIRC_DEVICES="hauppauge" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia mga vesa r128 radeon vmware vga"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Spooky Ghost 2008-01-28 20:33:28 UTC
Using gdb attach to pid, execute bt:  (This example was on ext2)

#0  0x00002ac32c0ff5b5 in __lxstat64 () from /lib/libc.so.6
#1  0x00002ac32b3d65c7 in apr_stat () from /usr/lib/libapr-1.so.0
#2  0x0000000000436391 in ap_directory_walk ()
#3  0x000000000042ff89 in ?? ()
#4  0x0000000000436bd9 in ap_process_request_internal ()
#5  0x0000000000437820 in ap_sub_req_method_uri ()
#6  0x00002aaaad0f6070 in ?? () from /usr/lib64/apache2/modules/mod_dir.so
#7  0x0000000000436ec8 in ap_process_request_internal ()
#8  0x0000000000437638 in ap_sub_req_lookup_dirent ()
#9  0x00002aaaac8dde0b in ?? ()
   from /usr/lib64/apache2/modules/mod_autoindex.so
#10 0x00002aaaac8de8d5 in ?? ()
   from /usr/lib64/apache2/modules/mod_autoindex.so
#11 0x000000000043bc0a in ap_invoke_handler ()
#12 0x00000000004482e8 in ap_process_request ()
#13 0x000000000044530c in ?? ()
#14 0x00000000004416e9 in ap_process_connection ()
#15 0x000000000044cf83 in ?? ()
#16 0x000000000044d2b4 in ?? ()
#17 0x000000000044d810 in ap_mpm_run ()
#18 0x0000000000425b99 in main ()
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2008-01-28 21:18:57 UTC
see comment 44 on bug 139451

*** This bug has been marked as a duplicate of bug 139451 ***

*** This bug has been marked as a duplicate of bug 139451 ***