Front page | perl.perl5.porters |
Postings from June 2001
[ID 20010612.002] $^S almost entirely broken with 5.6.1
Thread Next
From:
Nathaniel Smith
Date:
June 12, 2001 03:52
Subject:
[ID 20010612.002] $^S almost entirely broken with 5.6.1
Message ID:
E159lkT-0005Tv-00@WyrmWeyr.frop.org
This is a bug report for perl from njs@uclink4.berkeley.edu,
generated with the help of perlbug 1.33 running under perl v5.6.1.
-----------------------------------------------------------------
[Please enter your report here]
If I run the following code on a v5.6.1 interpreter:
#!/usr/bin/perl
eval { my $x = $^S; };
print "\$^S is $^S\n";
__END__
The output is:
$^S is 1
The correct output is:
$^S is
That is, if $^S is mentioned inside an eval {} or "", then $^S is left
set after the eval block has ended. It doesn't matter if the mention
takes place directly within the eval block -- I originally noticed the
bug because I had a __DIE__ handler which checked $^S, and every time
die was called inside an eval block the bug was triggered.
Until this bug is fixed, __DIE__ handlers cannot work correctly.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=medium
---
Site configuration information for perl v5.6.1:
Configured by bod at Mon May 28 15:16:04 EST 2001.
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=linux, osvers=2.4.4, archname=i386-linux
uname='linux duende 2.4.4 #1 thu may 17 10:50:53 est 2001 i686 unknown '
config_args='-Dccflags=-DDEBIAN -Dcccdlflags=-fPIC -Darchname=i386-linux -Dprefix=/usr -Dprivlib=/usr/share/perl/5.6.1 -Darchlib=/usr/lib/perl/5.6.1 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.6.1 -Dsitearch=/usr/local/lib/perl/5.6.1 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Uusesfio -Dotherlibdirs=/usr/lib/perl5/5.6:/usr/lib/perl5/5.005 -Duseshrplib -Dlibperl=libperl.so.5.6.1 -Dd_dosuid -des'
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 ='-DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-DDEBIAN -fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='2.95.4 20010506 (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=-lgdbm -ldbm -ldb -ldl -lm -lc -lcrypt
perllibs=-ldl -lm -lc -lcrypt
libc=/lib/libc-2.2.3.so, so=so, useshrplib=true, libperl=libperl.so.5.6.1
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/perl/5.6.1
/usr/local/share/perl/5.6.1
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.6.1
/usr/share/perl/5.6.1
/usr/local/lib/site_perl
/usr/lib/perl5/5.6/i386-linux
/usr/lib/perl5/5.6
/usr/lib/perl5/5.005/i386-linux
/usr/lib/perl5/5.005
.
---
Environment for perl v5.6.1:
HOME=/home/njs
LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH=/home/njs/src/cvs/berlin/build-optimize/lib:/home/njs/src/cvs/berlin/build-optimize/modules:
LOGDIR (unset)
PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/X11R6/bin:/usr/local/bin:/usr/games:/usr/lib/teTeX/bin:.:/home/njs:/home/njs/bin:/usr/X11R6/bin:/usr/local/bin:/usr/games:/usr/lib/teTeX/bin:.:/home/njs:/home/njs/bin
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Next
-
[ID 20010612.002] $^S almost entirely broken with 5.6.1
by Nathaniel Smith