Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 239201 - www-servers/apache-2.2.9-r1 segfaults with SSL enabled - uClibc/PPC
Summary: www-servers/apache-2.2.9-r1 segfaults with SSL enabled - uClibc/PPC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-30 21:52 UTC by Tom Lloyd
Modified: 2009-07-05 14:43 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 Tom Lloyd 2008-09-30 21:52:43 UTC
Apache starts without any complaint, but upon the first request, (whether this request is http or https), the error log rapidly fills with segfaults - many per second until I stop the Apache service.

I see the following in /var/log/apache2/error_log when the server starts:
[Tue Sep 30 21:42:14 2008] [notice] caught SIGTERM, shutting down
[Tue Sep 30 21:42:20 2008] [notice] Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8g configured -- resuming normal operations

And then, when the first request comes in, I see innumerable entries like this:
[Tue Sep 30 21:42:55 2008] [notice] child pid 6435 exit signal Segmentation fault (11)

I'm using APACHE2_OPTS="-D DEFAULT_VHOST -D PROXY -D SSL -D SSL_DEFAULT_VHOST"

"uname -a" says: Linux muttley 2.6.26-hardened-r1-muttley-1-misc #4 Mon Sep 1 21:19:16 UTC 2008 ppc G2_LE Efika 5200B PowerPC System GNU/Linux

My CHOST is powerpc-gentoo-linux-uclibc

I haven't included emerge --info since this isn't a build problem, but of course I'll provide it if it's relevant anyway.

Apache functions perfectly if -D SSL_DEFAULT_VHOST is removed from its options.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-10-01 02:39:37 UTC
Please post your `emerge --info' too.
Comment 2 Tom Lloyd 2008-10-01 09:48:53 UTC
Portage 2.1.4.4 (uclibc/ppc/hardened, gcc-3.4.6, uclibc-0.9.28.3-r7, 2.6.26-hardened-r1-muttley-1-misc ppc)
=================================================================
System uname: 2.6.26-hardened-r1-muttley-1-misc ppc G2_LE
Timestamp of tree: Tue, 23 Sep 2008 23:45:05 +0000
distcc 2.18.3 powerpc-gentoo-linux-uclibc (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r14, 2.5.2-r7
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r2
sys-devel/automake:  1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="ppc"
CBUILD="powerpc-gentoo-linux-uclibc"
CFLAGS="-O2 -mcpu=603e -pipe"
CHOST="powerpc-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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 /etc/udev/rules.d"
CXXFLAGS="-O2 -mcpu=603e -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-z,relro"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://splig/gentoo-portage"
USE="alsa apache2 bzip2 cgi cli cracklib crypt dri embedded fastcgi hardened ipv6 mudflap mysql ncurses openmp pcre perl php pic ppc python quotas readline reflection samba session sni spl sqlite ssl suhosin syslog tcpd uclibc unicode xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="alias auth_basic authn_alias authn_anon authn_default authn_file authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias proxy proxy_http" APACHE2_MPMS="prefork" CAMERAS="sq905" ELIBC="uclibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2008-10-25 14:00:39 UTC
please provide a backtrace from gdb while running apache with -X
Comment 4 Tom Lloyd 2009-01-07 18:03:29 UTC
Sorry to leave this hanging for such a long time - I've now upgraded to uClibc 0.9.30 and the problem has gone away.