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

[perl #128639] Windows MinGW test failure in lib/warnings

Thread Previous
From:
Dan Collins
Date:
July 16, 2016 22:10
Subject:
[perl #128639] Windows MinGW test failure in lib/warnings
Message ID:
rt-4.0.18-21230-1468707029-858.128639-75-0@perl.org
# New Ticket Created by  Dan Collins 
# Please include the string:  [perl #128639]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=128639 >


perl -V:

W:\buildbot\windows1\win32\build\t>perl -I../lib -V
Summary of my perl5 (revision 5 version 25 subversion 3) configuration:

  Platform:
    osname=MSWin32
    osvers=10.0
    archname=MSWin32-x86-multi-thread
    uname=''
    config_args='undef'
    hint=recommended
    useposix=true
    d_sigaction=undef
    useithreads=define
    usemultiplicity=define
    use64bitint=undef
    use64bitall=undef
    uselongdouble=undef
    usemymalloc=n
    bincompat5005=undef
  Compiler:
    cc='gcc'
    ccflags =' -s -O2 -DWIN32  -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fwrapv -fno-strict-aliasing -mms-bitfields'
    optimize='-s -O2'
    cppflags='-DWIN32'
    ccversion=''
    gccversion='4.9.3'
    gccosandvers=''
    intsize=4
    longsize=4
    ptrsize=4
    doublesize=8
    byteorder=1234
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=12
    longdblkind=3
    ivtype='long'
    ivsize=4
    nvtype='double'
    nvsize=8
    Off_t='long long'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='g++'
    ldflags ='-s -L"c:\perl\lib\CORE" -L"C:\MinGW\lib"'
    libpth=C:\MinGW\lib
    libs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
    perllibs=-lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
    libc=
    so=dll
    useshrplib=true
    libperl=libperl525.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_win32.xs
    dlext=dll
    d_dlsymun=undef
    ccdlflags=' '
    cccdlflags=' '
    lddlflags='-mdll -s -L"c:\perl\lib\CORE" -L"C:\MinGW\lib"'


Characteristics of this binary (from libperl):
  Compile-time options:
    HAS_TIMES
    HAVE_INTERP_INTERN
    MULTIPLICITY
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
    PERL_IMPLICIT_CONTEXT
    PERL_IMPLICIT_SYS
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    USE_ITHREADS
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
  Built under MSWin32
  Compiled at Jul 16 2016 17:21:19
  @INC:
    ../lib
    W:/buildbot/windows1/win32/build/t/lib
    .

This is blead revision f6203e997f3012b8aab4cd35fe49f58e4d71fb8c built by mingw.org GCC 4.9.3

W:\buildbot\windows1\win32\build\t>perl -I../lib harness ../lib/warnings.t
../lib/warnings.t .. 242/899 PROG:
use warnings 'uninitialized';
my ($v);

# check hash key is sanitised
my %h = ("\0011\002\r\n\t\f\"\\\x{1234}abcdefghijklmnopqrstuvwxyz", undef);
$v = join '', %h;
EXPECTED:
Use of uninitialized value $h{"\0011\2\r\n\t\f\"\\\x{1234}abcde"...} in join or string at - line 6.
GOT:
Use of uninitialized value $h{"\11\2\r\n\t\f\"\\\x{1234}abcdefg"...} in join or string at - line 6.
# Failed test 279 - at lib\warnings\9uninit line 1159
../lib/warnings.t .. Failed 1/899 subtests
        (less 1 skipped subtest: 897 okay)

Test Summary Report
-------------------
../lib/warnings.t (Wstat: 0 Tests: 899 Failed: 1)
  Failed test:  279
Files=1, Tests=899, 20 wallclock secs ( 0.17 usr +  0.00 sys =  0.17 CPU)
Result: FAIL

As with RT #128638, this is a warnings issue on mingw.org compilers. mingw-w64.org compilers do not exhibit this error, either on 32-bit or 64-bit builds, nor am I seeing this test failure on Cygwin or Linux.

-- 
Respectfully,
Dan Collins


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