Ciao!

With the latest modperl from CVS, all tests pass during build/test
phase.  However it coredumps when used with my http.conf/startup.pl
files.  An earlier CVS release of modperl (modperl_20000911162240)
functions as expected.  Both modperl revisions have the perl_util.c
patch applied and perl 5.6 has been patched based on information from
p5p regarding cop.h and threads.  These patches solved an earlier
SIGSEGV problem (similiar to this one?).

The particulars are included below.

Thanks for any insight.

modperl_20001003161843
apache-1.3_20000911161201

(gdb) run -X -f /www/etc/httpd/httpd.conf -d /tmp   
Starting program: /www/sbin/httpd -X -f /www/etc/httpd/httpd.conf -d /tmp
[New LWP 1]
[New LWP 2]
[New LWP 3]
[New LWP 4]

Program received signal SIGSEGV, Segmentation fault.
0xe0cd8 in Perl_gv_init (gv=0x22ddd0, stash=0x1f9880, name=0x185f20 "Location", 
    len=8, multi=2) at gv.c:106
106         GvFILE(gv) = CopFILE(PL_curcop) ? CopFILE(PL_curcop) : "";
(gdb) bt
#0  0xe0cd8 in Perl_gv_init (gv=0x22ddd0, stash=0x1f9880, name=0x185f20 "Location", 
    len=8, multi=2) at gv.c:106
#1  0xe22f8 in Perl_gv_fetchpv (nambeg=0x185f20 "Location", add=2, sv_type=11)
    at gv.c:681
#2  0x44928 in perl_section_hash_init (name=0x185f20 "Location", dotie=0)
    at perl_config.c:1628
#3  0x44d48 in perl_section (parms=0xefffba78, dummy=0x1d5708, arg=0x0)
    at perl_config.c:1731
#4  0x44aa8 in perl_section_self_boot (parms=0xefffba78, dummy=0x1d5708, 
    arg=0x290e58 "/www/startup.pl") at perl_config.c:1653
#5  0x41d00 in perl_cmd_require (parms=0xefffba78, dummy=0x1d5708, 
    arg=0x290e58 "/www/startup.pl") at perl_config.c:638
#6  0xa21e8 in invoke_cmd (cmd=0x1bf600, parms=0xefffba78, mconfig=0x1d5708, 
    args=0xefff998b "") at http_config.c:916
#7  0xa28b0 in ap_handle_command (parms=0xefffba78, config=0x1d5580, 
    l=0xefff9970 "PerlRequire /www/startup.pl") at http_config.c:1028
#8  0xa2990 in ap_srm_command_loop (parms=0xefffba78, config=0x1d5580)
    at http_config.c:1042
#9  0xa3018 in ap_process_resource_config (s=0x1d4440, 
    fname=0x1c2a30 "/www/etc/httpd/httpd.conf", p=0x1d4418, ptemp=0x1dc418)
    at http_config.c:1230
#10 0xa3c40 in ap_read_config (p=0x1d4418, ptemp=0x1dc418, 
    confname=0x1c2a30 "/www/etc/httpd/httpd.conf") at http_config.c:1513
#11 0xb2bdc in main (argc=6, argv=0xefffbc4c) at http_main.c:4974
(gdb) quit


Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
    osname=solaris, osvers=2.6, archname=sun4-solaris
    uname='sunos savvy 5.6 generic_105181-21 sun4u sparc '
    config_args=''
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define 
    use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
    cc='gcc', optimize='-g -O', gccversion=2.95.2 19991024 (release)
    cppflags='-fno-strict-aliasing -I/opt/gnu/include -I/usr/local/include'
    ccflags ='-fno-strict-aliasing -I/opt/gnu/include -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDEBUGGING'
    stdchar='unsigned char', d_stdstdio=define, usevfork=false
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    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, usemymalloc=y, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags ='-L/opt/gnu/lib -L/usr/local/lib -L/lib -L/usr/lib 
-L/usr/ccs/lib '
    libpth=/opt/gnu/lib /usr/local/lib /lib /usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -lgdbm -ldb -ldl -lm -lc -lcrypt -lsec
    libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-fPIC', lddlflags='-G -L/opt/gnu/lib -L/usr/local/lib -L/lib 
-L/usr/lib -L/usr/ccs/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: DEBUGGING USE_LARGE_FILES
  Built under solaris
  Compiled at Sep 12 2000 16:06:55
  %ENV:
    PERLROOT="/opt/gnu/lib/perl5/5.6.0"
    PERL_ORACLE_HOME="/db02/orasw/app/oracle/product/8.1.6"
  @INC:
    /opt/gnu/lib/perl5/5.6.0/sun4-solaris
    /opt/gnu/lib/perl5/5.6.0
    /opt/gnu/lib/perl5/site_perl/5.6.0/sun4-solaris
    /opt/gnu/lib/perl5/site_perl/5.6.0
    /opt/gnu/lib/perl5/site_perl/5.005/sun4-solaris
    /opt/gnu/lib/perl5/site_perl/5.005
    /opt/gnu/lib/perl5/site_perl
    .

Reply via email to