Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107488 - apache-2.0.54-r31 seg faulting when serving pages
Summary: apache-2.0.54-r31 seg faulting when serving pages
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-28 03:50 UTC by Rodrigo Severo
Modified: 2005-09-29 07:15 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 Rodrigo Severo 2005-09-28 03:50:56 UTC
I have two freshly installed machines where apache-2.0.54-r31 seg faults on
every attempt to serve a page. This same ebuild wokrs fine on a long time
installed machine frequently updated.

Reproducible: Always
Steps to Reproduce:
1. start apache-2.0.54-r31
2. Try to access index.html
3.

Actual Results:  
Apache seg faults with messages like the following in error_log:

[Wed Sep 28 07:21:30 2005] [notice] child pid 18296 exit signal Segmentation
fault (11)

Expected Results:  
Served the requested page and not seg faulted.

katsuhiro rodrigo # emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r1,
2.6.11-win4lin i686)
=================================================================
System uname: 2.6.11-win4lin i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
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.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=i686 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /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/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=i686 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distcc distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.ccccom.com http://gentoo.mirror.sdv.fr
http://distro.ibiblio.org/pub/Linux/distributions/gentoo/
http://gentoo.mirrors.pair.com/ http://gentoo.osuosl.org/"
LANG="pt_BR"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-fabrica"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib alsa apm arts audiofile avi bitmap-fonts bzip2 bzlib
cddb cdparanoia cdr crypt cups curl dga dts dvd edl eds emboss encode faac faad
fam fame ffmpeg flac foomaticdb fortran gd gdbm gif gimpprint gmp gpm gstreamer
gtk2 imagemagick imlib jbig jpeg jpeg2k kde kdeenablefinal lcms ldap libcaca
libg++ libwww live lzo mad matroska md5sum mikmod mjpeg mng motif mp3 mpeg mysql
ncurses nls ogg oggvorbis opengl oss pam pdflib perl png postgres ppds python qt
quicktime readline real ruby samba scanner sdl speex spell ssl svg svga tcpd tga
theora tiff truetype truetype-fonts type1-fonts unicode vcd vorbis win32codecs
wmf xine xinerama xml2 xmms xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Rodrigo Severo 2005-09-28 06:05:22 UTC
After seeing bug #90737 I tried recompiling apache with more conservative CFLAGS
(-O2 -pipe -march=i686). I tried it despite the fact that my other machine has
apache working fine with more agressive CFLAGS. Well sadly the problem remained.

Here is the emerge info for this new compile:

katsuhiro rodrigo # emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r1,
2.6.11-win4lin i686)
=================================================================
System uname: 2.6.11-win4lin i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
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.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /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/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distcc distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.ccccom.com http://gentoo.mirror.sdv.fr
http://distro.ibiblio.org/pub/Linux/distributions/gentoo/
http://gentoo.mirrors.pair.com/ http://gentoo.osuosl.org/"
LANG="pt_BR"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-fabrica"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib alsa apm arts audiofile avi bitmap-fonts bzip2 bzlib
cddb cdparanoia cdr crypt cups curl dga dts dvd edl eds emboss encode faac faad
fam fame ffmpeg flac foomaticdb fortran gd gdbm gif gimpprint gmp gpm gstreamer
gtk2 imagemagick imlib jbig jpeg jpeg2k kde kdeenablefinal lcms ldap libcaca
libg++ libwww live lzo mad matroska md5sum mikmod mjpeg mng motif mp3 mpeg mysql
ncurses nls ogg oggvorbis opengl oss pam pdflib perl png postgres ppds python qt
quicktime readline real ruby samba scanner sdl speex spell ssl svg svga tcpd tga
theora tiff truetype truetype-fonts type1-fonts unicode vcd vorbis win32codecs
wmf xine xinerama xml2 xmms xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS

Any ideas?
Comment 2 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2005-09-28 18:10:35 UTC
Please see if rebuilding apr, apr-util, apache, and then all of your add-on
modules solves the problem for you. Detailed instructions here:
http://www.gentoo.org/doc/en/apache-troubleshooting.xml.

If you can't get that to work, please provide a strace and/or backtrace of the
segfault. Do so by starting apache like so:

(${APACHE2_OPTS} should be whatever you have for that variable in
/etc/conf.d/apache2

strace /usr/sbin/apache2 -X ${APACHE2_OPTS}
(do similiar with gdb for a backtrace)

Thanks!
Comment 3 Rodrigo Severo 2005-09-29 07:15:46 UTC
The procedures described in
http://www.gentoo.org/doc/en/apache-troubleshooting.xml fixed this issue.

I believe this bug can be closed.

Thanks for your attention and help.