Front page | perl.perl5.porters |
Postings from March 2001
[ID 20010305.003] goto+eval doesn't catch jump-into-loop
Thread Next
From:
smurf
Date:
March 5, 2001 02:50
Subject:
[ID 20010305.003] goto+eval doesn't catch jump-into-loop
Message ID:
3AA36F4A.10117.qmail@transwarp.noris.de
This is a bug report for perl from smurf@noris.de,
generated with the help of perlbug 1.29 running under perl v5.6.0.
-----------------------------------------------------------------
[Please enter your report here]
The following one-liner shows a fatal error which isn't caught by eval{}.
$ perl -e 'eval { goto foo; }; die "OK\n";
foreach $i(1,2,3) { foo: die "Inconclusive\n"; }'
Can't "goto" into the middle of a foreach loop at -e line 1.
It's obvious what should happen.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=high
---
Site configuration information for perl v5.6.0:
Configured by root at Mon May 29 17:25:54 CEST 2000.
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
Platform:
osname=linux, osvers=2.4.0s-noris-t1-4, archname=i686-linux-thread-multi-64all
uname='linux play.smurf.noris.de 2.4.0s-noris-t1-4 #32 smp mon may 29 15:22:58 cest 2000 i686 unknown '
config_args='-Uusenm -Duseshrplib=true -Dman1dir=/usr/man/man1 -Dman3dir=/usr/man/man3 -Dbin=/usr/lib/perl/bin -Dstartperl=#!/usr/bin/perl -Dprefix=/usr/lib/perl -d -e -Dcf_email=smurf@noris.net -Dman1ext=1p -Dman3ext=3p -Dusemultiplicity -Dusethreads -Duseithreads -Duse64bitall -Duselargefiles -Dd_dosuid -Duselongdouble'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
useperlio=undef d_sfio=undef uselargefiles=define
use64bitint=define use64bitall=define uselongdouble=define usesocks=undef
Compiler:
cc='cc', optimize='-O2 -g', gccversion=2.95.2 19991024 (release)
cppflags='-D_REENTRANT -fno-strict-aliasing -I/usr/local/include'
ccflags ='-D_REENTRANT -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long long', ivsize=8, nvtype='long double', nvsize=12, 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 -lndbm -lgdbm -ldb -ldl -lm -lpthread -lc -lposix -lcrypt
libc=/lib/libc-2.1.3.so, so=so, useshrplib=true, libperl=libperl.so
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl/lib/5.6.0/i686-linux-thread-multi-64all/CORE'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Locally applied patches:
---
@INC for perl v5.6.0:
/usr/lib/perl/lib/5.6.0/i686-linux-thread-multi-64all
/usr/lib/perl/lib/5.6.0
/usr/lib/perl/lib/site_perl/5.6.0/i686-linux-thread-multi-64all
/usr/lib/perl/lib/site_perl/5.6.0
/usr/lib/perl/lib/site_perl/5.005
/usr/lib/perl/lib/site_perl
.
---
Environment for perl v5.6.0:
HOME=/home/smurf
LANG=en_US
LANGUAGE (unset)
LC_ALL=en_US
LC_CTYPE=C
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/usr/pop/bin:/pop/bin:/usr/src/STATUS/bin:/home/smurf/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/bin:/opt/bin:/usr/pop/bin:/usr/X11R6/bin:/usr/local/bin:/opt/bin:/usr/pop/bin:/usr/X11R6/bin
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Next
-
[ID 20010305.003] goto+eval doesn't catch jump-into-loop
by smurf