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

Fred Moyer <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
Have you tried 2.0.5?

On Thu, May 5, 2011 at 7:48 AM, Ben Evans <[email protected]> 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 <[email protected]> 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/[email protected]/msg09562.html
>> http://www.mail-archive.com/[email protected]/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/BuildConfig.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<----------
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.