[mp2] panic pthread_key_create failed in apache 2.2/mod_perl 2.0.4

[mp2] panic pthread_key_create failed in apache 2.2/mod_perl 2.0.4

am 21.04.2011 18:17:17 von Ben Evans

--bcaec544ec9a3720a204a17013c4
Content-Type: text/plain; charset=ISO-8859-1

Hi,

-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:

I am running a web server configured via cpanel/whm ( Apache/2.2.16 (Unix)
mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5
mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Phusion_Passenger/2.2.15 mod_perl/2.0.4 Perl/v5.8.8 )
with multiple sites hosted, some are ruby-on-rails / passenger sites and one
is Request Tracker - a perl based support
ticket system. RT is the only perl application I am running.

Every so often (about once every two weeks) I get this error in my apache
error log "panic: pthread_key_create failed"
during a process restart, which then brings down apache completely until
another process restart happens or I manually
restart it.

Doing some investigation on google points me at a bug that was fixed in
mod_perl 1.999_21 on January 22, 2005, which is
odd to me since I am running mod_perl 2.0.4.

Here are some posts and whatnot from that bugfix:

http://www.mail-archive.com/dev@perl.apache.org/msg09562.htm l
http://www.mail-archive.com/perl5-porters@perl.org/msg83913. html
https://bugzilla.redhat.com/show_bug.cgi?id=73486

2. Used Components and their Configuration:

*** mod_perl version 2.000004

*** using /home/cpeasyapache/src/mod_perl-2.0.4/lib/Apache2/BuildConfi g.pm

*** Makefile.PL options:
MP_APR_LIB => aprext
MP_APXS => /usr/local/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

-L/usr/local/apache/lib -laprutil-1 -lexpat
-L/usr/local/apache/lib -lapr-1 -luuid -lrt -lcrypt -lpthread -ldl

*** /usr/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=linux, osvers=2.6.18-53.el5, archname=i386-linux-thread-multi
uname='linux builder10.centos.org 2.6.18-53.el5 #1 smp mon nov 12
02:14:55 est 2007 i686 athlon i386 gnulinux '
config_args='-des -Doptimize=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386
-mtune=generic -fasynchronous-unwind-tables -Dversion=5.8.8
-Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat,
Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux-thread-multi
-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=n -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less
-isr -Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_sethostent_r_proto
-Ud_endprotoent_r_proto -Ud_setprotoent_r_proto -Ud_endservent_r_proto
-Ud_setservent_r_proto -Dinc_version_list=5.8.7 5.8.6 5.8.5
-Dscriptdir=/usr/bin'
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 -fno-strict-aliasing
-pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables',
cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-Wdeclaration-after-statement -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='4.1.2 20080704 (Red Hat 4.1.2-46)',
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.5.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.5'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE '
cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -L/usr/local/lib'

Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES
USE_PERLIO USE_REENTRANT_API
Built under linux
Compiled at Sep 3 2009 10:26:46
%ENV:
PERL_LWP_USE_HTTP_10="1"
@INC:
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.8/i386-linux-thread-multi
/usr/lib/perl5/5.8.8
.

*** Packages of interest status:

Apache2 : -
Apache2::Request : -
CGI : 3.52
ExtUtils::MakeMaker: 6.56
LWP : 6.01
mod_perl : -
mod_perl2 : 2.000004

3. This is the core dump trace: (if you get a core dump):

n/a

This report was generated by /usr/bin/mp2bug on Thu Apr 21 15:38:59 2011
GMT.

-------------8<---------- End Bug Report --------------8<----------

--bcaec544ec9a3720a204a17013c4
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,

-------------8<---------- Start Bug Re=
port ------------8<----------
1. Problem Description:
v>
I am running a web server configured via cpanel/whm ( Apac=
he/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5=A0

mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Phusio=
n_Passenger/2.2.15 mod_perl/2.0.4 Perl/v5.8.8 )=A0
with multiple =
sites hosted, some are ruby-on-rails / passenger sites and one is Request T=
racker - a perl based support=A0

ticket system. RT is the only perl application I am running.
>
Every so often (about once every two weeks) I get this erro=
r in my apache error log "panic: pthread_key_create failed"=A0 iv>
during a process restart, which then brings down apache completely unt=
il another process restart happens or I manually=A0
restart it. div>

