develooper Front page | perl.perl5.porters | Postings from January 2005

[perl #33927] [BUG] Coredump in 5.9.2 when evalling a certain string while in a coderf in @INC

Thread Next
From:
kane @ coke . xs4all . nl
Date:
January 25, 2005 10:20
Subject:
[perl #33927] [BUG] Coredump in 5.9.2 when evalling a certain string while in a coderf in @INC
Message ID:
rt-3.0.11-33927-106440.5.90913042094861@perl.org
# New Ticket Created by  kane@coke.xs4all.nl 
# Please include the string:  [perl #33927]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=33927 >



This is a bug report for perl from kane@coke.xs4all.nl,
generated with the help of perlbug 1.35 running under perl v5.9.2.


-----------------------------------------------------------------
[Please enter your report here]

Although the description might be somewhat vague, the problem is
quite pressing for CPANPLUS (and Module::Build, the module that
actually triggers this coredump).

This problem does not occur in any of the 5.6.x or 5.8.x series
as far as i've been able to tell.

The following code is the problem:

    $ bleadperl -Mcore -Mwarnings -e1

where core.pm looks like this:    
    
    package core;
    use strict;
    sub import {
        require lib;
        lib->import( sub { eval q[*UNIVERSAL::VERSION = $old_version] })
    }    
    1;

The string being evalled is found in the M::B source (at an attempt to
identify it's version).

The 'use strict' is required for the coredump to occur. The second module
being loaded can be any module. An X.pm like this would do:
    package X;
    1;

Any 'use' done after the -Mcore will basically trigger this coredump.


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=high
---
Site configuration information for perl v5.9.2:

Configured by kane at Tue Jan 25 16:16:18 CET 2005.

Summary of my perl5 (revision 5 version 9 subversion 2 patch 23879) configuration:
  Platform:
    osname=darwin, osvers=7.7.0, archname=darwin-2level
    uname='darwin coke.xs4all.nl 7.7.0 darwin kernel version 7.7.0: sun nov 7 16:06:51 pst 2004; root:xnuxnu-517.9.5.obj~1release_ppc power macintosh powerpc '
    config_args='-des -Dusedevel -Dprefix=/opt/bleadperl'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=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-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe',
    optimize='-Os',
    cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe'
    ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build 1495)', 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 =''
    libpth=/usr/lib
    libs=-ldbm -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'

Locally applied patches:
    DEVEL22511

---
@INC for perl v5.9.2:
    /sw/lib/perl5
    /sw/lib/perl5/darwin
    /Users/kane/sources/p4/other/archive-extract/lib
    /Users/kane/sources/p4/other/file-fetch/lib
    /Users/kane/sources/p4/other/archive-tar-new/lib
    /Users/kane/sources/p4/other/carp-trace/lib
    /Users/kane/sources/p4/other/log-message/lib
    /Users/kane/sources/p4/other/module-load/lib
    /Users/kane/sources/p4/other/params-check/lib
    /Users/kane/sources/p4/other/qmail-checkpassword/lib
    /Users/kane/sources/p4/other/module-load-conditional/lib
    /Users/kane/sources/p4/other/term-ui/lib
    /Users/kane/sources/p4/other/ipc-cmd/lib
    /Users/kane/sources/p4/other/config-auto/lib
    /Users/kane/sources/NSA/misc
    /Users/kane/sources/NSA
    /Users/kane/sources/NSA/tools
    /Users/kane/sources/GOD/MMDB/lib
    /Users/kane/sources/GOD/GOD/lib
    /Users/kane/sources/NSA/Apache/Frontier-RPC-0.06/lib/
    /Users/kane/sources/p4/other/object-accessor/lib/
    /opt/bleadperl/lib/5.9.2/darwin-2level
    /opt/bleadperl/lib/5.9.2
    /opt/bleadperl/lib/site_perl/5.9.2/darwin-2level
    /opt/bleadperl/lib/site_perl/5.9.2
    /opt/bleadperl/lib/site_perl
    .

---
Environment for perl v5.9.2:
    DYLD_LIBRARY_PATH (unset)
    HOME=/Users/kane
    LANG (unset)
    LANGUAGE (unset)
    LC_ALL=C
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/Users/kane/.bin:/usr/X11R6/bin
    PERL5LIB=/sw/lib/perl5:/sw/lib/perl5/darwin:/Users/kane/sources/p4/other/archive-extract/lib:/Users/kane/sources/p4/other/file-fetch/lib:/Users/kane/sources/p4/other/archive-tar-new/lib:/Users/kane/sources/p4/other/carp-trace/lib:/Users/kane/sources/p4/other/log-message/lib:/Users/kane/sources/p4/other/module-load/lib:/Users/kane/sources/p4/other/params-check/lib:/Users/kane/sources/p4/other/qmail-checkpassword/lib:/Users/kane/sources/p4/other/module-load-conditional/lib:/Users/kane/sources/p4/other/term-ui/lib:/Users/kane/sources/p4/other/ipc-cmd/lib:/Users/kane/sources/p4/other/config-auto/lib:/Users/kane/sources/NSA/misc:/Users/kane/sources/NSA:/Users/kane/sources/NSA/tools:/Users/kane/sources/GOD/MMDB/lib:/Users/kane/sources/GOD/GOD/lib:/Users/kane/sources/NSA/Apache/Frontier-RPC-0.06/lib/:/Users/kane/sources/p4/other/object-accessor/lib/
    PERL_BADLANG (unset)
    SHELL=/bin/tcsh


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About