perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@library.ho.lucent.com
Subject mp2, apache 2.0.46, perl 5.8.0, & gcc 3.3 core dumps on solaris 8
Date Tue, 17 Jun 2003 21:00:59 GMT

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

  gcc 3.3, solaris 8, perl 5.8.0, apache 2.0.46, mod_perl 1.99_10
  make test failed
  I used gcc 2.95.2 built perl5.8.0 and mod_perl and it works ok.
  however, I upgraded gcc 3.3 and rebuilt perl, apache, and mod_perl.
  it still core dumps on me.
  apache 2.0.46 works ok by itself.
  I have setup my PATH and LD_LIBRARY_PATH ok.
  what could I do wrong?
  
$ cat startup.pl # is there any bad code in my startup.pl file?
#!/s5/twh/perl580/bin/perl

use Apache2 ();
use lib qw(/s5/twh/apache2/perl);
use ModPerl::Util (); #for CORE::GLOBAL::exit
  
use Apache::RequestRec ();
use Apache::RequestIO ();
use Apache::RequestUtil ();
  
use Apache::Server ();
use Apache::ServerUtil ();
use Apache::Connection ();
use Apache::Log ();
  
use APR::Table ();
  
use ModPerl::Registry ();
  
use Apache::Const -compile => ':common';
use APR::Const -compile => ':common';
1;
===end startup.pl
  Thanks in advance.

2. Used Components and their Configuration:

*** mod_perl version 1.9910

*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
  MP_AP_PREFIX    => /s5/twh/apache2
  MP_COMPAT_1X    => 1
  MP_DEBUG        => 1
  MP_GENERATE_XS  => 1
  MP_INST_APACHE2 => 1
  MP_LIBNAME      => mod_perl
  MP_TRACE        => 1
  MP_USE_DSO      => 1
  MP_USE_STATIC   => 1


*** /s5/twh/apache2/bin/httpd -V
Server version: Apache/2.0.46
Server built:   Jun 13 2003 17:05:23
Server's Module Magic Number: 20020903:3
Architecture:   32-bit
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_PROC_PTHREAD_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="/s5/twh/apache2"
 -D SUEXEC_BIN="/s5/twh/apache2/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="logs/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"


*** /s5/twh/perl580/bin/perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
    osname=solaris, osvers=2.8, archname=sun4-solaris
    uname='sunos ln 5.8 generic_108528-18 sun4u sparc '
    config_args='-Dcc=gcc -B/usr/ccs/bin/ -Dprefix=/s5/twh/perl580 -des'
    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='gcc -B/usr/ccs/bin/', ccflags ='-fno-strict-aliasing -I/opt/exp/gnu/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
    optimize='-g',
    cppflags='-fno-strict-aliasing -I/opt/exp/gnu/include'
    ccversion='', gccversion='3.3', gccosandvers='solaris2.8'
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc -B/usr/ccs/bin/', ldflags =' -L/opt/exp/gnu/lib '
    libpth=/opt/exp/gnu/lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-E'
    cccdlflags='-fPIC', lddlflags=' -Wl,-E -G -L/opt/exp/gnu/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: USE_LARGE_FILES
  Built under solaris
  Compiled at Jun 12 2003 08:18:18
  %ENV:
    PERL_LWP_USE_HTTP_10="1"
  @INC:
    /s5/twh/perl580/lib/5.8.0/sun4-solaris
    /s5/twh/perl580/lib/5.8.0
    /s5/twh/perl580/lib/site_perl/5.8.0/sun4-solaris
    /s5/twh/perl580/lib/site_perl/5.8.0
    /s5/twh/perl580/lib/site_perl
    .


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

