perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Foertsch <torsten.foert...@gmx.net>
Subject trying modperl with perl 5.10.0
Date Tue, 30 Oct 2007 18:07:55 GMT
Hi,

while trying modperl with perl 5.10.0 I got 2 nice coredumps in the init code.

1) this is with perfork mpm:

#0  0x08601de4 in ?? ()
#1  0x407dda91 in Perl_mg_free (my_perl=0x85fb4f0, sv=0x85ffbdc) at mg.c:490
#2  0x4085a5ba in Perl_sv_clear (my_perl=0x85fb4f0, sv=0x85ffbdc) at sv.c:5154
#3  0x4085b5b6 in Perl_sv_free2 (my_perl=0x85fb4f0, sv=0x85ffbdc) at sv.c:5363
#4  0x4085b4e3 in Perl_sv_free (my_perl=0x85fb4f0, sv=0x85ffbdc) at sv.c:5342
#5  0x40808ce7 in perl_destruct (my_perl=0x85fb4f0) at perl.c:1013
#6  0x406bbe58 in modperl_perl_destruct (perl=0x85fb4f0) at modperl_perl.c:176
#7  0x40691fa6 in modperl_interp_destroy (interp=0x8616608) at modperl_interp.c:146
#8  0x406921a4 in modperl_interp_pool_destroy (data=0x85f54a8) at modperl_interp.c:202
#9  0x401730d0 in run_cleanups (cref=0x85f7508) at memory/unix/apr_pools.c:2034
#10 0x40172599 in apr_pool_destroy (pool=0x85f74f8) at memory/unix/apr_pools.c:727
#11 0x401724ac in apr_pool_clear (pool=0x80b90a8) at memory/unix/apr_pools.c:686
#12 0x0806734d in main (argc=158288056, argv=0x8b10c40) at main.c:680


2) and with worker mpm

#0  0x4085ea3a in Perl_sv_2mortal (my_perl=0x982dd90, sv=0xa0d5aec) at sv.c:6961
#1  0x407d4770 in Perl_mg_get (my_perl=0x982dd90, sv=0xa0d5aec) at mg.c:191
#2  0x4083a17b in Perl_sv_2pv_flags (my_perl=0x982dd90, sv=0xa0d5aec, lp=0xbf920a3c, flags=2)
at sv.c:2584
#3  0x40862fa7 in Perl_sv_pvn_force_flags (my_perl=0x982dd90, sv=0xa0d5aec, lp=0xbf920c44,
flags=2) at sv.c:7638
#4  0x408674d4 in Perl_sv_vcatpvfn (my_perl=0x982dd90, sv=0xa0d5aec, pat=0x40a1cfa3 "panic:
memory wrap", patlen=18, args=0xbf920f3c, svargs=0x0, svmax=0, maybe_tainted=0x0) at sv.c:8473
#5  0x40866f87 in Perl_sv_vsetpvfn (my_perl=0x982dd90, sv=0xa0d5aec, pat=0x40a1cfa3 "panic:
memory wrap", patlen=18, args=0xbf920f3c, svargs=0x0, svmax=0, maybe_tainted=0x0) at sv.c:8378
#6  0x407c7851 in Perl_vmess (my_perl=0x982dd90, pat=0x40a1cfa3 "panic: memory wrap", args=0xbf920f3c)
at util.c:1161
#7  0x407c999b in S_vdie_croak_common (my_perl=0x982dd90, pat=0x40a1cfa3 "panic: memory wrap",
args=0xbf920f3c, msglen=0xbf920efc, utf8=0xbf920ef8) at util.c:1302
#8  0x407ca165 in Perl_vcroak (my_perl=0x982dd90, pat=0x40a1cfa3 "panic: memory wrap", args=0xbf920f3c)
at util.c:1383
#9  0x407ca501 in Perl_croak_nocontext (pat=0x40a1cfa3 "panic: memory wrap") at util.c:1404
#10 0x408b5935 in Perl_tmps_grow (my_perl=0x982dd90, n=128) at scope.c:141
#11 0x4085ea16 in Perl_sv_2mortal (my_perl=0x982dd90, sv=0xa0d5aec) at sv.c:6960
#12 0x407d4770 in Perl_mg_get (my_perl=0x982dd90, sv=0xa0d5aec) at mg.c:191
#13 0x4083a17b in Perl_sv_2pv_flags (my_perl=0x982dd90, sv=0xa0d5aec, lp=0xbf92117c, flags=2)
at sv.c:2584
#14 0x40862fa7 in Perl_sv_pvn_force_flags (my_perl=0x982dd90, sv=0xa0d5aec, lp=0xbf921384,
flags=2) at sv.c:7638
#15 0x408674d4 in Perl_sv_vcatpvfn (my_perl=0x982dd90, sv=0xa0d5aec, pat=0x409ef64c "Bizarre
SvTYPE [%ld]", patlen=20, args=0xbf921680, svargs=0x0, svmax=0, maybe_tainted=0x0)
    at sv.c:8473
