develooper Front page | perl.perl5.porters | Postings from July 2001

[ID 20010718.002] Sigdie/eval problems when using utf8

Thread Next
From:
pj
Date:
July 18, 2001 05:42
Subject:
[ID 20010718.002] Sigdie/eval problems when using utf8
Message ID:
20010718144215.A21671@cistron.nl
This is a bug report for perl from pja@ogawa.cistron-office.nl,
generated with the help of perlbug 1.33 running under perl v5.6.1.


-----------------------------------------------------------------
perl -wle 'BEGIN { $SIG{__DIE__} = sub { print "Catched SIGDIE: @_";exit(-1) }} use utf8; /^\w$/;'

Results in:

Catched SIGDIE: Can't locate object method "IsWord" via package "main" (perhaps you forgot to load "main"?) at /usr/local/lib/perl5/5.6.1/utf8_heavy.pl line 30.

This code illustrates the problem: the eval() done by utf8_heavy.pl fails and
calls the die-handler which is set within the BEGIN block.

I think this should not happen, because the 'die' within eval() is in a 
different scope than the position where the Die-handler is set.

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

Configured by pja at Wed Jul 18 12:31:53 CEST 2001.

Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
  Platform:
    osname=linux, osvers=2.2.19, archname=i686-linux
    uname='linux ogawa 2.2.19 #1 mon apr 2 12:15:55 cest 2001 i686 unknown '
    config_args='-de'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='2.95.4 20010703 (Debian prerelease)', 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, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -lgdbm -ldbm -ldb -ldl -lm -lc -lcrypt -lutil
    perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
    libc=/lib/libc-2.2.3.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:
    

---
@INC for perl v5.6.1:
    /usr/local/lib/perl5/5.6.1/i686-linux
    /usr/local/lib/perl5/5.6.1
    /usr/local/lib/perl5/site_perl/5.6.1/i686-linux
    /usr/local/lib/perl5/site_perl/5.6.1
    /usr/local/lib/perl5/site_perl
    .

---
Environment for perl v5.6.1:
    HOME=/home/staff/pja
    LANG=nl_NL.ISO8859-1
    LANGUAGE (unset)
    LC_ALL=en_US.ISO-8859-1
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:~pja/bin
    PERL_BADLANG (unset)
    SHELL=/bin/bash


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