Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45527 - mod_perl 1.99.10 1.99.11 hangs Apache2 on shutdown and startup
Summary: mod_perl 1.99.10 1.99.11 hangs Apache2 on shutdown and startup
Status: RESOLVED DUPLICATE of bug 37039
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-23 11:56 UTC by Randy Snow
Modified: 2005-07-17 13:06 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 Randy Snow 2004-03-23 11:56:08 UTC
I have tried all the ebuilds for mod_perl 1.99 that I can get to function all with the same issue.  I have also modified an ebuild and attempted 1.99.13.  Same thing.  When using mod_perl 1.99.11 with apache2 2.0.48-r1 (tried r4 as well) and apache2 2.0.49 apache2 will take a very lengthy amount of time to start and stop.

/etc/init.d/apache start|stop|restart etc

This can be up to a few min or up to an hour.


Strace of strace /usr/sbin/apache2 -X -D PERL

lstat64("/usr/lib/apache2/conf/vhosts/vhosts.conf", {st_mode=S_IFREG|0644, st_size=1695, ...}) = 0
open("/usr/lib/apache2/conf/vhosts/vhosts.conf", O_RDONLY) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=1695, ...}) = 0
read(4, "################# vhosts.conf\n#T"..., 4096) = 1695
read(4, "", 4096)                       = 0
close(4)                                = 0
read(3, "", 4096)                       = 0
close(3)                                = 0
stat64("/usr/sbin/suexec2", {st_mode=S_IFREG|S_ISUID|0710, st_size=11268, ...}) = 0
open("/dev/random", O_RDONLY)           = 3
read(3,

FREEZES above at read(3, then continues on after a LONG period of time:

        "E\356", 2)                     = 2
close(3)                                = 0
open("/dev/random", O_RDONLY)           = 3
read(3, "\200,\\\250C\271", 6)          = 6
close(3)                                = 0
gettimeofday({1080070223, 58237}, NULL) = 0
stat64("/var/www/localhost/htdocs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
socket(PF_INET6, SOCK_STREAM, 0)        = -1 EAFNOSUPPORT (Address family not supported by protocol)
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
getpid()                                = 31826
stat64("/var/www/localhost/htdocs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/usr/lib/apache2/conf/ssl/server.crt", {st_mode=S_IFREG|0400, st_size=782, ...}) = 0
stat64("/usr/lib/apache2/conf/ssl/server.key", {st_mode=S_IFREG|0400, st_size=887, ...}) = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 4
connect(4, {sa_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = -1 ENOENT (No such file or directory)

Works after that very long wait.

Reproducible: Always
Steps to Reproduce:
1.install mod_perl 1.99.11 with apache 2.0.48-r1
2. enabled perl in /etc/conf.d/apache2 -D PERL
3. /etc/init.d/apache2 start

Then wait and wait and wait

Actual Results:  
waited up to 1 hour then apache2 server started and performed as expected

Expected Results:  
apache2 should have started up within a few seconds instead of the 1 hour wait.
 This also effects server shutdown using the /etc/init.d/apache2 script.

Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4-gentoo-r1)
=================================================================
System uname: 2.6.4-gentoo-r1 i686 AMD Athlon(tm) XP 3200+
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/
http://open-systems.ufl.edu/mirrors/gentoo
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow apache2 apm arts berkdb crypt encode foomaticdb gif imap innodb
libg++ libwww mad mbox mikmod mmx mod_php mpeg mysql ncurses nls nsl pam perl
php python readline sasl slang ssl svga tcpd x86 xml xml2 xmms xv zlib"
Comment 1 Randy Snow 2004-03-31 09:24:36 UTC

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