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

[perl #95998] [PATCH] inifinite loop breaking some strict checking, TODO test.

Thread Previous
From:
Gerard Goossen
Date:
July 31, 2011 07:39
Subject:
[perl #95998] [PATCH] inifinite loop breaking some strict checking, TODO test.
Message ID:
rt-3.6.HEAD-7815-1312123135-1625.95998-75-0@perl.org
# New Ticket Created by  Gerard Goossen 
# Please include the string:  [perl #95998]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=95998 >



This is a bug report for perl from gerard@ggoossen.net,
generated with the help of perlbug 1.39 running under perl 5.15.1.

>From f380fac30a25c467cbe684d7a0e8c2ee60539762 Mon Sep 17 00:00:00 2001
From: Gerard Goossen <gerard@ggoossen.net>
Date: Sat, 11 Jun 2011 22:14:03 +0200
Subject: [PATCH] inifinite loop breaking some strict checking, TODO test.

---
 t/lib/strict/subs |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/t/lib/strict/subs b/t/lib/strict/subs
index 87311f8..394c8d1 100644
--- a/t/lib/strict/subs
+++ b/t/lib/strict/subs
@@ -432,3 +432,13 @@ ret
 foo:
 ret
 bar
+########
+# TODO infinite loop breaks some strict checking
+use strict 'subs';
+sub foo {
+    1 while 1;
+    kill FOO, 1;
+}
+EXPECT
+Bareword "FOO" not allowed while "strict subs" in use at - line 5.
+Execution of - aborted due to compilation errors.
-- 
1.7.5.4

---
Flags:
    category=core
    severity=low
---
Site configuration information for perl 5.15.1:

Configured by gerard at Sun Jul 31 16:28:39 CEST 2011.

Summary of my perl5 (revision 5 version 15 subversion 1) configuration:
  Commit id: 7847967e2c9841ddd5de0fb8276ad66918faadec
  Platform:
    osname=linux, osvers=2.6.39-2-686-pae, archname=i686-linux-thread-multi
    uname='linux zeus 2.6.39-2-686-pae #1 smp tue jul 5 03:48:49 utc 2011 i686 gnulinux '
    config_args='-des -DDEBUGGING -Dusethreads -Dusedevel -Doptimize=-O3 -g3 -Dprefix=/home/gerard/perl/inst/madperl'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=undef, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O3 -g3',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.6.1', 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, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib /usr/lib/i386-linux-gnu /usr/lib64
    libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.13'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O3 -g3 -L/usr/local/lib -fstack-protector'

Locally applied patches:
    

---
@INC for perl 5.15.1:
    lib
    /home/gerard/perl/inst/madperl/lib/site_perl/5.15.1/i686-linux-thread-multi
    /home/gerard/perl/inst/madperl/lib/site_perl/5.15.1
    /home/gerard/perl/inst/madperl/lib/5.15.1/i686-linux-thread-multi
    /home/gerard/perl/inst/madperl/lib/5.15.1
    /home/gerard/perl/inst/madperl/lib/site_perl
    .

---
Environment for perl 5.15.1:
    HOME=/home/gerard
    LANG=en_US.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/gerard/bin:/usr/local/bin:/usr/bin:/bin:/usr/games
    PERL_BADLANG (unset)
    SHELL=/bin/bash


Thread Previous


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