Doing some investigation on google points me at a b=
ug that was fixed in mod_perl 1.999_21 on January 22, 2005, which is=A0 v>
odd to me since I am running mod_perl 2.0.4.

=
Here are some posts and whatnot from that bugfix:




2. Used Components and their Configuration:
<=
br>
*** mod_perl version 2.000004

*** us=
ing /home/cpeasyapache/src/mod_perl-2.0.4/lib/Apache2/BuildConfi g.pm


*** Makefile.PL options:
=A0 MP_APR_LIB =A0 =
=A0 =3D> aprext
=A0 MP_APXS =A0 =A0 =A0  => /usr/local/=
apache/bin/apxs
=A0 MP_COMPAT_1X =A0 =3D> 1
=A0 MP_G=
ENERATE_XS =3D> 1

=A0 MP_LIBNAME =A0 =A0 =3D> mod_perl
=A0 MP_USE_DSO =A0 =A0 =
=3D> 1

*** The httpd binary was not found
=

*** (apr|apu)-config linking info

<=
div>=A0-L/usr/local/apache/lib -laprutil-1 =A0 =A0 -lexpat

=A0-L/usr/local/apache/lib -lapr-1 -luuid -lrt -lcrypt =A0-lpthread -l=
dl

*** /usr/bin/perl -V
Summary of my pe=
rl5 (revision 5 version 8 subversion 8) configuration:
=A0 Platfo=
rm:

=A0 =A0 osname=3Dlinux, osvers=3D2.6.18-53.el5, archname=3Di386-linux-=
thread-multi
=A0 =A0 uname=3D'linux 10.centos.org">builder10.centos.org 2.6.18-53.el5 #1 smp mon nov 12 02:=
14:55 est 2007 i686 athlon i386 gnulinux '

=A0 =A0 config_args=3D'-des -Doptimize=3D-O2 -g -pipe -Wall -Wp,-D=
_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector --param=3Dssp-buffer-siz=
e=3D4 -m32 -march=3Di386 -mtune=3Dgeneric -fasynchronous-unwind-tables -Dve=
rsion=3D5.8.8 -Dmyhostname=3Dlocalhost -Dperladmin=3Droot@localhost -Dcc=3D=
gcc -Dcf_by=3DRed Hat, Inc. -Dinstallprefix=3D/usr -Dprefix=3D/usr -Darchna=
me=3Di386-linux-thread-multi -Dvendorprefix=3D/usr -Dsiteprefix=3D/usr -Dus=
eshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_s=
emun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3D3pm -Dusepe=
rlio -Dinstallusrbinperl=3Dn -Ubincompat5005 -Uversiononly -Dpager=3D/usr/b=
in/less -isr -Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_sethostent_r=
_proto -Ud_endprotoent_r_proto -Ud_setprotoent_r_proto -Ud_endservent_r_pro=
to -Ud_setservent_r_proto -Dinc_version_list=3D5.8.7 5.8.6 5.8.5 -Dscriptdi=
r=3D/usr/bin'

=A0 =A0 hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Ddefine >
=A0 =A0 usethreads=3Ddefine use5005threads=3Dundef useithreads=3Ddefi=
ne usemultiplicity=3Ddefine
=A0 =A0 useperlio=3Ddefine d_sfio=3Du=
ndef uselargefiles=3Ddefine usesocks=3Dundef

=A0 =A0 use64bitint=3Dundef use64bitall=3Dundef uselongdouble=3Dundef<=
/div>
=A0 =A0 usemymalloc=3Dn, bincompat5005=3Dundef
=A0 Comp=
iler:
=A0 =A0 cc=3D'gcc', ccflags =3D'-D_REENTRANT -D=
_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr=
/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -I/usr/include/=
gdbm',

=A0 =A0 optimize=3D'-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -=
fexceptions -fstack-protector --param=3Dssp-buffer-size=3D4 -m32 -march=3Di=
386 -mtune=3Dgeneric -fasynchronous-unwind-tables',
=A0 =A0 c=
ppflags=3D'-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdecl=
aration-after-statement -I/usr/local/include -I/usr/include/gdbm'

=A0 =A0 ccversion=3D'', gccversion=3D'4.1.2 20080704 (Red =
Hat 4.1.2-46)', gccosandvers=3D''
=A0 =A0 intsize=3D4=
, longsize=3D4, ptrsize=3D4, doublesize=3D8, byteorder=3D1234
=A0=
=A0 d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine, longdblsize=
=3D12

