You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Matthew Darwin <ma...@mdarwin.ca> on 2003/09/30 16:07:38 UTC

[mp2] segfault at startup under perl 5.8.1 and mod_perl-1.99_10-dev

When I start httpd without the
    LoadModule perl_module modules/mod_perl.so
All is good.  When I add the line above, and start "httpd -X"
apache crashes before I even request the first page.

Has anyone else seen this problem?



#0  0x403124c3 in Perl_sv_upgrade () from /foo2/modules/mod_perl.so
#1  0x40316362 in Perl_sv_setpvn () from /foo2/modules/mod_perl.so
#2  0x402bd48a in perl_construct () from /foo2/modules/mod_perl.so
#3  0x402a02fc in modperl_startup (s=0x8113598, p=0x80d2690) at 
mod_perl.c:230
#4  0x402a1401 in modperl_init (base_server=0x8113598, p=0x80d2690) at 
mod_perl.c:421
#5  0x402a15ce in modperl_hook_init (pconf=0x80d2690, plog=0x810e780, 
ptemp=0x8114798, s=0x8113598) at mod_perl.c:554
#6  0x8092721 in ap_run_open_logs () at eval.c:88
#7  0x8097244 in main () at eval.c:88
#8  0x401267f1 in __libc_start_main (main=0x8096b38 <main>, argc=4, 
ubp_av=0xbffffa94, init=0x8062e0c <_init>,
     fini=0x80ae910 <_fini>, rtld_fini=0x4000cdc4 <_dl_fini>, 
stack_end=0xbffffa8c) at ../sysdeps/generic/libc-start.c:129



Test results
------------

Failed Test      Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
api/r_subclass.t  255 65280    ??   ??       %  ??
apr-ext/uuid.t    255 65280     3    6 200.00%  1-3


% make test TEST_VERBOSE=1 TEST_FILES="api/r_subclass.t apr-ext/uuid.t"
....
# Running under perl version 5.008001 for linux
# Current time local: Tue Sep 30 09:54:59 2003
# Current time GMT:   Tue Sep 30 13:54:59 2003
# Using Test.pm version 1.24
Can't load '/foo2/mod_perl-1.99_10-dev/t/../blib/arch/auto/APR/APR.so' 
for module APR: 
/foo2/mod_perl-1.99_10-dev/t/../blib/arch/auto/APR/APR.so: undefined 
symbol: apr_hook_global_pool at 
/usr/lib/perl5/5.8.1/i686-linux/DynaLoader.pm line 229.
  at apr-ext/uuid.t line 25
Compilation failed in require at apr-ext/uuid.t line 25.
dubious
         Test returned status 255 (wstat 65280, 0xff00)


ERROR_LOG
---------

[Tue Sep 30 09:54:56 2003] [info] mod_perl: using Perl HASH_SEED: 1512185368
END in modperl_extra.pl, pid=29653
[Tue Sep 30 09:54:57 2003] [info] mod_perl: using Perl HASH_SEED: 438443544
[Tue Sep 30 09:54:57 2003] [notice] Apache/2.0.47 (Unix) 
mod_perl/1.99_10-dev Perl/v5.8.1 configured -- resuming normal operations
[Tue Sep 30 09:54:57 2003] [info] Server built: Sep 29 2003 16:47:33
[Tue Sep 30 09:54:57 2003] [debug] prefork.c(1037): AcceptMutex: sysvsem 
(default: sysvsem)
[Tue Sep 30 09:54:59 2003] [error] server reached MaxClients setting, 
consider raising the MaxClients setting
[Tue Sep 30 09:55:00 2003] [info] Child process pid=29657 is exiting
[Tue Sep 30 09:55:00 2003] [info] Child process pid=29655 is exiting
[Tue Sep 30 09:55:00 2003] [info] removed PID file 
/foo2/mod_perl-1.99_10-dev/t/logs/httpd.pid (pid=29654)
[Tue Sep 30 09:55:00 2003] [notice] caught SIGTERM, shutting down
END in modperl_extra.pl, pid=29654



% perl -V
---------

Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration:
   Platform:
     osname=linux, osvers=2.4.7, archname=i686-linux
     uname='linux darwin.ottawa.loran.com 2.4.7 #1 fri aug 24 17:04:10 
edt 2001 i686 unknown '
     config_args='-ds -e -Dprefix=/usr'
     hint=recommended, useposix=true, d_sigaction=define
     usethreads=undef use5005threads=undef useithreads=undef 