$ gdb /s5/twh/apache2/bin/httpd -core /s5/twh/build-dir/modperl-2.0/t/core
GNU gdb 5.2.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "sparc-sun-solaris"...
Core was generated by `/s5/twh/apache2/bin/httpd -d /s5/twh/build-dir/modperl-2.0/t -f /s5/twh/build-dir/m'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /s5/twh/apache2/lib/libaprutil-0.so.0...done.
Loaded symbols for /s5/twh/apache2/lib/libaprutil-0.so.0
Reading symbols from /s5/twh/apache2/lib/libexpat.so.0...done.
Loaded symbols for /s5/twh/apache2/lib/libexpat.so.0
Reading symbols from /s5/twh/apache2/lib/libapr-0.so.0...done.
Loaded symbols for /s5/twh/apache2/lib/libapr-0.so.0
Reading symbols from /usr/lib//librt.so.1...done.
Loaded symbols for /usr/lib//librt.so.1
Reading symbols from /usr/lib//libm.so.1...done.
Loaded symbols for /usr/lib//libm.so.1
Reading symbols from /usr/lib//libsocket.so.1...done.
Loaded symbols for /usr/lib//libsocket.so.1
Reading symbols from /usr/lib//libnsl.so.1...done.
Loaded symbols for /usr/lib//libnsl.so.1
Reading symbols from /usr/lib//libresolv.so.2...done.
Loaded symbols for /usr/lib//libresolv.so.2
Reading symbols from /usr/lib//libpthread.so.1...done.
Loaded symbols for /usr/lib//libpthread.so.1
Reading symbols from /usr/lib//libc.so.1...done.
Loaded symbols for /usr/lib//libc.so.1
Reading symbols from /opt/exp/gnu/lib/libgcc_s.so.1...done.
Loaded symbols for /opt/exp/gnu/lib/libgcc_s.so.1
Reading symbols from /usr/lib//libaio.so.1...done.
Loaded symbols for /usr/lib//libaio.so.1
Reading symbols from /usr/lib//libdl.so.1...done.
Loaded symbols for /usr/lib//libdl.so.1
Reading symbols from /usr/lib//libmp.so.2...done.
Loaded symbols for /usr/lib//libmp.so.2
Reading symbols from /usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1...
done.
Loaded symbols for /usr/platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1
Reading symbols from /usr/lib//libthread.so.1...done.
Loaded symbols for /usr/lib//libthread.so.1
Reading symbols from /s5/twh/apache2/modules/mod_mime_magic.so...done.
Loaded symbols for /s5/twh/apache2/modules/mod_mime_magic.so
Reading symbols from /s5/twh/build-dir/modperl-2.0/src/modules/perl/mod_perl.so...done.
Loaded symbols for /s5/twh/build-dir/modperl-2.0/src/modules/perl/mod_perl.so
#0  0xfdd6861c in ?? ()
(gdb) where
#0  0xfdd6861c in ?? ()
#1  0xfee0f660 in Perl_runops_standard () at run.c:23
#2  0xfed7e6f8 in S_call_body (myop=0xffbee080, is_eval=0) at perl.c:2045
#3  0xfed7e24c in Perl_call_sv (sv=0x1786d8, flags=6) at perl.c:1963
#4  0xfed842b0 in S_call_list_body (cv=0x1786d8) at perl.c:4081
#5  0xfed83cac in Perl_call_list (oldscope=12, paramList=0x1786fc)
    at perl.c:4009
#6  0xfedd2e2c in Perl_newATTRSUB (floor=524, o=0x1347a8, proto=0x0, 
    attrs=0x0, block=0x18f3a0) at op.c:5131
#7  0xfedcb794 in Perl_utilize (aver=1, floor=524, version=0x0, id=0x1a06c8, 
    arg=0x170e10) at op.c:3437
#8  0xfedbbca0 in Perl_yyparse () at perly.y:414
#9  0xfee6c968 in S_doeval (gimme=0, startop=0x0) at pp_ctl.c:2771
#10 0xfee6f498 in Perl_pp_require () at pp_ctl.c:3254
#11 0xfed69574 in modperl_pp_require ()
   from /s5/twh/build-dir/modperl-2.0/src/modules/perl/mod_perl.so
#12 0xfee0f660 in Perl_runops_standard () at run.c:23
#13 0xfed7e6f8 in S_call_body (myop=0xffbee938, is_eval=0) at perl.c:2045
#14 0xfed7e24c in Perl_call_sv (sv=0x174500, flags=6) at perl.c:1963
#15 0xfed842b0 in S_call_list_body (cv=0x174500) at perl.c:4081
#16 0xfed83cac in Perl_call_list (oldscope=4, paramList=0x181ac8)
    at perl.c:4009
#17 0xfedd2e2c in Perl_newATTRSUB (floor=303, o=0x134578, proto=0x0, 
    attrs=0x0, block=0x181238) at op.c:5131
#18 0xfedbb924 in Perl_yyparse () at perly.y:355
#19 0xfee6c968 in S_doeval (gimme=0, startop=0x0) at pp_ctl.c:2771
#20 0xfee6f498 in Perl_pp_require () at pp_ctl.c:3254
#21 0xfed69574 in modperl_pp_require ()
   from /s5/twh/build-dir/modperl-2.0/src/modules/perl/mod_perl.so
#22 0xfee0f660 in Perl_runops_standard () at run.c:23
#23 0xfed7e6f8 in S_call_body (myop=0xffbef110, is_eval=1) at perl.c:2045
#24 0xfed7e9c4 in Perl_eval_sv (sv=0x13375c, flags=2) at perl.c:2105
#25 0xfed7f154 in Perl_require_pv (
    pv=0x12e848 "/s5/twh/build-dir/modperl-2.0/t/conf/modperl_startup.pl")
    at perl.c:2203
#26 0xfed5d46c in modperl_require_file ()
   from /s5/twh/build-dir/modperl-2.0/src/modules/perl/mod_perl.so
#27 0xfed56e1c in modperl_config_apply_PerlRequire ()
   from /s5/twh/build-dir/modperl-2.0/src/modules/perl/mod_perl.so
#28 0xfed528cc in modperl_startup ()
   from /s5/twh/build-dir/modperl-2.0/src/modules/perl/mod_perl.so
#29 0xfed54178 in modperl_init ()
   from /s5/twh/build-dir/modperl-2.0/src/modules/perl/mod_perl.so
#30 0xfed543cc in modperl_hook_init ()
   from /s5/twh/build-dir/modperl-2.0/src/modules/perl/mod_perl.so
#31 0xfed54414 in modperl_run ()
   from /s5/twh/build-dir/modperl-2.0/src/modules/perl/mod_perl.so
#32 0xfed597a0 in modperl_cmd_load_module ()
   from /s5/twh/build-dir/modperl-2.0/src/modules/perl/mod_perl.so
#33 0x0004b49c in invoke_cmd (cmd=0xfef08528, parms=0xffbef768, 
    mconfig=0x11bea0, args=0x129868 "TestDirective::perlloadmodule2")
    at config.c:703
#34 0x0004baf4 in ap_walk_config_sub (current=0x129848, parms=0xffbef768, 
    section_vector=0x113cd0) at config.c:1082
#35 0x0004bb94 in ap_walk_config (current=0x129848, parms=0xffbef768, 
    section_vector=0x113cd0) at config.c:1121
#36 0x0004c68c in ap_process_config_tree (s=0xd85d8, conftree=0x129848, 
    p=0xd5208, ptemp=0x1112f8) at config.c:1594
#37 0x0004eda8 in main (argc=6, argv=0xffbef8ac) at main.c:581


This report was generated by t/REPORT on Tue Jun 17 20:47:56 2003 GMT.

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

Note: Complete the rest of the details and post this bug report to
dev <at> perl.apache.org. To subscribe to the list send an empty
email to dev-subscribe@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