develooper Front page | perl.perl5.porters | Postings from April 2018

[perl #133130] `no autodie` removes system function

Thread Previous
From:
Shawn H Corey
Date:
April 20, 2018 12:33
Subject:
[perl #133130] `no autodie` removes system function
Message ID:
rt-4.0.24-23139-1524227602-884.133130-75-0@perl.org
# New Ticket Created by  Shawn H Corey 
# Please include the string:  [perl #133130]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=133130 >


Reply-To: shawnhcorey@gmail.com
Cc: SHCOREY@cpan.org
To: perlbug@perl.org
From: shawnhcorey@gmail.com
Subject: `no autodie` removes system function
Message-Id: <5.26.1_5820_1524227202@sage.Home>


This is a bug report for perl from shawnhcorey@gmail.com,
generated with the help of perlbug 1.40 running under perl 5.26.1.


-----------------------------------------------------------------
[Please describe your issue here]

Using `no autodie` will remove the system function.

    #!/usr/bin/env perl

    use strict;
    use warnings;

    use autodie;
    {
	no autodie;
    }
    system( qw( ls . ));

Emits the error:
Undefined subroutine called at ./eg-no-autodie-system.pl line 10.

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

Configured by Shawn H Corey at Fri Mar	9 08:15:37 EST 2018.

Summary of my perl5 (revision 5 version 26 subversion 1) configuration:
   
  Platform:
    osname=linux
    osvers=4.4.0-116-generic
    archname=x86_64-linux-gnu-thread-multi
    uname='linux sage 4.4.0-116-generic #140~14.04.1-ubuntu smp fri feb
16 09:25:20 utc 2018 x86_64 x86_64 x86_64 gnulinux ' config_args='-de
-Dprefix=/home/shawn/perl5/perlbrew/perls/perl-5.26.1 -Dusethreads
-Duselargefiles -Duse64bitall -Dccflags=-DDEBIAN -Dcccdlflags=-fPIC
-Darchname=x86_64-linux-gnu -Dpager=/usr/bin/sensible-pager
-Doptimize=-O2 -Duseshrplib -Dcf_by=Shawn H Corey
-Dcf_email=SHCOREY@cpan.org
-Aeval:scriptdir=/home/shawn/perl5/perlbrew/perls/perl-5.26.1/bin'
hint=recommended useposix=true d_sigaction=define useithreads=define
usemultiplicity=define use64bitint=define use64bitall=define
uselongdouble=undef usemymalloc=n
    default_inc_excludes_dot=define
    bincompat5005=undef
  Compiler:
    cc='cc'
    ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' optimize='-O2'
cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='' gccversion='4.8.4' gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    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 /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed /usr/include/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu /usr/lib/../lib /lib
    libs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
    libc=libc-2.19.so
    so=so
    useshrplib=true
    libperl=libperl.so
    gnulibc_version='2.19'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=so
    d_dlsymun=undef
    ccdlflags='-Wl,-E
-Wl,-rpath,/home/shawn/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/x86_64-linux-gnu-thread-multi/CORE'
cccdlflags='-fPIC' lddlflags='-shared -O2 -L/usr/local/lib
-fstack-protector'

Locally applied patches:
    Devel::PatchPerl 1.48

---
@INC for perl 5.26.1:
    /home/shawn/perl5/lib
    /home/shawn/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/x86_64-linux-gnu-thread-multi
    /home/shawn/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1
    /home/shawn/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/x86_64-linux-gnu-thread-multi
    /home/shawn/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1

---
Environment for perl 5.26.1:
    HOME=/home/shawn
    LANG=en_CA.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/shawn/bin:/home/shawn/perl5/perlbrew/bin:/home/shawn/perl5/perlbrew/perls/perl-5.26.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:.
    PERL5LIB=/home/shawn/perl5/lib
    PERLBREW_BASHRC_VERSION=0.66
    PERLBREW_HOME=/home/shawn/.perlbrew
    PERLBREW_MANPATH=/home/shawn/perl5/perlbrew/perls/perl-5.26.1/man
    PERLBREW_PATH=/home/shawn/perl5/perlbrew/bin:/home/shawn/perl5/perlbrew/perls/perl-5.26.1/bin
    PERLBREW_PERL=perl-5.26.1
    PERLBREW_ROOT=/home/shawn/perl5/perlbrew
    PERLBREW_VERSION=0.66
    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