Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib/warnings.t fails on Win32 with CFG=DebugFull #17106

Open
p5pRT opened this issue Jul 24, 2019 · 3 comments
Open

lib/warnings.t fails on Win32 with CFG=DebugFull #17106

p5pRT opened this issue Jul 24, 2019 · 3 comments

Comments

@p5pRT
Copy link

p5pRT commented Jul 24, 2019

Migrated from rt.perl.org#134306 (status was 'new')

Searchable as RT134306$

@p5pRT
Copy link
Author

p5pRT commented Jul 24, 2019

From @tonycoz

Created by @tonycoz

Testing a build of perl build with MSVC 2019 and CFG=DebugFull fails one
warning test​:

../lib/warnings.t .. 667/909 PROG​:
# pp_sys.c [pp_sselect]
use warnings 'misc';
$x = 1;
select $x, undef, undef, 1;
sub TIESCALAR{bless[]} sub FETCH {"hello"} sub STORE{}
tie $y, "";
select $y, undef, undef, 1;
no warnings 'misc';
select $x, undef, undef, 1;
EXPECTED​:
Non-string passed as bitmask at - line 4.
GOT​:
Non-string passed as bitmask at - line 4.
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
# Failed test 679 - at lib\warnings\pp_sys line 723
../lib/warnings.t .. Failed 1/909 subtests
  (less 1 skipped subtest​: 907 okay)

Test Summary Report
-------------------
../lib/warnings.t (Wstat​: 0 Tests​: 909 Failed​: 1)
  Failed test​: 679
Files=1, Tests=909, 53 wallclock secs ( 0.31 usr + 0.03 sys = 0.34 CPU)
Result​: FAIL
gmake​: *** [GNUmakefile​:1946​: test] Error 1

I'm not sure what the right fix is here.

Perl Info

Flags:
    category=core
    severity=low

Site configuration information for perl 5.31.3:

Configured by tony at Tue Jul 23 21:36:53 2019.

Summary of my perl5 (revision 5 version 31 subversion 3) configuration:
   
  Platform:
    osname=MSWin32
    osvers=10.0.17134.885
    archname=MSWin32-x64-multi-thread
    uname=''
    config_args='undef'
    hint=recommended
    useposix=true
    d_sigaction=undef
    useithreads=define
    usemultiplicity=define
    use64bitint=define
    use64bitall=undef
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
    bincompat5005=undef
  Compiler:
    cc='cl'
    ccflags ='-nologo -GF -W3 -Od -MDd -Zi -D_DEBUG -DDEBUGGING -fp:precise -DWIN32 -D_CONSOLE -DNO_STRICT -DWIN64 -DCONSERVATIVE -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -D_WINSOCK_DEPRECATED_NO_WARNINGS  -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO'
    optimize='-Od -MDd -Zi -D_DEBUG -DDEBUGGING -fp:precise'
    cppflags='-DWIN32'
    ccversion='19.21.27702.2'
    gccversion=''
    gccosandvers=''
    intsize=4
    longsize=4
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=undef
    longlongsize=8
    d_longdbl=define
    longdblsize=8
    longdblkind=0
    ivtype='__int64'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='__int64'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='link'
    ldflags ='-nologo -nodefaultlib -debug -libpath:"c:\perl\lib\CORE" -machine:AMD64 -subsystem:console,"5.02"'
    libpth="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\\lib\x64"
    libs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl32.lib msvcrtd.lib vcruntimed.lib ucrtd.lib
    perllibs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl32.lib msvcrtd.lib vcruntimed.lib ucrtd.lib
    libc=ucrtd.lib
    so=dll
    useshrplib=true
    libperl=perl531.lib
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_win32.xs
    dlext=dll
    d_dlsymun=undef
    ccdlflags=' '
    cccdlflags=' '
    lddlflags='-dll -nologo -nodefaultlib -debug -libpath:"c:\perl\lib\CORE" -machine:AMD64 -subsystem:console,"5.02"'



@INC for perl 5.31.3:
    C:/Users/Tony/dev/perl/git/perl/lib


Environment for perl 5.31.3:
    HOME (unset)
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\bin\HostX64\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Team Tools\Performance Tools\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\vs2019\\x64;C:\Program Files (x86)\Microsoft Visual
Studio\Shared\Common\VSPerfCollectionTools\vs2019\;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64\;C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\\MSBuild\Current\Bin;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\;C:\Program Files\Microsoft MPI\Bin\;C:\Program Files (x86)\Common Files\Intel\Shared Files\cpp\bin\Intel64;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\Git\cmd;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Microsoft SQL
Server\130\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Users\Tony\AppData\Local\Microsoft\WindowsApps;C:\Users\Tony\AppData\Local\GitHubDesktop\bin;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja;c:\sperl-5.28.1.1-64bit-portable\c\bin
    PERL_BADLANG (unset)
    SHELL (unset)

@p5pRT
Copy link
Author

p5pRT commented Jul 24, 2019

From @tonycoz

On Tue, 23 Jul 2019 19​:05​:15 -0700, tonyc wrote​:

Invalid parameter detected in function _get_osfhandle. File​:
minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​:
minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN

While they don't cause test failures, many other similar errors are produced during test​:

io/crlf.t .......................................................... 1/16421 Invalid parameter detected in function _setmode. File​: minkernel\crts\ucrt\src\appcrt\lowio\setmode.cpp, line​: 29
Expression​: (fh >= 0 && (unsigned)fh < (unsigned)_nhandle)

io/open.t .......................................................... 93/188 Invalid parameter detected in function _setmode. File​: minkernel\crts\ucrt\src\appcrt\lowio\setmode.cpp, line​: 29
Expression​: (fh >= 0 && (unsigned)fh < (unsigned)_nhandle)
Invalid parameter detected in function _setmode. File​: minkernel\crts\ucrt\src\appcrt\lowio\setmode.cpp, line​: 29
Expression​: (fh >= 0 && (unsigned)fh < (unsigned)_nhandle)

