Skip Menu |
Report information
Id: 132234
Status: open
Priority: 0/
Queue: perl5

Owner: Nobody
Requestors: brian.carpenter [at] gmail.com
Cc:
AdminCc:

Operating System: (no value)
PatchStatus: (no value)
Severity: low
Type: unknown
Perl Version: (no value)
Fixed In: (no value)



From: Brian Carpenter <brian.carpenter [...] gmail.com>
Subject: use-of-uninitialized-value in Perl_upg_version (vutil.c:669)
Date: Fri, 6 Oct 2017 15:42:07 -0500
To: perlbug [...] perl.org
Download (untitled) / with headers
text/plain 1.6k
While building 1195d90 with -fsanitize=memory, the process fails during the miniperl build.

afl-clang-fast [tpcg] 2.51b by <lszekeres@google.com>
./miniperl -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl.  Please run make minitest; exit 1'
==11441==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x560a10786ab7 in Perl_upg_version /root/perl/./vutil.c:669:2
    #1 0x560a107839a2 in Perl_new_version /root/perl/./vutil.c:551:12
    #2 0x560a10acb9f4 in S_require_version /root/perl/pp_ctl.c:3663:10
    #3 0x560a10acb9f4 in Perl_pp_require /root/perl/pp_ctl.c:4291
    #4 0x560a10757a0d in Perl_runops_debug /root/perl/dump.c:2486:23
    #5 0x560a10432f4e in Perl_call_sv /root/perl/perl.c:2921:6
    #6 0x560a10419c56 in Perl_call_list /root/perl/perl.c:5086:6
    #7 0x560a103b2253 in S_process_special_blocks /root/perl/op.c:9061:6
    #8 0x560a1037a348 in Perl_newATTRSUB_x /root/perl/op.c:8990:21
    #9 0x560a1038434b in Perl_utilize /root/perl/op.c:6341:5
    #10 0x560a105c3ee4 in Perl_yyparse /root/perl/perly.y:360:6
    #11 0x560a104296f9 in S_parse_body /root/perl/perl.c:2450:9
    #12 0x560a1041dc2e in perl_parse /root/perl/perl.c:1753:2
    #13 0x560a10e00597 in main /root/perl/miniperlmain.c:127:18
    #14 0x7fa54f9ea82f in __libc_start_main /build/glibc-bfm8X4/glibc-2.23/csu/../csu/libc-start.c:291
    #15 0x560a102b4e88 in _start (/root/perl/miniperl+0x2fe88)

SUMMARY: MemorySanitizer: use-of-uninitialized-value /root/perl/./vutil.c:669:2 in Perl_upg_version
Exiting
Failed to build miniperl. Please run make minitest
makefile:362: recipe for target 'lib/buildcustomize.pl' failed
make: *** [lib/buildcustomize.pl] Error 1
RT-Send-CC: perl5-porters [...] perl.org
Download (untitled) / with headers
text/plain 297b
On Fri, 06 Oct 2017 13:42:55 -0700, brian.carpenter@gmail.com wrote: Show quoted text
> While building 1195d90 with -fsanitize=memory, the process fails during the > miniperl build.
Could I have the Configure options and clang version you used to build this? (since you obviously can't run perl -V) Thanks, Tony
From: Brian Carpenter <brian.carpenter [...] gmail.com>
Subject: Re: [perl #132234] use-of-uninitialized-value in Perl_upg_version (vutil.c:669)
To: perlbug-followup [...] perl.org
Date: Wed, 18 Oct 2017 20:08:06 -0500
Download (untitled) / with headers
text/plain 935b
./Configure -des -Dusedevel -DDEBUGGING -Dcc=afl-clang-fast -Doptimize=-O2\ -g -Accflags='-fno-omit-frame-pointer -fsanitize=memory -fsanitize-coverage=edge,trace-pc-guard,indirect-calls,trace-cmp,trace-div,trace-gep' -Aldflags='-fno-omit-frame-pointer -fsanitize=memory -fsanitize-coverage=edge,trace-pc-guard,indirect-calls,trace-cmp,trace-div,trace-gep' &&  AFL_PATH=/root/afl-2.51b make

Chromium clang version 6.0.0-trunk: git clone https://chromium.googlesource.com/chromium/src/tools/clang && clang/scripts/update.py





On Wed, Oct 18, 2017 at 7:51 PM, Tony Cook via RT <perlbug-followup@perl.org> wrote:
Show quoted text
On Fri, 06 Oct 2017 13:42:55 -0700, brian.carpenter@gmail.com wrote:
> While building 1195d90 with -fsanitize=memory, the process fails during the
> miniperl build.

Could I have the Configure options and clang version you used to build this? (since you obviously can't run perl -V)

Thanks,
Tony




This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org