Apache Children Stuck on futex
am 24.06.2009 05:52:35 von Sean Thorne--Apple-Mail-10--927099933
Content-Type: text/plain;
charset=US-ASCII;
format=flowed;
delsp=yes
Content-Transfer-Encoding: 7bit
-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:
I've got some Apache Children that are getting stuck on a futex
call. This started happening on a Apache 2.2.6 worker w/ mod_per
2.0.4 install, so I upgraded to Apache 2.2.11 worker w/ mod_perl 2.0.4
and it still continues. I have modules for proxy and php installed as
well, but this problem only presents when using mod_perl and
MaxRequestsPerChild. If I remove mod_perl the Apache children close
as expected. It's easily replicated using an abusive ab test and
turning down MaxRequestsPerChild. I know I could turn off
MaxRequestsPerChild, but I have that on to deal with PHP's poor thread
handling and memory leaks. I could switch to prefork, but the servers
I have don't have enough RAM to handle the load I need them too. Any
help would be appreciated.
This child appears to be waiting for PID 3451, but that PID no
longer exists.
[sthorne@81082-spare ~]$ sudo strace -p 3271
Process 3271 attached - interrupt to quit
futex(0x1b5bbe8, FUTEX_WAIT, 3451, NULL
2. Used Components and their Configuration:
*** mod_perl version 2.000004
*** using /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/
Apache2/BuildConfig.pm
*** Makefile.PL options:
MP_APR_CONFIG => /my_setup/apps/apache/bin/apr-1-config
MP_APR_LIB => aprext
MP_APXS => /my_setup/apps/apache/bin/apxs
MP_COMPAT_1X => 1
MP_GENERATE_XS => 1
MP_LIBNAME => mod_perl
MP_USE_DSO => 1
*** The httpd binary was not found
*** (apr|apu)-config linking info
(apr|apu)-config scripts were not found
*** /usr/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
Platform:
osname=linux, osvers=2.6.9-67.0.7.elsmp, archname=i386-linux-
thread-multi
uname='linux hs20-bc1-5.build.redhat.com 2.6.9-67.0.7.elsmp #1 smp
wed feb 27 04:47:23 est 2008 i686 i686 i386 gnulinux '
config_args='-des -Doptimize=-O2 -g -pipe -m32 -march=i386 -
mtune=pentium4 -Dversion=5.8.5 -Dmyhostname=localhost -
Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -
Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -
Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads -
Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -
Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -
Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less
-isr -Dinc_version_list=5.8.4 5.8.3 5.8.2 5.8.1 5.8.0'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-
strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -
D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2 -g -pipe -m32 -march=i386 -mtune=pentium4',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-
aliasing -pipe -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='3.4.6 20060404 (Red Hat 3.4.6-9)',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -
lc
perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.3.4.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.3.4'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -
Wl,-rpath,/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS
USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
Built under linux
Compiled at Jun 5 2008 07:33:47
%ENV:
PERL_LWP_USE_HTTP_10="1"
@INC:
/usr/lib/perl5/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/5.8.5
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl/5.8.4
/usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl/5.8.4
/usr/lib/perl5/vendor_perl/5.8.3
/usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl
.
*** Packages of interest status:
Apache2 : -
Apache2::Request : -
CGI : 3.05
ExtUtils::MakeMaker: 6.17
LWP : 5.808
mod_perl : -
mod_perl2 : 2.000004
3. This is the core dump trace: (if you get a core dump):
Nothing has cored
This report was generated by /usr/bin/mp2bug on Wed Jun 24 03:36:25
2009 GMT.
-------------8<---------- End Bug Report --------------8<----------
Note: Complete the rest of the details and post this bug report to
modperl
email to modperl-subscribe@perl.apache.org.
--Apple-Mail-10--927099933
Content-Type: text/html;
charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Start Bug Report ------------8<----------
1. Problem =
Description:
I've got some Apache Children that are getting =
stuck on a futex call. This started happening on a Apache 2.2.6 =
worker w/ mod_per 2.0.4 install, so I upgraded to Apache 2.2.11 worker =
w/ mod_perl 2.0.4 and it still continues. I have modules for proxy =
and php installed as well, but this problem only presents when using =
mod_perl and MaxRequestsPerChild. If I remove mod_perl the Apache =
children close as expected. It's easily replicated using an =
abusive ab test and turning down MaxRequestsPerChild. I know I =
could turn off MaxRequestsPerChild, but I have that on to deal with =
PHP's poor thread handling and memory leaks. I could switch to =
prefork, but the servers I have don't have enough RAM to handle the load =
I need them too. Any help would be appreciated.
This =
child appears to be waiting for PID 3451, but that PID no longer =
exists.
[sthorne@81082-spare ~]$ sudo strace -p =
3271
Process 3271 attached - interrupt to =
quit
futex(0x1b5bbe8, FUTEX_WAIT, 3451, NULL
2. Used =
Components and their Configuration:
*** mod_perl version =
2.000004
*** using =
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Apach e2/BuildConfig=
..pm
*** Makefile.PL options:
MP_APR_CONFIG =3D> =
/my_setup/apps/apache/bin/apr-1-config
MP_APR_LIB =
=3D> aprext
MP_APXS =
=3D> =
/my_setup/apps/apache/bin/apxs
MP_COMPAT_1X =3D> =
1
MP_GENERATE_XS =3D> 1
MP_LIBNAME =
=3D> mod_perl
MP_USE_DSO =
=3D> 1
*** The httpd binary was =
not found
*** (apr|apu)-config linking =
info
(apr|apu)-config scripts were not found
*** =
/usr/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion =
5) configuration:
Platform:
osname=3Dlinux, =
osvers=3D2.6.9-67.0.7.elsmp, =
archname=3Di386-linux-thread-multi
uname=3D'linux =
hs20-bc1-5.build.redhat.com 2.6.9-67.0.7.elsmp #1 smp wed feb 27 =
04:47:23 est 2008 i686 i686 i386 gnulinux =
'
config_args=3D'-des -Doptimize=3D-O2 -g -pipe =
-m32 -march=3Di386 -mtune=3Dpentium4 -Dversion=3D5.8.5 =
-Dmyhostname=3Dlocalhost -Dperladmin=3Droot@localhost -Dcc=3Dgcc =
-Dcf_by=3DRed Hat, Inc. -Dinstallprefix=3D/usr -Dprefix=3D/usr =
-Darchname=3Di386-linux -Dvendorprefix=3D/usr -Dsiteprefix=3D/usr =
-Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid =
-Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog =
-Dman3ext=3D3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 =
-Uversiononly -Dpager=3D/usr/bin/less -isr -Dinc_version_list=3D5.8.4 =
5.8.3 5.8.2 5.8.1 5.8.0'
hint=3Drecommended, =
useposix=3Dtrue, =
d_sigaction=3Ddefine
usethreads=3Ddefine =
use5005threads=3Dundef useithreads=3Ddefine =
usemultiplicity=3Ddefine
useperlio=3Ddefine =
d_sfio=3Dundef uselargefiles=3Ddefine =
usesocks=3Dundef
use64bitint=3Dundef =
use64bitall=3Dundef =
uselongdouble=3Dundef
usemymalloc=3Dn, =
bincompat5005=3Dundef
Compiler:
cc=3D'gcc', =
ccflags =3D'-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing =
-pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 =
-I/usr/include/gdbm',
optimize=3D'-O2 -g -pipe -m32 =
-march=3Di386 =
-mtune=3Dpentium4',
cppflags=3D'-D_REENTRANT =
-D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe =
-I/usr/local/include =
-I/usr/include/gdbm'
ccversion=3D'', =
gccversion=3D'3.4.6 20060404 (Red Hat 3.4.6-9)', =
gccosandvers=3D''
intsize=3D4, longsize=3D4, =
ptrsize=3D4, doublesize=3D8, =
byteorder=3D1234
d_longlong=3Ddefine, =
longlongsize=3D8, d_longdbl=3Ddefine, =
longdblsize=3D12
ivtype=3D'long', ivsize=3D4, =
nvtype=3D'double', nvsize=3D8, Off_t=3D'off_t', =
lseeksize=3D8
alignbytes=3D4, =
prototype=3Ddefine
Linker and =
Libraries:
ld=3D'gcc', ldflags =3D' =
-L/usr/local/lib'
libpth=3D/usr/local/lib /lib =
/usr/lib
libs=3D-lresolv -lnsl -lgdbm -ldb -ldl -lm =
-lcrypt -lutil -lpthread -lc
perllibs=3D-lresolv =
-lnsl -ldl -lm -lcrypt -lutil -lpthread =
-lc
libc=3D/lib/libc-2.3.4.so, so=3Dso, =
useshrplib=3Dtrue, =
libperl=3Dlibperl.so
gnulibc_version=3D'2.3.4'
&nb=
sp;Dynamic Linking:
dlsrc=3Ddl_dlopen.xs, dlext=3Dso,=
d_dlsymun=3Dundef, ccdlflags=3D'-Wl,-E =
-Wl,-rpath,/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE '
&nb=
sp; cccdlflags=3D'-fPIC', lddlflags=3D'-shared =
-L/usr/local/lib'
Characteristics of this binary (from =
libperl):
Compile-time options: DEBUGGING MULTIPLICITY =
USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
Built under =
linux
Compiled at Jun 5 2008 =
07:33:47
%ENV:
PERL_LWP_USE_HTTP_10=3D"1"
> @INC:
/usr/lib/perl5/5.8.5/i386-linux-thread-m=
ulti
/usr/lib/perl5/5.8.5
/usr/l=
ib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr=
/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
/u=
sr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
=
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
&nbs=
p;/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
&n=
bsp;/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
=
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/s=
ite_perl/5.8.4
/usr/lib/perl5/site_perl/5.8.3
&nbs=
p; /usr/lib/perl5/site_perl/5.8.2
/usr/lib=
/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0=
/usr/lib/perl5/site_perl
/usr/l=
ib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/u=
sr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
&nbs=
p;/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
=
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
&n=
bsp; /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
&nbs=
p; /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
=
/usr/lib/perl5/vendor_perl/5.8.5
/u=
sr/lib/perl5/vendor_perl/5.8.4
/usr/lib/perl5/vendor_=
perl/5.8.3
/usr/lib/perl5/vendor_perl/5.8.2
=
/usr/lib/perl5/vendor_perl/5.8.1
/usr/lib=
/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl
r> .
*** Packages of interest =
status:
Apache2 =
: =
-
Apache2::Request : -
CGI =
&n=
bsp; : 3.05
ExtUtils::MakeMaker: 6.17
LWP =
&n=
bsp; : 5.808
mod_perl =
: =
-
mod_perl2 : =
2.000004
3. This is the core dump trace: (if you get a core =
dump):
Nothing has cored
This report was generated =
by /usr/bin/mp2bug on Wed Jun 24 03:36:25 2009 =
GMT.
-------------8<---------- End Bug Report =
--------------8<----------
Note: Complete the rest of the =
details and post this bug report to
modperl <at> =
perl.apache.org. To subscribe to the list send an empty
email =
to
href=3D"mailto:modperl-subscribe@perl.apache.org">modperl-su bscribe@perl.a=
pache.org.
=
--Apple-Mail-10--927099933--