usemultiplicity=undef
     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
     use64bitint=undef use64bitall=undef uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
   Compiler:
     cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
     optimize='-O3',
     cppflags='-fno-strict-aliasing -I/usr/local/include'
     ccversion='', gccversion='2.95.3 20010315 (release)', 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='cc', ldflags =' -L/usr/local/lib'
     libpth=/usr/local/lib /lib /usr/lib
     libs=-lbind -lnsl -lgdbm -ldl -lm -lcrypt -lutil -lc -lposix
     perllibs=-lbind -lnsl -ldl -lm -lcrypt -lutil -lc -lposix
     libc=/lib/libc-2.2.3.so, so=so, useshrplib=false, libperl=libperl.a
     gnulibc_version='2.2.3'
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
     cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
   Compile-time options: USE_LARGE_FILES
   Built under linux
   Compiled at Sep 26 2003 09:57:10
   @INC:
     /usr/lib/perl5/5.8.1/i686-linux
     /usr/lib/perl5/5.8.1
     /usr/lib/perl5/site_perl/5.8.1/i686-linux
     /usr/lib/perl5/site_perl/5.8.1
     /usr/lib/perl5/site_perl
     .


BTW, Perl builds with:

All tests successful.
u=4.76  s=0.9  cu=244.92  cs=21.82  scripts=764  tests=76509



Re: [mp2] segfault at startup under perl 5.8.1 and mod_perl-1.99_10-dev

Posted by Matthew Darwin <ma...@mdarwin.ca>.
I now have it working on RedHat 9 with the same configuration options. 
So unless someone wants to debug this for interest sake, I'm not 
bothered by it any more.

Let me know if you want me to post more info.

Thanks,

Stas Bekman wrote:
> Matthew, please submit a complete bug report as explained at:
> http://perl.apache.org/bugs/
> 
> __________________________________________________________________
> Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
> http://stason.org/     mod_perl Guide ---> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org http://apacheweek.com
> http://modperlbook.org http://apache.org   http://ticketmaster.com
> 

-- 
Matthew Darwin
matthew@mdarwin.ca
http://www.mdarwin.ca


Re: [mp2] segfault at startup under perl 5.8.1 and mod_perl-1.99_10-dev

Posted by Stas Bekman <st...@stason.org>.
Matthew, please submit a complete bug report as explained at:
http://perl.apache.org/bugs/

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: [mp2] segfault at startup under perl 5.8.1 and mod_perl-1.99_10-dev

Posted by Matthew Darwin <ma...@mdarwin.ca>.
here is a stack with perl debugging enabled.


(gdb) bt
#0  0x4034411f in S_new_xpv () at sv.c:756
#1  0x40344c35 in Perl_sv_upgrade (sv=0x404265e0, mt=4) at sv.c:1392
#2  0x4034b11c in Perl_sv_setpvn (sv=0x404265e0, ptr=0x403fb53c "", 
len=0) at sv.c:4108
#3  0x402cd0e4 in perl_construct (my_perl=0x8121d88) at perl.c:279
#4  0x402af0ec in modperl_startup (s=0x8113598, p=0x80d2690) at 
mod_perl.c:230
#5  0x402b01f1 in modperl_init (base_server=0x8113598, p=0x80d2690) at 
mod_perl.c:421
#6  0x402b03be in modperl_hook_init (pconf=0x80d2690, plog=0x810e780, 
ptemp=0x8114798, s=0x8113598) at mod_perl.c:554
#7  0x8092721 in ap_run_open_logs () at eval.c:88
#8  0x8097244 in main () at eval.c:88
#9  0x401267f1 in __libc_start_main (main=0x8096b38 <main>, argc=2, 
ubp_av=0xbffffac4, init=0x8062e0c <_init>,
     fini=0x80ae910 <_fini>, rtld_fini=0x4000cdc4 <_dl_fini>, 
stack_end=0xbffffabc) at ../sysdeps/generic/libc-start.c:129


