perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Holsman <li...@holsman.net>
Subject Re: panic: MUTEX_DESTROY during global destruction. (using SVN head)
Date Tue, 30 Nov 2004 00:36:04 GMT
console output:
Helios:/src/asf/modperl ianh$ env MOD_PERL_TRACE=g t/TEST -start
[warning] setting ulimit to allow core files
ulimit -c unlimited; /ex/bin/perl /src/asf/modperl/t/TEST -start
/usr/local/apache2/bin/httpd  -d /src/asf/modperl/t -f 
/src/asf/modperl/t/conf/httpd.conf -D APACHE2 -D PERL_USEITHREADS
using Apache/2.1.2-dev (worker MPM)

waiting 300 seconds for server to start: .mod_perl trace flags dump:
  a Off (Apache API interaction)
  c Off (configuration for directive handlers)
  d Off (directive processing)
  e Off (environment variables)
  f Off (filters)
  g On  (globals management)
  h Off (handlers)
  i Off (interpreter pool management)
  m Off (memory allocations)
  o Off (I/O)
  r Off (Perl runtime interaction)
  s Off (Perl sections)
  t Off (benchmark-ish timings)
modperl_init_globals: mod_perl globals are configured

modperl_global_init: init pconf

modperl_global_init: init server_rec

modperl_config_srv_argv_init =>
    0 = httpd
    1 = -wT
    2 = -Mlib=/src/asf/modperl/t
    3 = -e;0
modperl_global_init: init anon_cnt

..[Tue Nov 30 11:29:04 2004] [info] 25 Apache:: modules loaded
[Tue Nov 30 11:29:04 2004] [info] 4 APR:: modules loaded
[Tue Nov 30 11:29:04 2004] [info] base server + 29 vhosts ready to run tests
[Tue Nov 30 11:29:04 2004] [info] hi
.modperl_config_srv_argv_init =>
    0 = httpd
    1 = -I/src/asf/modperl/t
    2 = -e;0
modperl_global_init: init anon_cnt

.......................................................................................................................................................................................................................................................................................................
waiting 300 seconds for server to start: not ok
[  error] giving up after 301 secs. If you think that your system
is slow or overloaded try again with a longer timeout value.
by setting the environment variable APACHE_TEST_STARTUP_TIMEOUT
to a high value (e.g. 600) and repeat the last command.

[  error] server failed to start! (please examine t/logs/error_log)
Helios:/src/asf/modperl ianh$


t/logs/error_log
----------------
panic: MUTEX_DESTROY (22) [modperl_global.c:80] during global destruction.
[Tue Nov 30 11:18:54 2004] [info] Init: Seeding PRNG with 0 bytes of entropy
[Tue Nov 30 11:18:54 2004] [info] Init: Generating temporary RSA private 
keys (512/1024 bits)
[Tue Nov 30 11:18:55 2004] [info] Init: Generating temporary DH 
parameters (512/1024 bits)
[Tue Nov 30 11:18:55 2004] [warn] Init: Session Cache is not configured 
[hint: SSLSessionCache]
[Tue Nov 30 11:18:55 2004] [info] Init: Initializing (virtual) servers 
for SSL
[Tue Nov 30 11:18:55 2004] [info] Server: Apache/2.1.2-dev, Interface: 
mod_ssl/2.1.2-dev, Library: OpenSSL/0.9.7b
END in modperl_extra.pl, pid=22842
END in modperl_extra.pl, pid=22842
panic: MUTEX_DESTROY (22) [modperl_global.c:80] during global destruction.
modperl_global_lock: locking anon_cnt

modperl_global_unlock: unlocking anon_cnt