=A0 =A0 ivtype=3D'long', ivsize=3D4, nvtype=3D'double'=
, nvsize=3D8, Off_t=3D'off_t', lseeksize=3D8
=A0 =A0 alig=
nbytes=3D4, prototype=3Ddefine
=A0 Linker and Libraries:
v>=A0 =A0 ld=3D'gcc', ldflags =3D' -L/usr/local/lib'

=A0 =A0 libpth=3D/usr/local/lib /lib /usr/lib
=A0 =A0 libs=
=3D-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
iv>=A0 =A0 perllibs=3D-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc<=
/div>
=A0 =A0 gnulibc_version=3D'2.5'
=A0 Dynamic Linking:=
=A0 =A0 dlsrc=3Ddl_dlopen.xs, dlext=3Dso, d_dlsymun=3Dundef, ccd=
lflags=3D'-Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-mult=
i/CORE'

=A0 =A0 cccdlflags=3D'-fPIC', lddlflags=3D'-shared -O2 -g =
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector --para=
m=3Dssp-buffer-size=3D4 -m32 -march=3Di386 -mtune=3Dgeneric -fasynchronous-=
unwind-tables -L/usr/local/lib'


Characteristics of this binary (from libperl):
v>=A0 Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT

=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 USE_PERLIO USE_REENTRA=
NT_API
=A0 Built under linux
=A0 Compiled at Sep =A03 2=
009 10:26:46
=A0 %ENV:
=A0 =A0 PERL_LWP_USE_HTTP_10=3D&=
quot;1"
=A0 @INC:

=A0 =A0 /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
iv>=A0 =A0 /usr/lib/perl5/site_perl/5.8.8

=A0 =A0 /usr/lib/perl5/vendor_perl/5.8.8
=A0 =A0 /usr/lib/pe=
rl5/vendor_perl
=A0 =A0 /usr/lib/perl5/5.8.8/i386-linux-thread-mu=
lti
=A0 =A0 /usr/lib/perl5/5.8.8
=A0 =A0 .
r>
*** Packages of interest status:


Apache2 =A0 =A0 =A0 =A0 =A0 =A0: -
Apache2::R=
equest =A0 : -
CGI =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: 3.52
v>ExtUtils::MakeMaker: 6.56
LWP =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: =
6.01
mod_perl =A0 =A0 =A0 =A0 =A0 : -

mod_perl2 =A0 =A0 =A0 =A0 =A0: 2.000004

3. Th=
is is the core dump trace: (if you get a core dump):

iv>=A0 n/a

This report was generated by /usr/bin/m=
p2bug on Thu Apr 21 15:38:59 2011 GMT.


-------------8<---------- End Bug Report -----------=
---8<----------



--bcaec544ec9a3720a204a17013c4--

Re: [mp2] panic pthread_key_create failed in apache 2.2/mod_perl 2.0.4

am 05.05.2011 16:48:17 von Ben Evans

--001636e0adb8b31c4c04a28876ea
Content-Type: text/plain; charset=ISO-8859-1

Anyone have any input on this? I am at a loss in finding a solution other
than to start looking at migrating away from Request Tracker and mod_perl.

On Thu, Apr 21, 2011 at 09:17, Ben Evans wrote:

