Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 92398

Summary: net-www/apache-2.0.54 has segfaulting child process and therefore no pages are served
Product: Gentoo Linux Reporter: Martin Wegner <gentoo-bugs>
Component: [OLD] ServerAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Martin Wegner 2005-05-12 09:31:58 UTC
After upgrade to version 2.0.54 no page was delivered by the webserver any longer:

% wget http://localhost/index.html
--18:26:53--  http://localhost/index.html
           => `index.html'
Resolving localhost... 127.0.0.1
Connecting to localhost[127.0.0.1]:80... connected.
HTTP request sent, awaiting response... 
18:26:53 ERROR -1: No data received.

In the same time, the apache error log shows this:

[Thu May 12 18:26:53 2005] [notice] child pid 4842 exit signal Segmentation fault (11)

Reproducible: Always
Steps to Reproduce:
1. emerge =apache-2.0.54
2. /etc/init.d/apache2 restart
3. wget http://localhost/index.html

Actual Results:  
No page is served, some child process crashes.

Expected Results:  
Page should be served.

% emerge info
Portage 2.0.51.21-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.5-r0, 2.6.11-mw i686)
=================================================================
System uname: 2.6.11-mw i686 AMD Athlon(tm) XP 3200+
Gentoo Base System version 1.6.11
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.2.3-r5, 2.3.5
sys-apps/sandbox:    1.2.5-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r8
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -mmmx -msse -m3dnow -mfpmath=sse -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -mmmx -msse -m3dnow -mfpmath=sse -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://mirror.switch.ch/mirror/gentoo/ http://gentoo.osuosl.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib acl alsa apache2 apm avi bash-completion berkdb
bitmap-fonts bonobo bzlib cdparanoia cdr crypt cups curl dedicated dga
divx4linux doc dvd eds emboss encode escreen fam fbcon flac foomaticdb fortran
gd gdbm gif gimpprint gnome gstreamer gtk gtk2 imagemagick imap imlib ipv6 java
jpeg libg++ libwww mad mailwrapper mbox mmx motif mozdevelop mozilla mozsvg mp3
mpeg mysql ncurses nls no-htdocs ogg oggvorbis opengl oss pam pcre pdflib perl
png python quicktime readline real rtc ruby samba sdl silverxp slang spell sse
ssl stencil-buffer svg svga tcltk tcpd tetex tiff truetype truetype-fonts
type1-fonts userlocales vim-with-x vorbis xchattext xine xml xml2 xmms xprint xv
zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Martin Wegner 2005-05-12 10:06:05 UTC
Also tried 2.0.53 (downgrade to formerly working version), 2.0.54-r3 and rebuilding all mod_* (mod_php and mod_python here). Nothing helped. Will try more.
Comment 2 Nathan W. Labadie 2005-05-12 13:03:53 UTC
Same problem here. Downgrading to apr-0.9.6 and apr-util-0.9.6 and recompiling apache seems to fix the problem. Must be a bug in apr.
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2005-05-12 15:01:17 UTC
assuming dupe, otherwise reopen please

*** This bug has been marked as a duplicate of 92314 ***
Comment 4 Harm Geerts 2005-05-22 18:52:45 UTC
emerge apr apr-util apache mod_<all_mods_installed>

NOTE: you need to stop and then start apache
restarting (with SIGHUP) causes the childs to segfault

This fixed the segfaulting for me.

You might not need to rebuild the mod_* packages but I'm not gonna waste more
cpu cycles on that :)