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

[perl #49298] B::Deparse fails to deparse a reference to an anonymous hash

Thread Next
David Leadbeater
January 2, 2008 13:57
[perl #49298] B::Deparse fails to deparse a reference to an anonymous hash
Message ID:
# New Ticket Created by  David Leadbeater 
# Please include the string:  [perl #49298]
# in the subject line of all future correspondence about this issue. 
# <URL: >

This is a bug report for perl from,
generated with the help of perlbug 1.36 running under perl 5.10.0.


B::Deparse fails to deparse a reference to an anonymous hash under 5.10, the
same code works fine under 5.8.8.

Code to reproduce:

  use B::Deparse; 
  print B::Deparse->new->coderef2text(sub { \{} }); 
This results in: 
Can't use an undefined value as an ARRAY reference at 
/usr/local/lib/perl5/5.10.0/i686-linux/B/ line 1795. 
It seems that anon_hash_or_list in isn't expecting to get passed an 
op where $op->name is srefgen. My understanding of the internals isn't good 
enough to figure much more out.. 

[Please do not change anything below this line] 
Site configuration information for perl 5.10.0: 
Configured by dleadbeater at Wed Jan  2 10:17:53 UTC 2008. 
Summary of my perl5 (revision 5 version 10 subversion 0) configuration: 
    osname=linux, osvers=2.6.12-xenu, archname=i686-linux 
    uname='linux 2.6.12-xenu #1 mon aug 15 15:47:25 bst 2005 i686 i686 i386 gnulinux ' 
    config_args='-de -Doptimize=-g' 
    hint=previous, useposix=true, d_sigaction=define 
    useithreads=undef, usemultiplicity=undef 
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef 
    use64bitint=undef, use64bitall=undef, uselongdouble=undef 
    usemymalloc=n, bincompat5005=undef 
    cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', 
    cppflags='-fno-strict-aliasing -pipe -I/usr/local/include -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' 
    ccversion='', gccversion='4.1.1 20070105 (Red Hat 4.1.1-52)', 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 =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=/lib/, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -g -L/usr/local/lib'

Locally applied patches:

@INC for perl 5.10.0:

Environment for perl 5.10.0:
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About