> Hi,
>
> -------------8<---------- Start Bug Report ------------8<----------
> 1. Problem Description:
>
> I am running a web server configured via cpanel/whm ( Apache/2.2.16 (Unix)
> mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5
> mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
> Phusion_Passenger/2.2.15 mod_perl/2.0.4 Perl/v5.8.8 )
> with multiple sites hosted, some are ruby-on-rails / passenger sites and
> one is Request Tracker - a perl based support
> ticket system. RT is the only perl application I am running.
>
> Every so often (about once every two weeks) I get this error in my apache
> error log "panic: pthread_key_create failed"
> during a process restart, which then brings down apache completely until
> another process restart happens or I manually
> restart it.
>
> Doing some investigation on google points me at a bug that was fixed in
> mod_perl 1.999_21 on January 22, 2005, which is
> odd to me since I am running mod_perl 2.0.4.
>
> Here are some posts and whatnot from that bugfix:
>
> http://www.mail-archive.com/dev@perl.apache.org/msg09562.htm l
> http://www.mail-archive.com/perl5-porters@perl.org/msg83913. html
> https://bugzilla.redhat.com/show_bug.cgi?id=73486
>
> 2. Used Components and their Configuration:
>
> *** mod_perl version 2.000004
>
> *** using /home/cpeasyapache/src/mod_perl-2.0.4/lib/Apache2/BuildConfi g.pm
>
> *** Makefile.PL options:
> MP_APR_LIB => aprext
> MP_APXS => /usr/local/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
>
> -L/usr/local/apache/lib -laprutil-1 -lexpat
> -L/usr/local/apache/lib -lapr-1 -luuid -lrt -lcrypt -lpthread -ldl
>
> *** /usr/bin/perl -V
> Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
> Platform:
> osname=linux, osvers=2.6.18-53.el5, archname=i386-linux-thread-multi
> uname='linux builder10.centos.org 2.6.18-53.el5 #1 smp mon nov 12
> 02:14:55 est 2007 i686 athlon i386 gnulinux '
> config_args='-des -Doptimize=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386
> -mtune=generic -fasynchronous-unwind-tables -Dversion=5.8.8
> -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red
> Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr
> -Darchname=i386-linux-thread-multi -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=n -Ubincompat5005
> -Uversiononly -Dpager=/usr/bin/less -isr -Dd_gethostent_r_proto
> -Ud_endhostent_r_proto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto
> -Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_setservent_r_proto
> -Dinc_version_list=5.8.7 5.8.6 5.8.5 -Dscriptdir=/usr/bin'
> 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 -fno-strict-aliasing
> -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE
> -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
> optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
> -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
> -fasynchronous-unwind-tables',
> cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
> -Wdeclaration-after-statement -I/usr/local/include -I/usr/include/gdbm'
> ccversion='', gccversion='4.1.2 20080704 (Red Hat 4.1.2-46)',
> 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.5.so, so=so, useshrplib=true, libperl=libperl.so
> gnulibc_version='2.5'
> Dynamic Linking:
> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E
> -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE '
> cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
> -fasynchronous-unwind-tables -L/usr/local/lib'
>
> Characteristics of this binary (from libperl):
> Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
> PERL_MALLOC_WRAP USE_ITHREADS USE_LARGE_FILES
> USE_PERLIO USE_REENTRANT_API
> Built under linux
> Compiled at Sep 3 2009 10:26:46
> %ENV:
> PERL_LWP_USE_HTTP_10="1"
> @INC:
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
> /usr/lib/perl5/site_perl/5.8.8
> /usr/lib/perl5/site_perl
> /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
> /usr/lib/perl5/vendor_perl/5.8.8
> /usr/lib/perl5/vendor_perl
> /usr/lib/perl5/5.8.8/i386-linux-thread-multi
> /usr/lib/perl5/5.8.8
> .
>
> *** Packages of interest status:
>
> Apache2 : -
> Apache2::Request : -
> CGI : 3.52
> ExtUtils::MakeMaker: 6.56
> LWP : 6.01
> mod_perl : -
> mod_perl2 : 2.000004
>
> 3. This is the core dump trace: (if you get a core dump):
>
> n/a
>
> This report was generated by /usr/bin/mp2bug on Thu Apr 21 15:38:59 2011
> GMT.
>
> -------------8<---------- End Bug Report --------------8<----------
>
>

--001636e0adb8b31c4c04a28876ea
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Anyone have any input on this? I am at a loss in finding a solution other t=
han to start looking at migrating away from Request Tracker and mod_perl. r>

On Thu, Apr 21, 2011 at 09:17, Ben Evans <=
span dir=3D"ltr"><
jedifreeman@g=
mail.com
> wrote:

x #ccc solid;padding-left:1ex;">
Hi,

---------=
----8<---------- Start Bug Report ------------8<----------

1. Problem Description:

I am running a web server =
configured via cpanel/whm ( Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/0.9=
..8e-fips-rhel5=A0

mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Phusio=
n_Passenger/2.2.15 mod_perl/2.0.4 Perl/v5.8.8 )=A0
with multiple =
sites hosted, some are ruby-on-rails / passenger sites and one is Request T=
racker - a perl based support=A0


ticket system. RT is the only perl application I am running.
>
Every so often (about once every two weeks) I get this erro=
r in my apache error log "panic: pthread_key_create failed"=A0 iv>

