develooper Front page | perl.perl5.porters | Postings from October 2013

[perl #120174] Debugger command regression: Now requires more spaces

From:
Smylers
Date:
October 10, 2013 11:14
Subject:
[perl #120174] Debugger command regression: Now requires more spaces
Message ID:
rt-3.6.HEAD-26210-1381403664-240.120174-75-0@perl.org
# New Ticket Created by  Smylers 
# Please include the string:  [perl #120174]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=120174 >



This is a bug report for perl from smylers@stripey.com,
generated with the help of perlbug 1.39 running under perl 5.19.5.


-----------------------------------------------------------------

In the Perl debugger commands written like the following used to work,
but now throw errors:

  p@ARGV
  x@ARGV
  x\@ARGV
  x\%INC

They still work if you type a space between the command letter and the
punctuation character which starts its argument, but they used to work
without the space too.

It only seems to be the single-letter debugger commands that are
affected. print@ARGV and so on still works without spaces.

The error message in blead is:

    DB<72> x\@ARGV
  Backslash found where operator expected at (eval 8)[lib/perl5db.pl:732] line 2, near "x\"
  at (eval 8)[lib/perl5db.pl:732] line 2.
    eval 'no strict; ($@, $!, $^E, $,, $/, $\\, $^W) = @DB::saved;package main; $^D = $^D | $DB::db_stop;
  x\\@ARGV;
  ' called at lib/perl5db.pl line 732
    DB::eval called at lib/perl5db.pl line 3091
    DB::DB called at -e line 1
  syntax error at (eval 8)[lib/perl5db.pl:732] line 2, near "x\"

This is it working in v5.14.3:

    DB<72> x\@ARGV
  0  ARRAY(0x2267d18)
      empty array

I haven't tried to narrow it down any further, mainly cos I don't know
how to come up with a non-interactive way of demonstrating the change.

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

Configured by smylers at Wed Oct  9 17:34:57 BST 2013.

Summary of my perl5 (revision 5 version 19 subversion 5) configuration:
  Commit id: 01582e5ce2e8b00ce08a55eb4a588e811e479912
  Platform:
    osname=linux, osvers=3.8.0-32-generic, archname=x86_64-linux
    uname='linux fozzie 3.8.0-32-generic #47-ubuntu smp tue oct 1 22:35:23 utc 2013 x86_64 x86_64 x86_64 gnulinux '
    config_args='-des -Dusedevel'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.7.3', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib /usr/lib
    libs=-lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.17'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector'


---
@INC for perl 5.19.5:
    lib
    /home/smylers/lib/perl5/site_perl
    /home/smylers/lib/perl5
    /usr/local/lib/perl5/site_perl/5.19.5/x86_64-linux
    /usr/local/lib/perl5/site_perl/5.19.5
    /usr/local/lib/perl5/5.19.5/x86_64-linux
    /usr/local/lib/perl5/5.19.5
    .

---
Environment for perl 5.19.5:
    HOME=/home/smylers
    LANG=en_GB.utf8
    LANGUAGE=en_GB:en
    LC_COLLATE=C
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/smylers/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/games
    PERL5LIB=/home/smylers/lib/perl5/site_perl:/home/smylers/lib/perl5
    PERL_BADLANG (unset)
    PERL_CPANM_OPT=--sudo --prompt
    SHELL=/bin/bash




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