Matthew Darwin wrote:
> When I start httpd without the
>    LoadModule perl_module modules/mod_perl.so
> All is good.  When I add the line above, and start "httpd -X"
> apache crashes before I even request the first page.
> 
> Has anyone else seen this problem?
> 
> 
> 
> #0  0x403124c3 in Perl_sv_upgrade () from /foo2/modules/mod_perl.so
> #1  0x40316362 in Perl_sv_setpvn () from /foo2/modules/mod_perl.so
> #2  0x402bd48a in perl_construct () from /foo2/modules/mod_perl.so
> #3  0x402a02fc in modperl_startup (s=0x8113598, p=0x80d2690) at 
> mod_perl.c:230
> #4  0x402a1401 in modperl_init (base_server=0x8113598, p=0x80d2690) at 
> mod_perl.c:421
> #5  0x402a15ce in modperl_hook_init (pconf=0x80d2690, plog=0x810e780, 
> ptemp=0x8114798, s=0x8113598) at mod_perl.c:554
> #6  0x8092721 in ap_run_open_logs () at eval.c:88
> #7  0x8097244 in main () at eval.c:88
> #8  0x401267f1 in __libc_start_main (main=0x8096b38 <main>, argc=4, 
> ubp_av=0xbffffa94, init=0x8062e0c <_init>,
>     fini=0x80ae910 <_fini>, rtld_fini=0x4000cdc4 <_dl_fini>, 
> stack_end=0xbffffa8c) at ../sysdeps/generic/libc-start.c:129
> 
> 
> 
> Test results
> ------------
> 
> Failed Test      Stat Wstat Total Fail  Failed  List of Failed
> ------------------------------------------------------------------------------- 
> 
> api/r_subclass.t  255 65280    ??   ??       %  ??
> apr-ext/uuid.t    255 65280     3    6 200.00%  1-3
> 
> 
> % make test TEST_VERBOSE=1 TEST_FILES="api/r_subclass.t apr-ext/uuid.t"
> ....
> # Running under perl version 5.008001 for linux
> # Current time local: Tue Sep 30 09:54:59 2003
> # Current time GMT:   Tue Sep 30 13:54:59 2003
> # Using Test.pm version 1.24
> Can't load '/foo2/mod_perl-1.99_10-dev/t/../blib/arch/auto/APR/APR.so' 
> for module APR: 
> /foo2/mod_perl-1.99_10-dev/t/../blib/arch/auto/APR/APR.so: undefined 
> symbol: apr_hook_global_pool at 
> /usr/lib/perl5/5.8.1/i686-linux/DynaLoader.pm line 229.
>  at apr-ext/uuid.t line 25
> Compilation failed in require at apr-ext/uuid.t line 25.
> dubious
>         Test returned status 255 (wstat 65280, 0xff00)
> 
> 
> ERROR_LOG
> ---------
> 
> [Tue Sep 30 09:54:56 2003] [info] mod_perl: using Perl HASH_SEED: 
> 1512185368
> END in modperl_extra.pl, pid=29653
> [Tue Sep 30 09:54:57 2003] [info] mod_perl: using Perl HASH_SEED: 438443544
> [Tue Sep 30 09:54:57 2003] [notice] Apache/2.0.47 (Unix) 
> mod_perl/1.99_10-dev Perl/v5.8.1 configured -- resuming normal operations
> [Tue Sep 30 09:54:57 2003] [info] Server built: Sep 29 2003 16:47:33
> [Tue Sep 30 09:54:57 2003] [debug] prefork.c(1037): AcceptMutex: sysvsem 
> (default: sysvsem)
> [Tue Sep 30 09:54:59 2003] [error] server reached MaxClients setting, 
> consider raising the MaxClients setting
> [Tue Sep 30 09:55:00 2003] [info] Child process pid=29657 is exiting
> [Tue Sep 30 09:55:00 2003] [info] Child process pid=29655 is exiting
> [Tue Sep 30 09:55:00 2003] [info] removed PID file 
> /foo2/mod_perl-1.99_10-dev/t/logs/httpd.pid (pid=29654)
> [Tue Sep 30 09:55:00 2003] [notice] caught SIGTERM, shutting down
> END in modperl_extra.pl, pid=29654
> 
> 
> 
> % perl -V
> ---------
> 
> Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration:
>   Platform:
>     osname=linux, osvers=2.4.7, archname=i686-linux
>     uname='linux darwin.ottawa.loran.com 2.4.7 #1 fri aug 24 17:04:10 
> edt 2001 i686 unknown '
>     config_args='-ds -e -Dprefix=/usr'
>     hint=recommended, useposix=true, d_sigaction=define
>     usethreads=undef use5005threads=undef useithreads=undef 
> usemultiplicity=undef
>     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
>     use64bitint=undef use64bitall=undef uselongdouble=undef
>     usemymalloc=n, bincompat5005=undef
>   Compiler:
>     cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include 
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
>     optimize='-O3',
>     cppflags='-fno-strict-aliasing -I/usr/local/include'
>     ccversion='', gccversion='2.95.3 20010315 (release)', 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='cc', ldflags =' -L/usr/local/lib'
>     libpth=/usr/local/lib /lib /usr/lib
>     libs=-lbind -lnsl -lgdbm -ldl -lm -lcrypt -lutil -lc -lposix
>     perllibs=-lbind -lnsl -ldl -lm -lcrypt -lutil -lc -lposix
>     libc=/lib/libc-2.2.3.so, so=so, useshrplib=false, libperl=libperl.a
>     gnulibc_version='2.2.3'
>   Dynamic Linking:
>     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
>     cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
> 
> 
> Characteristics of this binary (from libperl):
>   Compile-time options: USE_LARGE_FILES
>   Built under linux
>   Compiled at Sep 26 2003 09:57:10
>   @INC:
>     /usr/lib/perl5/5.8.1/i686-linux
>     /usr/lib/perl5/5.8.1
>     /usr/lib/perl5/site_perl/5.8.1/i686-linux
>     /usr/lib/perl5/site_perl/5.8.1
>     /usr/lib/perl5/site_perl
>     .
> 
> 
> BTW, Perl builds with:
> 
> All tests successful.
> u=4.76  s=0.9  cu=244.92  cs=21.82  scripts=764  tests=76509
> 
>