during a process restart, which then brings down apache completely unt=
il another process restart happens or I manually=A0
restart it. div>

Doing some investigation on google points me at a b=
ug that was fixed in mod_perl 1.999_21 on January 22, 2005, which is=A0 v>

odd to me since I am running mod_perl 2.0.4.

=
Here are some posts and whatnot from that bugfix:






2. Used Components and their Configuration:
<=
br>
*** mod_perl version 2.000004

*** us=
ing /home/cpeasyapache/src/mod_perl-2.0.4/lib/Apache2/BuildConfi g.pm



*** Makefile.PL options:
=A0 MP_APR_LIB =A0 =
=A0 =3D> aprext
=A0 MP_APXS =A0 =A0 =A0  => /usr/local/=
apache/bin/apxs
=A0 MP_COMPAT_1X =A0 =3D> 1
=A0 MP_G=
ENERATE_XS =3D> 1


=A0 MP_LIBNAME =A0 =A0 =3D> mod_perl
=A0 MP_USE_DSO =A0 =A0 =
=3D> 1

*** The httpd binary was not found
=

*** (apr|apu)-config linking info

<=
div>=A0-L/usr/local/apache/lib -laprutil-1 =A0 =A0 -lexpat


=A0-L/usr/local/apache/lib -lapr-1 -luuid -lrt -lcrypt =A0-lpthread -l=
dl

*** /usr/bin/perl -V
Summary of my pe=
rl5 (revision 5 version 8 subversion 8) configuration:
=A0 Platfo=
rm:


=A0 =A0 osname=3Dlinux, osvers=3D2.6.18-53.el5, archname=3Di386-linux-=
thread-multi
=A0 =A0 uname=3D'linux 10.centos.org" target=3D"_blank">builder10.centos.org 2.6.18-53.el5 #1 =
smp mon nov 12 02:14:55 est 2007 i686 athlon i386 gnulinux '


=A0 =A0 config_args=3D'-des -Doptimize=3D-O2 -g -pipe -Wall -Wp,-D=
_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector --param=3Dssp-buffer-siz=
e=3D4 -m32 -march=3Di386 -mtune=3Dgeneric -fasynchronous-unwind-tables -Dve=
rsion=3D5.8.8 -Dmyhostname=3Dlocalhost -Dperladmin=3Droot@localhost -Dcc=3D=
gcc -Dcf_by=3DRed Hat, Inc. -Dinstallprefix=3D/usr -Dprefix=3D/usr -Darchna=
me=3Di386-linux-thread-multi -Dvendorprefix=3D/usr -Dsiteprefix=3D/usr -Dus=
eshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_s=
emun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3D3pm -Dusepe=
rlio -Dinstallusrbinperl=3Dn -Ubincompat5005 -Uversiononly -Dpager=3D/usr/b=
in/less -isr -Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_sethostent_r=
_proto -Ud_endprotoent_r_proto -Ud_setprotoent_r_proto -Ud_endservent_r_pro=
to -Ud_setservent_r_proto -Dinc_version_list=3D5.8.7 5.8.6 5.8.5 -Dscriptdi=
r=3D/usr/bin'


=A0 =A0 hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Ddefine >
=A0 =A0 usethreads=3Ddefine use5005threads=3Dundef useithreads=3Ddefi=
ne usemultiplicity=3Ddefine
=A0 =A0 useperlio=3Ddefine d_sfio=3Du=
ndef uselargefiles=3Ddefine usesocks=3Dundef


=A0 =A0 use64bitint=3Dundef use64bitall=3Dundef uselongdouble=3Dundef<=
/div>
=A0 =A0 usemymalloc=3Dn, bincompat5005=3Dundef
=A0 Comp=
iler:
=A0 =A0 cc=3D'gcc', ccflags =3D'-D_REENTRANT -D=
_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr=
/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -I/usr/include/=
gdbm',


=A0 =A0 optimize=3D'-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -=
fexceptions -fstack-protector --param=3Dssp-buffer-size=3D4 -m32 -march=3Di=
386 -mtune=3Dgeneric -fasynchronous-unwind-tables',
=A0 =A0 c=
ppflags=3D'-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdecl=
aration-after-statement -I/usr/local/include -I/usr/include/gdbm'


