develooper Front page | perl.perl5.porters | Postings from January 2012

[perl #108224] B::Deparse doesn't recognize for continue block

Thread Previous
From:
Hojung Youn
Date:
January 14, 2012 21:16
Subject:
[perl #108224] B::Deparse doesn't recognize for continue block
Message ID:
rt-3.6.HEAD-14510-1326596575-638.108224-75-0@perl.org
# New Ticket Created by  Hojung Youn 
# Please include the string:  [perl #108224]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=108224 >


$ perl -MO=Deparse -e 'for (1..10) { print } continue { }'
do {
    print $_
} foreach (1 .. 10);
-e syntax OK


$ perl -MO=Deparse -e 'for my $i (1..10) { print } continue { }'
While deparsing -e near line 1,
 at /home/am0c/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/B/Deparse.pm
line 2716
	B::Deparse::loop_common('B::Deparse=HASH(0x92e35b4)',
'B::BINOP=SCALAR(0x90d6c64)', 0.5, '') called at
/home/am0c/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/B/Deparse.pm
line 2773
	B::Deparse::pp_leaveloop('B::Deparse=HASH(0x92e35b4)',
'B::BINOP=SCALAR(0x90d6c64)', 0.5) called at
/home/am0c/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/B/Deparse.pm
line 826
	B::Deparse::deparse('B::Deparse=HASH(0x92e35b4)',
'B::BINOP=SCALAR(0x90d6c64)', 0.5) called at
/home/am0c/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/B/Deparse.pm
line 1235
	B::Deparse::walk_lineseq('B::Deparse=HASH(0x92e35b4)',
'B::LISTOP=SCALAR(0x90d6bc4)', 'ARRAY(0x91c14d4)', 'CODE(0x90d6184)')
called at /home/am0c/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/B/Deparse.pm
line 1215
	B::Deparse::deparse_root('B::Deparse=HASH(0x92e35b4)',
'B::LISTOP=SCALAR(0x90d6bc4)') called at
/home/am0c/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/B/Deparse.pm
line 679
	B::Deparse::__ANON__() called at (eval 1) line 31
	O::CHECK() called at -e line 0
	eval {...} called at -e line 0
CHECK failed--call queue aborted.
am0c@amolap:~/local/perl-git/utils$ perl -MO=Deparse -e 'for my $i
(1..10) { } continue { }'
While deparsing -e near line 1,
 at /home/am0c/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/B/Deparse.pm
line 2716
	B::Deparse::loop_common('B::Deparse=HASH(0x8f415bc)',
'B::BINOP=SCALAR(0x8d34c5c)', 0.5, '') called at
/home/am0c/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/B/Deparse.pm
line 2773
	B::Deparse::pp_leaveloop('B::Deparse=HASH(0x8f415bc)',
'B::BINOP=SCALAR(0x8d34c5c)', 0.5) called at
/home/am0c/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/B/Deparse.pm
line 826
	B::Deparse::deparse('B::Deparse=HASH(0x8f415bc)',
'B::BINOP=SCALAR(0x8d34c5c)', 0.5) called at
/home/am0c/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/B/Deparse.pm
line 1235
	B::Deparse::walk_lineseq('B::Deparse=HASH(0x8f415bc)',
'B::LISTOP=SCALAR(0x8d34bbc)', 'ARRAY(0x8e1f4e4)', 'CODE(0x8d3417c)')
called at /home/am0c/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/B/Deparse.pm
line 1215
	B::Deparse::deparse_root('B::Deparse=HASH(0x8f415bc)',
'B::LISTOP=SCALAR(0x8d34bbc)') called at
/home/am0c/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/B/Deparse.pm
line 679
	B::Deparse::__ANON__() called at (eval 1) line 31
	O::CHECK() called at -e line 0
	eval {...} called at -e line 0
CHECK failed--call queue aborted.

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

Configured by am0c at Fri Jan 13 06:48:19 KST 2012.

Summary of my perl5 (revision 5 version 14 subversion 2) configuration:

  Platform:
    osname=linux, osvers=3.0.3, archname=i686-linux-thread-multi
    uname='linux amolap 3.0.3 #1 smp preempt wed aug 24 06:23:42 kst
2011 i686 gnulinux '
    config_args='-de
-Dprefix=/home/am0c/perl5/perlbrew/perls/perl-5.14.2 -Dusethreads
-DDEBUGGING'
    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='-O2 -g',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.4.3', 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/../lib /usr/lib/../lib /lib /usr/lib
/usr/lib/i486-linux-gnu /usr/lib64
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc -lgdbm_compat
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.11.1.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.11.1'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -g -L/usr/local/lib
-fstack-protector'

Locally applied patches:


---
@INC for perl 5.14.2:
    /home/am0c/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/i686-linux-thread-multi
    /home/am0c/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2
    /home/am0c/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/i686-linux-thread-multi
    /home/am0c/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2
    .

---
Environment for perl 5.14.2:
    HOME=/home/am0c
    LANG=en_US.utf8
    LANGUAGE (unset)
    LD_LIBRARY_PATH=/usr/lib/openoffice/basis3.2/sdk/lib:/home/am0c/openoffice.org3.2_sdk/LINUXexample.out/lib:/usr/lib/openoffice/basis3.2/ure-link/lib:.:
    LOGDIR (unset)
    PATH=/home/am0c/.rvm/gems/ruby-1.9.2-p0/bin:/home/am0c/.rvm/gems/ruby-1.9.2-p0@global/bin:/home/am0c/.rvm/rubies/ruby-1.9.2-p0/bin:/home/am0c/.rvm/bin:/home/am0c/perl5/perlbrew/bin:/home/am0c/perl5/perlbrew/perls/perl-5.14.2/bin:/usr/lib/jvm/java-6-openjdk/bin:/usr/bin:/usr/bin:/usr/bin:/usr/lib/openoffice/basis3.2/sdk/bin:/home/am0c/openoffice.org3.2_sdk/LINUXexample.out/bin:/usr/lib/openoffice/basis3.2/ure-link/bin:/usr/lib/openoffice/program:.:/home/am0c/local/android/android-sdk-linux_86/platform-tools:/home/am0c/bin:/home/am0c/local/android/android-sdk-linux_86/tools:/home/am0c/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/eldk/usr/bin:/opt/eldk/bin:/home/am0c/local/amazonaws/ec2/bin:/usr/lib/jvm/java-6-openjdk/bin
    PERLBREW_HOME=/home/am0c/.perlbrew
    PERLBREW_PATH=/home/am0c/perl5/perlbrew/bin:/home/am0c/perl5/perlbrew/perls/perl-5.14.2/bin
    PERLBREW_PERL=perl-5.14.2
    PERLBREW_ROOT=/home/am0c/perl5/perlbrew
    PERLBREW_VERSION=0.27
    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