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

[perl #128508] 5.19.4 - 5.25.2: -x line offset error

Thread Previous
From:
perlbug-followup
Date:
July 1, 2016 17:29
Subject:
[perl #128508] 5.19.4 - 5.25.2: -x line offset error
Message ID:
rt-4.0.18-5722-1467351938-315.128508-75-0@perl.org
# New Ticket Created by   
# Please include the string:  [perl #128508]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=128508 >



This is a bug report for perl from ted@lyncon.se,
generated with the help of perlbug 1.39 running under perl 5.19.4.


-----------------------------------------------------------------
[Please describe your issue here]
In 5.19.4 it seems an line number offset error when using "-x" sneeked in and it's still present in 5.25.2.

Running the below script with "perl -x" reports the erroneous line to be line 7, but it is line 6.

-- cut --
#!/usr/bin/perl

use strict;
use warnings;

my this_is_line_six
-- cut --

In 5.19.3 and earlier the line number is reported correctly.

Best regards,
Ted Lyngmo


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
Site configuration information for perl 5.19.4:

Configured by qtedlyn at Thu Jun 30 12:01:53 CEST 2016.

Summary of my perl5 (revision 5 version 19 subversion 4) configuration:
   
  Platform:
    osname=linux, osvers=2.6.32-504.30.3.el6.x86_64, archname=x86_64-linux
    uname='linux eselnlx1796 2.6.32-504.30.3.el6.x86_64 #1 smp thu jul 9 15:20:47 edt 2015 x86_64 x86_64 x86_64 gnulinux '
    config_args='-de -Dprefix=/home/qtedlyn/perl5/perlbrew/perls/perl-5.19.4 -Dusedevel -Aeval:scriptdir=/home/qtedlyn/perl5/perlbrew/perls/perl-5.19.4/bin'
    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.4.7 20120313 (Red Hat 4.4.7-11)', 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/../lib64 /usr/lib/../lib64 /lib /usr/lib /lib64 /usr/lib64 /usr/local/lib64
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
    libc=libc-2.12.so, so=so, useshrplib=false, libperl=libperl.a
    gnulibc_version='2.12'
  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'

Locally applied patches:
    Devel::PatchPerl 1.38

---
@INC for perl 5.19.4:
    /home/qtedlyn/perl5/perlbrew/perls/perl-5.19.4/lib/site_perl/5.19.4/x86_64-linux
    /home/qtedlyn/perl5/perlbrew/perls/perl-5.19.4/lib/site_perl/5.19.4
    /home/qtedlyn/perl5/perlbrew/perls/perl-5.19.4/lib/5.19.4/x86_64-linux
    /home/qtedlyn/perl5/perlbrew/perls/perl-5.19.4/lib/5.19.4
    .

---
Environment for perl 5.19.4:
    HOME=/home/qtedlyn
    LANG=en_US.utf8
    LANGUAGE (unset)
    LC_COLLATE=C
    LC_MESSAGES=C
    LC_TIME=C
    LD_LIBRARY_PATH=/app/expect/5.43/LMWP3/lib:/proj/sgsn-tools/wh/tools/RHE64-6.6/gcc/4.6.2/lib64
    LOGDIR (unset)
    PATH=/home/qtedlyn/perl5/perlbrew/bin:/home/qtedlyn/perl5/perlbrew/perls/perl-5.19.4/bin:/app/frame/5.5.6/bin:/app/expect/5.43/LMWP3/bin:/vobs/gsn_rel_otp/built/c_linux_gpb_lws/bin:/vobs/gsn_rel_otp/sles10_32/bin:/vobs/otp/otp_delivery/suse_x86/bin:/vobs/otp/otp_delivery/sles10_32/bin:/app/tig/1.1/LMWP3/bin:/app/python/2.7.1/RHEL64/bin:/app/git_tools/0.8/bin:/app/git/1.8.4.1/RHEL6/bin:/app/git/1.8.4.1/RHEL6/libexec/git-core:/app/kdiff3/0.9.96/RHEL64:/usr/lsf/bin:/usr/lsf/etc:/opt/quest/bin:/home/qtedlyn/.afs/3/rbin:/home/qtedlyn/.afs/3/pbin:/env/seln/bin:/home/qtedlyn/.afs/3/ibin:/usr/atria/bin:/usr/afsws/bin:/usr/lib64/qt-3.3/bin:/proj/sgsn-tools/wh/tools/RHE64-6.6/kdiff3/0.9.96/bin:/proj/sgsn-tools/wh/tools/RHE64-6.6/git/1.8.4/bin:/proj/sgsn-tools/wh/tools/RHE64-6.6/python/2.7.1/bin:/opt/tools/tools/vulcanbase/0.74/bin:/bin:/usr/bin:/usr/sbin:/sbin:/app/arc/0/bin:/proj/gsn_tools/bin:/proj/sgsn-tools/gsnws/LATEST:/proj/sgsn-tools/autogsn/LATEST:/proj/eXmachina/publish/bi
 n:/vobs/gsn_ccstart/bin:/vobs/gsn_autogsn/bin:/vobs/gsn/product/test/gtt/core/bin:/vobs/gsn_tecsas/bin:/vobs/gsn/tools/bin:/vobs/gsn_im/tools/dxet
    PERLBREW_CSHRC_VERSION=0.75
    PERLBREW_HOME=/home/qtedlyn/.perlbrew
    PERLBREW_MANPATH=/home/qtedlyn/perl5/perlbrew/perls/perl-5.19.4/man
    PERLBREW_PATH=/home/qtedlyn/perl5/perlbrew/bin:/home/qtedlyn/perl5/perlbrew/perls/perl-5.19.4/bin
    PERLBREW_PERL=perl-5.19.4
    PERLBREW_ROOT=/home/qtedlyn/perl5/perlbrew
    PERLBREW_VERSION=0.75
    PERL_BADLANG (unset)
    SHELL=/bin/tcsh


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