=A0 =A0 ccversion=3D'', gccversion=3D'4.1.2 20080704 (Red =
Hat 4.1.2-46)', gccosandvers=3D''
=A0 =A0 intsize=3D4=
, longsize=3D4, ptrsize=3D4, doublesize=3D8, byteorder=3D1234
=A0=
=A0 d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine, longdblsize=
=3D12


=A0 =A0 ivtype=3D'long', ivsize=3D4, nvtype=3D'double'=
, nvsize=3D8, Off_t=3D'off_t', lseeksize=3D8
=A0 =A0 alig=
nbytes=3D4, prototype=3Ddefine
=A0 Linker and Libraries:
v>=A0 =A0 ld=3D'gcc', ldflags =3D' -L/usr/local/lib'


=A0 =A0 libpth=3D/usr/local/lib /lib /usr/lib
=A0 =A0 libs=
=3D-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
iv>=A0 =A0 perllibs=3D-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc<=
/div>
=A0 =A0 libc=3D/lib/ nk">libc-2.5.so, so=3Dso, useshrplib=3Dtrue, libperl=3Dlibperl.so


=A0 =A0 gnulibc_version=3D'2.5'
=A0 Dynamic Linking:=
=A0 =A0 dlsrc=3Ddl_dlopen.xs, dlext=3Dso, d_dlsymun=3Dundef, ccd=
lflags=3D'-Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-mult=
i/CORE'


=A0 =A0 cccdlflags=3D'-fPIC', lddlflags=3D'-shared -O2 -g =
-pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector --para=
m=3Dssp-buffer-size=3D4 -m32 -march=3Di386 -mtune=3Dgeneric -fasynchronous-=
unwind-tables -L/usr/local/lib'



Characteristics of this binary (from libperl):
v>=A0 Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
=
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PERL_MALLOC_WRAP USE_ITHREA=
DS USE_LARGE_FILES


=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 USE_PERLIO USE_REENTRA=
NT_API
=A0 Built under linux
=A0 Compiled at Sep =A03 2=
009 10:26:46
=A0 %ENV:
=A0 =A0 PERL_LWP_USE_HTTP_10=3D&=
quot;1"
=A0 @INC:


=A0 =A0 /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
iv>=A0 =A0 /usr/lib/perl5/site_perl/5.8.8
=A0 =A0 /usr/lib/perl5/=
site_perl
=A0 =A0 /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thr=
ead-multi


=A0 =A0 /usr/lib/perl5/vendor_perl/5.8.8
=A0 =A0 /usr/lib/pe=
rl5/vendor_perl
=A0 =A0 /usr/lib/perl5/5.8.8/i386-linux-thread-mu=
lti
=A0 =A0 /usr/lib/perl5/5.8.8
=A0 =A0 .
r>
*** Packages of interest status:



Apache2 =A0 =A0 =A0 =A0 =A0 =A0: -
Apache2::R=
equest =A0 : -
CGI =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: 3.52
v>ExtUtils::MakeMaker: 6.56
LWP =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: =
6.01
mod_perl =A0 =A0 =A0 =A0 =A0 : -


mod_perl2 =A0 =A0 =A0 =A0 =A0: 2.000004

3. Th=
is is the core dump trace: (if you get a core dump):

iv>=A0 n/a

This report was generated by /usr/bin/m=
p2bug on Thu Apr 21 15:38:59 2011 GMT.



-------------8<---------- End Bug Report -----------=
---8<----------





--001636e0adb8b31c4c04a28876ea--

Re: [mp2] panic pthread_key_create failed in apache 2.2/mod_perl 2.0.4

am 05.05.2011 18:55:51 von Fred Moyer

Have you tried 2.0.5?

On Thu, May 5, 2011 at 7:48 AM, Ben Evans wrote:
> Anyone have any input on this? I am at a loss in finding a solution other
> than to start looking at migrating away from Request Tracker and mod_perl=
..
>
> On Thu, Apr 21, 2011 at 09:17, Ben Evans wrote:
>>
>> Hi,
>> -------------8<---------- Start Bug Report ------------8<----------
>> 1. Problem Description:
>> I am running a web server configured via cpanel/whm ( Apache/2.2.16 (Uni=
x)
>> mod_ssl/2.2.16 OpenSSL/0.9.8e-fips-rhel5
>> mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
>> Phusion_Passenger/2.2.15 mod_perl/2.0.4 Perl/v5.8.8 )
>> with multiple sites hosted, some are ruby-on-rails / passenger sites and
>> one is Request Tracker - a perl based support
>> ticket system. RT is the only perl application I am running.
>> Every so often (about once every two weeks) I get this error in my apach=
e
>> error log "panic: pthread_key_create failed"
>> during a process restart, which then brings down apache completely until
>> another process restart happens or I manually
>> restart it.
>> Doing some investigation on google points me at a bug that was fixed in
>> mod_perl 1.999_21 on January 22, 2005, which is
>> odd to me since I am running mod_perl 2.0.4.
>> Here are some posts and whatnot from that bugfix:
>> http://www.mail-archive.com/dev@perl.apache.org/msg09562.htm l
>> http://www.mail-archive.com/perl5-porters@perl.org/msg83913. html
>> https://bugzilla.redhat.com/show_bug.cgi?id=3D73486
>> 2. Used Components and their Configuration:
>> *** mod_perl version 2.000004
>> *** using /home/cpeasyapache/src/mod_perl-2.0.4/lib/Apache2/BuildConfi g.=
pm
>> *** Makefile.PL options:
>> =A0 MP_APR_LIB =A0 =A0 =3D> aprext
>> =A0 MP_APXS =A0 =A0 =A0  => /usr/local/apache/bin/apxs
>> =A0 MP_COMPAT_1X =A0 =3D> 1
>> =A0 MP_GENERATE_XS =3D> 1
>> =A0 MP_LIBNAME =A0 =A0 =3D> mod_perl
>> =A0 MP_USE_DSO =A0 =A0 =3D> 1
>> *** The httpd binary was not found
>> *** (apr|apu)-config linking info
>> =A0-L/usr/local/apache/lib -laprutil-1 =A0 =A0 -lexpat
>> =A0-L/usr/local/apache/lib -lapr-1 -luuid -lrt -lcrypt =A0-lpthread -ldl
>> *** /usr/bin/perl -V
>> Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
>> =A0 Platform:
>> =A0 =A0 osname=3Dlinux, osvers=3D2.6.18-53.el5, archname=3Di386-linux-th=
read-multi
>> =A0 =A0 uname=3D'linux builder10.centos.org 2.6.18-53.el5 #1 smp mon nov=
12
>> 02:14:55 est 2007 i686 athlon i386 gnulinux '
>> =A0 =A0 config_args=3D'-des -Doptimize=3D-O2 -g -pipe -Wall
>> -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector
>> --param=3Dssp-buffer-size=3D4 -m32 -march=3Di386 -mtune=3Dgeneric
>> -fasynchronous-unwind-tables -Dversion=3D5.8.8 -Dmyhostname=3Dlocalhost
>> -Dperladmin=3Droot@localhost -Dcc=3Dgcc -Dcf_by=3DRed Hat, Inc.
>> -Dinstallprefix=3D/usr -Dprefix=3D/usr -Darchname=3Di386-linux-thread-mu=
lti
>> -Dvendorprefix=3D/usr -Dsiteprefix=3D/usr -Duseshrplib -Dusethreads
>> -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndb=
m
>> -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3D3pm -Duseperlio
>> -Dinstallusrbinperl=3Dn -Ubincompat5005 -Uversiononly -Dpager=3D/usr/bin=
/less
>> -isr -Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_sethostent_r_prot=
o
>> -Ud_endprotoent_r_proto -Ud_setprotoent_r_proto -Ud_endservent_r_proto
>> -Ud_setservent_r_proto -Dinc_version_list=3D5.8.7 5.8.6 5.8.5
>> -Dscriptdir=3D/usr/bin'
>> =A0 =A0 hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Ddefine
>> =A0 =A0 usethreads=3Ddefine use5005threads=3Dundef useithreads=3Ddefine
>> usemultiplicity=3Ddefine
>> =A0 =A0 useperlio=3Ddefine d_sfio=3Dundef uselargefiles=3Ddefine usesock=
s=3Dundef
>> =A0 =A0 use64bitint=3Dundef use64bitall=3Dundef uselongdouble=3Dundef
>> =A0 =A0 usemymalloc=3Dn, bincompat5005=3Dundef
>> =A0 Compiler:
>> =A0 =A0 cc=3D'gcc', ccflags =3D'-D_REENTRANT -D_GNU_SOURCE -fno-strict-a=
liasing
>> -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SO=
URCE
>> -D_FILE_OFFSET_BITS=3D64 -I/usr/include/gdbm',
>> =A0 =A0 optimize=3D'-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=3D2 -fexcep=
tions
>> -fstack-protector --param=3Dssp-buffer-size=3D4 -m32 -march=3Di386 -mtun=
e=3Dgeneric
>> -fasynchronous-unwind-tables',
>> =A0 =A0 cppflags=3D'-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pip=
e
>> -Wdeclaration-after-statement -I/usr/local/include -I/usr/include/gdbm'
>> =A0 =A0 ccversion=3D'', gccversion=3D'4.1.2 20080704 (Red Hat 4.1.2-46)'=
,
>> gccosandvers=3D''
>> =A0 =A0 intsize=3D4, longsize=3D4, ptrsize=3D4, doublesize=3D8, byteorde=
r=3D1234
>> =A0 =A0 d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine, longd=
blsize=3D12
>> =A0 =A0 ivtype=3D'long', ivsize=3D4, nvtype=3D'double', nvsize=3D8, Off_=
t=3D'off_t',
>> lseeksize=3D8
>> =A0 =A0 alignbytes=3D4, prototype=3Ddefine
>> =A0 Linker and Libraries:
>> =A0 =A0 ld=3D'gcc', ldflags =3D' -L/usr/local/lib'
>> =A0 =A0 libpth=3D/usr/local/lib /lib /usr/lib
>> =A0 =A0 libs=3D-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthr=
ead -lc
>> =A0 =A0 perllibs=3D-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
>> =A0 =A0 libc=3D/lib/libc-2.5.so, so=3Dso, useshrplib=3Dtrue, libperl=3Dl=
ibperl.so
>> =A0 =A0 gnulibc_version=3D'2.5'
>> =A0 Dynamic Linking:
>> =A0 =A0 dlsrc=3Ddl_dlopen.xs, dlext=3Dso, d_dlsymun=3Dundef, ccdlflags=
=3D'-Wl,-E
>> -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE '
>> =A0 =A0 cccdlflags=3D'-fPIC', lddlflags=3D'-shared -O2 -g -pipe -Wall
>> -Wp,-D_FORTIFY_SOURCE=3D2 -fexceptions -fstack-protector
>> --param=3Dssp-buffer-size=3D4 -m32 -march=3Di386 -mtune=3Dgeneric
>> -fasynchronous-unwind-tables -L/usr/local/lib'
>> Characteristics of this binary (from libperl):
>> =A0 Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PERL_MALLOC_WRAP USE_ITH=
READS USE_LARGE_FILES
>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 USE_PERLIO USE_REENTRANT=
_API
>> =A0 Built under linux
>> =A0 Compiled at Sep =A03 2009 10:26:46
>> =A0 %ENV:
>> =A0 =A0 PERL_LWP_USE_HTTP_10=3D"1"
>> =A0 @INC:
>> =A0 =A0 /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
>> =A0 =A0 /usr/lib/perl5/site_perl/5.8.8
>> =A0 =A0 /usr/lib/perl5/site_perl
>> =A0 =A0 /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
>> =A0 =A0 /usr/lib/perl5/vendor_perl/5.8.8
>> =A0 =A0 /usr/lib/perl5/vendor_perl
>> =A0 =A0 /usr/lib/perl5/5.8.8/i386-linux-thread-multi
>> =A0 =A0 /usr/lib/perl5/5.8.8
>> =A0 =A0 .
>> *** Packages of interest status:
>> Apache2 =A0 =A0 =A0 =A0 =A0 =A0: -
>> Apache2::Request =A0 : -
>> CGI =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: 3.52
>> ExtUtils::MakeMaker: 6.56
>> LWP =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0: 6.01
>> mod_perl =A0 =A0 =A0 =A0 =A0 : -
>> mod_perl2 =A0 =A0 =A0 =A0 =A0: 2.000004
>> 3. This is the core dump trace: (if you get a core dump):
>> =A0 n/a
>> This report was generated by /usr/bin/mp2bug on Thu Apr 21 15:38:59 2011
>> GMT.
>> -------------8<---------- End Bug Report --------------8<----------
>
>