io/perlio.t ........................................................ 1/48 Invalid parameter detected in function _setmode. File​: minkernel\crts\ucrt\src\appcrt\lowio\setmode.cpp, line​: 29
Expression​: (fh >= 0 && (unsigned)fh < (unsigned)_nhandle)

op/sselect.t ....................................................... 14/16 Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
(as per the warning failure)

op/tie_fetch_count.t ............................................... 1/343 Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 261
Expression​: _osfile(fh) & FOPEN
(many repeats)
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 260
Expression​: fh >= 0 && (unsigned)fh < (unsigned)_nhandle
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 260
Expression​: fh >= 0 && (unsigned)fh < (unsigned)_nhandle
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 260
Expression​: fh >= 0 && (unsigned)fh < (unsigned)_nhandle
Invalid parameter detected in function _get_osfhandle. File​: minkernel\crts\ucrt\src\appcrt\lowio\osfinfo.cpp, line​: 260
Expression​: fh >= 0 && (unsigned)fh < (unsigned)_nhandle
...

../cpan/Encode/t/rt65541.t ......................................... Invalid parameter detected in function _setmode. File​: minkernel\crts\ucrt\src\appcrt\lowio\setmode.cpp, line​: 29
Expression​: (fh >= 0 && (unsigned)fh < (unsigned)_nhandle)
../cpan/Encode/t/rt76824.t ......................................... Invalid parameter detected in function _setmode. File​: minkernel\crts\ucrt\src\appcrt\lowio\setmode.cpp, line​: 29
Expression​: (fh >= 0 && (unsigned)fh < (unsigned)_nhandle)
Invalid parameter detected in function _setmode. File​: minkernel\crts\ucrt\src\appcrt\lowio\setmode.cpp, line​: 29
Expression​: (fh >= 0 && (unsigned)fh < (unsigned)_nhandle)
../cpan/Encode/t/rt86327.t ......................................... Invalid parameter detected in function _setmode. File​: minkernel\crts\ucrt\src\appcrt\lowio\setmode.cpp, line​: 29
Expression​: (fh >= 0 && (unsigned)fh < (unsigned)_nhandle)
../cpan/Encode/t/truncated_utf8.t .................................. 1/9 Invalid parameter detected in function _setmode. File​: minkernel\crts\ucrt\src\appcrt\lowio\setmode.cpp, line​: 29
Expression​: (fh >= 0 && (unsigned)fh < (unsigned)_nhandle)
Invalid parameter detected in function _setmode. File​: minkernel\crts\ucrt\src\appcrt\lowio\setmode.cpp, line​: 29
Expression​: (fh >= 0 && (unsigned)fh < (unsigned)_nhandle)

../ext/I18N-Langinfo/t/Langinfo.t .................................. 1/94 Invalid parameter detected in function _Strftime_l. File​: minkernel\crts\ucrt\src\appcrt\time\strftime.cpp, line​: 130
Expression​: string != nullptr
Invalid parameter detected in function _Strftime_l. File​: minkernel\crts\ucrt\src\appcrt\time\strftime.cpp, line​: 131
Expression​: maxsize != 0

../ext/PerlIO-encoding/t/encoding.t ................................ 1/27 Invalid parameter detected in function _setmode. File​: minkernel\crts\ucrt\src\appcrt\lowio\setmode.cpp, line​: 29
Expression​: (fh >= 0 && (unsigned)fh < (unsigned)_nhandle)
Invalid parameter detected in function _setmode. File​: minkernel\crts\ucrt\src\appcrt\lowio\setmode.cpp, line​: 29
Expression​: (fh >= 0 && (unsigned)fh < (unsigned)_nhandle)
Invalid parameter detected in function _setmode. File​: minkernel\crts\ucrt\src\appcrt\lowio\setmode.cpp, line​: 29
Expression​: (fh >= 0 && (unsigned)fh < (unsigned)_nhandle)
Invalid parameter detected in function _setmode. File​: minkernel\crts\ucrt\src\appcrt\lowio\setmode.cpp, line​: 29
Expression​: (fh >= 0 && (unsigned)fh < (unsigned)_nhandle)
Invalid parameter detected in function _setmode. File​: minkernel\crts\ucrt\src\appcrt\lowio\setmode.cpp, line​: 29
Expression​: (fh >= 0 && (unsigned)fh < (unsigned)_nhandle)
Invalid parameter detected in function _setmode. File​: minkernel\crts\ucrt\src\appcrt\lowio\setmode.cpp, line​: 29
Expression​: (fh >= 0 && (unsigned)fh < (unsigned)_nhandle)
Invalid parameter detected in function _setmode. File​: minkernel\crts\ucrt\src\appcrt\lowio\setmode.cpp, line​: 29
Expression​: (fh >= 0 && (unsigned)fh < (unsigned)_nhandle)

../ext/POSIX/t/posix.t ............................................. 1/96 Invalid parameter detected in function _read. File​: minkernel\crts\ucrt\src\appcrt\lowio\read.cpp, line​: 381
Expression​: _osfile(fh) & FOPEN

Not a CRT issue​:

../lib/locale.t .................................................... 1/? Use of uninitialized value $Config{"d_has_C_UTF8"} in string eq at ./loc_tools.pl line 343.
Use of uninitialized value $Config{"d_has_C_UTF8"} in string eq at ./loc_tools.pl line 343.
readline() on closed filehandle DATA at ./loc_tools.pl line 424.

Tony

@andrew-aladev
Copy link

Found same issue: UCRT is broken in debug mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants