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

[perl #132849] Perl build process leaves random files in system

Thread Previous
From:
Sergey Aleynikov
Date:
February 10, 2018 22:29
Subject:
[perl #132849] Perl build process leaves random files in system
Message ID:
rt-4.0.24-8484-1518301760-1667.132849-75-0@perl.org
# New Ticket Created by  Sergey Aleynikov 
# Please include the string:  [perl #132849]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=132849 >


This is a bug report for perl from sergey.aleynikov@gmail.com,
generated with the help of perlbug 1.41 running under perl 5.27.9.


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

Starting with the commit c0e3b4b51c, perl build process now leaves (on
some systems) files outside of it's build tree:

dorothy at ~/afl-bisect ±(c0e3b4b51c) ❯ ls -al /home/core
total 32
drwxrwxrwx 2 root root 24576 Aug  9  2017 .
drwxr-xr-x 5 root root  4096 May 19  2017 ..

dorothy at ~/afl-bisect ±(c0e3b4b51c) ❯ git clean -dfx && ./Configure
-de -Dusedevel && make -j20 test_prep
<snip>
cd t && (rm -f perl; /bin/ln -s ../perl perl)

drwxrwxrwx 2 root root    24576 Feb 11 01:22 .
drwxr-xr-x 5 root root     4096 May 19  2017 ..
-rw------- 1 afl  afl  19984384 Feb 11 01:22 core.40209
-rw------- 1 afl  afl  16064512 Feb 11 01:22 core.40211
-rw------- 1 afl  afl  15572992 Feb 11 01:22 core.40223
-rw------- 1 afl  afl  15327232 Feb 11 01:22 core.40233
-rw------- 1 afl  afl  15294464 Feb 11 01:22 core.40247
-rw------- 1 afl  afl  15294464 Feb 11 01:22 core.40267
-rw------- 1 afl  afl  15708160 Feb 11 01:22 core.40352
-rw------- 1 afl  afl  15101952 Feb 11 01:22 core.40392
-rw------- 1 afl  afl  15101952 Feb 11 01:22 core.40479

This pollutes users' systems. This leads to things like
https://rt.perl.org/Ticket/Display.html?id=132843. This can break in
other ways on restricted systems.

I do not find this behavior nor desirable nor sane.

[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=library
    severity=high
    module=Storable
---
Site configuration information for perl 5.27.9:

Configured by root at Sun Feb 11 01:07:53 MSK 2018.

Summary of my perl5 (revision 5 version 27 subversion 9) configuration:
  Commit id: c0e3b4b51cabf15ed8fc5f564dfeea31c25f5239
  Platform:
    osname=linux
    osvers=4.9.0-5-amd64
    archname=x86_64-linux
    uname='linux dorothy 4.9.0-5-amd64 #1 smp debian 4.9.65-3+deb9u2
(2018-01-04) x86_64 gnulinux '
    config_args='-de -Dusedevel'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=undef
    usemultiplicity=undef
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
    bincompat5005=undef
  Compiler:
    cc='cc'
    ccflags ='-fwrapv -fno-strict-aliasing -pipe
-fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2'
    optimize='-O2'
    cppflags='-fwrapv -fno-strict-aliasing -pipe
-fstack-protector-strong -I/usr/local/include'
    ccversion=''
    gccversion='6.3.0 20170516'
    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-strong -L/usr/local/lib'
    libpth=/usr/local/lib
/usr/lib/gcc/x86_64-linux-gnu/6/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.24.so
    so=so
    useshrplib=false
    libperl=libperl.a
    gnulibc_version='2.24'
  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-strong'


---
@INC for perl 5.27.9:
    lib
    /usr/local/lib/perl5/site_perl/5.27.9/x86_64-linux
    /usr/local/lib/perl5/site_perl/5.27.9
    /usr/local/lib/perl5/5.27.9/x86_64-linux
    /usr/local/lib/perl5/5.27.9

---
Environment for perl 5.27.9:
    HOME=/home/afl
    LANG=en_US.UTF-8
    LANGUAGE=en_US:en
    LC_CTYPE=en_US.UTF-8
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/afl/perlbrew/bin:/home/afl/perlbrew/perls/perl-5.20.2/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
    PERLBREW_BASHRC_VERSION=0.78
    PERLBREW_HOME=/home/afl/.perlbrew
    PERLBREW_MANPATH=/home/afl/perlbrew/perls/perl-5.20.2/man
    PERLBREW_PATH=/home/afl/perlbrew/bin:/home/afl/perlbrew/perls/perl-5.20.2/bin
    PERLBREW_PERL=perl-5.20.2
    PERLBREW_ROOT=/home/afl/perlbrew
    PERLBREW_VERSION=0.78
    PERL_BADLANG (unset)
    SHELL=/usr/bin/zsh


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