Front page | perl.perl5.porters |
Postings from February 2000
[ID 20000225.005] My variable defined at start of cycle
Thread Next
From:
Jan Pazdziora
Date:
February 25, 2000 06:01
Subject:
[ID 20000225.005] My variable defined at start of cycle
Message ID:
200002251401.PAA12982@theseus.fi.muni.cz
This is a bug report for perl from adelton@fi.muni.cz,
generated with the help of perlbug 1.27 running under perl v5.5.660.
-----------------------------------------------------------------
[Please enter your report here]
Andreas Koenig pointed out that there is a problem with my DBD::XBase
module under bleeding edge perl. I've localized the problem and stripped
it to minimal code that still shows the behaviour, which is (I hope I'm
not terribly overlooking something) a bug in perl itself.
while (1) {
my $error;
die "Fault!\n" if defined $error;
$error = 1;
if (1) {
next;
}
}
continue {
}
__END__
This code prints with Fault! when run on 5.5.660 grabbed from CPAN.
I believe that right after
my $error;
the variable $error shouldn't be defined (or can it be?). Removing the
continue block helps, removing the next stuff helps, this is the minimal
code I was able to come with.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Site configuration information for perl v5.5.660:
Configured by adelton at Thu Feb 24 11:34:15 MET 2000.
Summary of my perl5 (revision 5.0 version 5 subversion 660) configuration:
Platform:
osname=solaris, osvers=2.7, archname=sun4-solaris
uname='sunos theseus 5.7 generic sun4u sparc sunw,ultra-2 '
config_args=''
hint=previous, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usesocks=undef useperlio=undef d_sfio=undef
use64bits=define uselargefiles=define usemultiplicity=undef
Compiler:
cc='gcc', optimize='-O', gccversion=egcs-2.91.66 19990314 (egcs-1.1.2 release)
cppflags='-fno-strict-aliasing -DUSE_64_BITS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccflags ='-fno-strict-aliasing -DUSE_64_BITS -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=16
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, usemymalloc=y, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' '
libpth=/lib /usr/lib /usr/ccs/lib
libs=-lsocket -lnsl -ldl -lm -lc -lcrypt -lsec
libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-fPIC', lddlflags='-G'
Locally applied patches:
---
@INC for perl v5.5.660:
/export/packages/perl-5.5.660/lib/perl5/5.5.660/sun4-solaris
/export/packages/perl-5.5.660/lib/perl5/5.5.660
/export/packages/perl-5.5.660/lib/perl5/site_perl/5.5.660/sun4-solaris
/export/packages/perl-5.5.660/lib/perl5/site_perl/5.5.660
/export/packages/perl-5.5.660/lib/perl5/site_perl
.
---
Environment for perl v5.5.660:
HOME=/home/adelton
LANG (unset)
LANGUAGE (unset)
LC_CTYPE=cs
LD_LIBRARY_PATH=/usr/ccs/lib:/usr/ccs/lib:/usr/lib:/usr/ucblib:/usr/openwin/lib:/packages/run/gcc-2.5.7/lib:/packages/run/links/lib:/packages/run/gtk+-1.0.6b/lib:/packages/run/gtk+-1.2.3/lib:/packages/run/gtk+-1.2.3/lib:/packages/run/glib-1.2.3/lib:/export/packages/oracle-8.0.6/lib:/usr/dt/lib:/export/packages/oracle-8.0.6/lib:/usr/dt/lib
LOGDIR (unset)
PATH=/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/openwin/bin:/packages/run/modules-2.0/bin:/packages/run/gtk+-1.0.6b/bin:/packages/run/gtk+-1.2.3/bin:/packages/run/gtk+-1.2.3/bin:/packages/run/glib-1.2.3/bin:/packages/run/mysql-3.22.18/bin:/packages/run/perl-5.004_04/bin:/packages/run/egcs-1.1.2/bin:/packages/run/binutils-2.9.1/bin:/opt/bin:/export/packages/oracle-8.0.6/bin:/opt/bin:/export/packages/oracle-8.0.6/bin:/packages/run/links/bin
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Next
-
[ID 20000225.005] My variable defined at start of cycle
by Jan Pazdziora