[Tue Nov 30 11:29:07 2004] [info] Init: Seeding PRNG with 0 bytes of entropy
[Tue Nov 30 11:29:07 2004] [info] Init: Generating temporary RSA private 
keys (512/1024 bits)
[Tue Nov 30 11:29:08 2004] [info] Init: Generating temporary DH 
parameters (512/1024 bits)
[Tue Nov 30 11:29:08 2004] [warn] Init: Session Cache is not configured 
[hint: SSLSessionCache]
[Tue Nov 30 11:29:08 2004] [info] Init: Initializing (virtual) servers 
for SSL
[Tue Nov 30 11:29:08 2004] [info] Server: Apache/2.1.2-dev, Interface: 
mod_ssl/2.1.2-dev, Library: OpenSSL/0.9.7b
modperl_perl_call_list: pid 29377/tid 0xa000a1ec/perl id 0x1d85400 
running 4 END subs
END in modperl_extra.pl, pid=29377
modperl_perl_call_list: pid 29377/tid 0xa000a1ec/perl id 0x18d4800 
running 4 END subs
END in modperl_extra.pl, pid=29377
panic: MUTEX_DESTROY (22) [modperl_global.c:80] during global destruction.


Ian Holsman wrote:
> Stas Bekman wrote:
> 
>> Ian Holsman wrote:
>>
>>> 1. Problem Description:
>>>
>>> Get a panic when trying to start test set... no tests run.
>>> mod_perl/1.99_17 works fine with current setup. (same problem with 
>>> prefork MPM as well)
>>
>>
>>
>> Ian, please try again with the current svn, and if the problem 
>> persists please paste the whole error message. Thanks.
>>
> 
> 
> With the help of Stas on IRC I have narrowed it down to the following 
> section.
> 
> Listen 0.0.0.0:8536
> <VirtualHost _default_:8536>
>     ServerName localhost:8536
>     DocumentRoot /src/asf/modperl/t/htdocs/vhost
> 
>     <IfDefine PERL_USEITHREADS>
>         # a new interpreter pool
>         PerlOptions +Parent
>         PerlInterpStart         1
>         PerlInterpMax           1
>         PerlInterpMinSpare      1
>         PerlInterpMaxSpare      1
>     </IfDefine>
> 
>     # use test system's @INC
>     PerlSwitches -I/src/asf/modperl/t
> 
>     # mp2 modules
>     PerlRequire "/src/asf/modperl/t/conf/modperl_inc.pl"
> 
>     # private to this vhost stuff
>     PerlRequire "/src/asf/modperl/t/htdocs/vhost/startup.pl"
> 
>     # <Location /TestVhost__config> container is added via add_config
>     # in t/htdocs/vhost/startup.pl
> </VirtualHost>
> 
> The error message I get while doing a t/TEST -start is
> [Tue Nov 30 11:01:58 2004] [info] Init: Seeding PRNG with 0 bytes of 
> entropy
> [Tue Nov 30 11:01:58 2004] [info] Init: Generating temporary RSA private 
> keys (512/1024 bits)
> [Tue Nov 30 11:01:58 2004] [info] Init: Generating temporary DH 
> parameters (512/1024 bits)
> [Tue Nov 30 11:01:58 2004] [warn] Init: Session Cache is not configured 
> [hint: SSLSessionCache]
> [Tue Nov 30 11:01:58 2004] [info] Init: Initializing (virtual) servers 
> for SSL
> [Tue Nov 30 11:01:58 2004] [info] Server: Apache/2.1.2-dev, Interface: 
> mod_ssl/2.1.2-dev, Library: OpenSSL/0.9.7b
> END in modperl_extra.pl, pid=22748
> END in modperl_extra.pl, pid=22748
> panic: MUTEX_DESTROY (22) [modperl_global.c:80] during global destruction.
> 
> 
> -- t/REPORT here
> 1. Problem Description:
> 
>   [DESCRIBE THE PROBLEM HERE]
> 
> 2. Used Components and their Configuration:
> 
> *** mod_perl version 1.9918
> 
> *** using /src/asf/modperl/lib/Apache/BuildConfig.pm
> 
> *** Makefile.PL options:
>   MP_APR_LIB     => aprext
>   MP_APXS        => /usr/local/apache2/bin/apxs
>   MP_COMPAT_1X   => 1
>   MP_GENERATE_XS => 1
>   MP_LIBNAME     => mod_perl
>   MP_USE_DSO     => 1
> 
> 
> *** /usr/local/apache2/bin/httpd -V
> Server version: Apache/2.1.2-dev
> Server built:   Nov 29 2004 10:06:47
> Server's Module Magic Number: 20040425:1
> Architecture:   32-bit
> Server MPM:     Worker
>   threaded:     yes (fixed thread count)
>     forked:     yes (variable process count)
> Server compiled with....
>  -D APACHE_MPM_DIR="server/mpm/worker"
>  -D APR_HAS_MMAP
>  -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
>  -D APR_USE_SYSVSEM_SERIALIZE
>  -D APR_USE_PTHREAD_SERIALIZE
>  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
>  -D APR_HAS_OTHER_CHILD
>  -D AP_HAVE_RELIABLE_PIPED_LOGS
>  -D HTTPD_ROOT="/usr/local/apache2"
>  -D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
>  -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
>  -D DEFAULT_ERRORLOG="logs/error_log"
>  -D AP_TYPES_CONFIG_FILE="conf/mime.types"
>  -D SERVER_CONFIG_FILE="conf/httpd.conf"
> 
> 
> *** (apr|apu)-config linking info
> 
>  -L/ex/lib -lapr-1 -lpthread
>  -L/ex/lib -laprutil-1 -ldb-4.3 -lexpat -liconv
> 
> 
> 
> *** /ex/bin/perl -V
> Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
>   Platform:
>     osname=darwin, osvers=7.6.0, archname=darwin-thread-multi-2level
>     uname='darwin helios.local 7.6.0 darwin kernel version 7.6.0: sun 
> oct 10 12:05:27 pdt 2004; root:xnuxnu-517.9.4.obj~1release_ppc power 
> macintosh powerpc '
>     config_args=''
>     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='cc', ccflags ='-faltivec -mcpu=7450 -mtune=7450 -mpowerpc 
> -mpowerpc-gfxopt -fno-common -DPERL_DARWIN -no-cpp-precomp 
> -fno-strict-aliasing -pipe',
>     optimize='-Os',
>     cppflags='-no-cpp-precomp -faltivec -mcpu=7450 -mtune=7450 -mpowerpc 
> -mpowerpc-gfxopt -fno-common -DPERL_DARWIN -no-cpp-precomp 
> -fno-strict-aliasing -pipe'
>     ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build 
> 1671)', gccosandvers=''
>     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
>     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
>     ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
> lseeksize=8
>     alignbytes=8, prototype=define
>   Linker and Libraries:
>     ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/ex/lib 
> -L/usr/local/lib'
>     libpth=/ex/lib /usr/local/lib /usr/lib
>     libs=-ldbm -ldb -ldl -lm -lc
>     perllibs=-ldl -lm -lc
>     libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a
>     gnulibc_version=''
>   Dynamic Linking:
>     dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
>     cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup 
> -L/ex/lib -L/usr/local/lib'
> 
> 
> Characteristics of this binary (from libperl):
>   Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES 
> PERL_IMPLICIT_CONTEXT
>   Built under darwin
>   Compiled at Nov 29 2004 12:51:46
>   %ENV:
>     PERL_LWP_USE_HTTP_10="1"
>   @INC:
>     /ex/lib/perl5/5.8.6/darwin-thread-multi-2level
>     /ex/lib/perl5/5.8.6
>     /ex/lib/perl5/site_perl/5.8.6/darwin-thread-multi-2level
>     /ex/lib/perl5/site_perl/5.8.6
>     /ex/lib/perl5/site_perl
>     /opt/pma/lib
>     .
> 
> *** Packages of interest status:
> 
> Apache::Request: -
> CGI            : 3.05
> LWP            : 5.801
> mod_perl       : 1.9917
> 
> 
> 3. This is the core dump trace: (if you get a core dump):
> 
>   [CORE TRACE COMES HERE]
> 
> This report was generated by t/REPORT on Tue Nov 30 00:07:17 2004 GMT.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message