#16 0x40866f87 in Perl_sv_vsetpvfn (my_perl=0x982dd90, sv=0xa0d5aec, pat=0x409ef64c "Bizarre
SvTYPE [%ld]", patlen=20, args=0xbf921680, svargs=0x0, svmax=0, maybe_tainted=0x0)
    at sv.c:8378
#17 0x407c7851 in Perl_vmess (my_perl=0x982dd90, pat=0x409ef64c "Bizarre SvTYPE [%ld]", args=0xbf921680)
at util.c:1161
#18 0x407c999b in S_vdie_croak_common (my_perl=0x982dd90, pat=0x409ef64c "Bizarre SvTYPE [%ld]",
args=0xbf921680, msglen=0xbf92163c, utf8=0xbf921638) at util.c:1302
#19 0x407ca165 in Perl_vcroak (my_perl=0x982dd90, pat=0x409ef64c "Bizarre SvTYPE [%ld]", args=0xbf921680)
at util.c:1383
#20 0x407ca532 in Perl_croak (my_perl=0x982dd90, pat=0x409ef64c "Bizarre SvTYPE [%ld]") at
util.c:1435
#21 0x4086ed47 in Perl_sv_dup (my_perl=0x982dd90, sstr=0x8499418, param=0xbf921ba4) at sv.c:10083
#22 0x4086d06c in Perl_mg_dup (my_perl=0x982dd90, mg=0x80c0b18, param=0xbf921ba4) at sv.c:9774
#23 0x4086f1cd in Perl_sv_dup (my_perl=0x982dd90, sstr=0x85fe784, param=0xbf921ba4) at sv.c:10135
#24 0x408757de in perl_clone (proto_perl=0x85fa098, flags=2) at sv.c:11255
#25 0x40689d6a in modperl_interp_new (mip=0x85f4050, perl=0x85fa098) at modperl_interp.c:80
#26 0x4068a208 in interp_pool_grow (tipool=0x8656f20, data=0x85f4050) at modperl_interp.c:212
#27 0x4068b4f2 in modperl_tipool_init (tipool=0x8656f20) at modperl_tipool.c:187
#28 0x40688888 in modperl_init_clones (s=0x80c0b18, p=0x80bb0a8) at mod_perl.c:528
#29 0x40688db2 in modperl_hook_post_config_last (pconf=0x80bb0a8, plog=0x80e9160, ptemp=0x80eb168,
s=0x80c0b18) at mod_perl.c:725
#30 0x0807da50 in ap_run_post_config (pconf=0x80bb0a8, plog=0x80e9160, ptemp=0x80eb168, s=0x80c0b18)
at config.c:91
#31 0x0806746f in main (argc=Cannot access memory at address 0xabababab
) at main.c:670


$ perl -V
Summary of my perl5 (revision 5 version 10 subversion 0 patch 32199) configuration:
  Platform:
    osname=linux, osvers=2.6.22.9-0.4-default, archname=i686-linux-thread-multi
    uname='linux opi 2.6.22.9-0.4-default #1 smp 20071005 21:32:04 utc i686 i686 i386 gnulinux
'
    config_args='-des -Doptimize=-g -Dcccdlflags=-fPIC -Dusethreads -Duseshrplib -Uusemymalloc'
    hint=recommended, useposix=true, d_sigaction=define
    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 ='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-g',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='4.2.1 (SUSE Linux)', 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=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.6.1.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.6.1'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/local/lib/perl5/5.10.0/i686-linux-thread-multi/CORE'
    cccdlflags='-fPIC', lddlflags='-shared -g -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: DEBUGGING MULTIPLICITY PERL_DONT_CREATE_GVSV
                        PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
                        PERL_TRACK_MEMPOOL USE_ITHREADS USE_LARGE_FILES
                        USE_PERLIO USE_REENTRANT_API
  Locally applied patches:
        DEVEL
  Built under linux
  Compiled at Oct 29 2007 09:55:06
  %ENV:
    PERL5LIB="/opt/apache22-worker/mod_perl"
  @INC:
    /opt/apache22-worker/mod_perl
    /usr/local/lib/perl5/5.10.0/i686-linux-thread-multi
    /usr/local/lib/perl5/5.10.0
    /usr/local/lib/perl5/site_perl/5.10.0/i686-linux-thread-multi
    /usr/local/lib/perl5/site_perl/5.10.0
    .

Mime
View raw message