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

'make' fails during '-Dusemymalloc' and '-Dusethreads' #17011

Closed
p5pRT opened this issue May 22, 2019 · 11 comments
Closed

'make' fails during '-Dusemymalloc' and '-Dusethreads' #17011

p5pRT opened this issue May 22, 2019 · 11 comments
Milestone

Comments

@p5pRT
Copy link

p5pRT commented May 22, 2019

Migrated from rt.perl.org#134126 (status was 'pending release')

Searchable as RT134126$

@p5pRT
Copy link
Author

p5pRT commented May 22, 2019

From @jkeenan

As first suggested by simcop2387 on #p5p, when you attempt to build
perl5.30.0 using these two configuration switches, the build fails
during 'make'. Bisecting on FreeBSD-11.2, I got this result​:

#####
f966a6e is the first bad commit
commit f966a6e
Author​: Karl Williamson <khw@​cpan.org>
Date​: Sat Feb 16 11​:44​:56 2019 -0700

  malloc.c​: Limit malloc size to PTRDIFF_MAX

  Without doing this, it is possible that the behavior is undefined when
  subtracting two pointers that point to the same object.

  See thread beginning at
  http​://nntp.perl.org/group/perl.perl5.porters/251541

  In particular this from Tomasz Konojacki
...
#####

simcop2387's build report is here​:
https://perl.bot/raw/b6nse4

However, I was able to reproduce this on both Linux and FreeBSD-11 with
the *combination* of "-Dusemymalloc=y -Dusethreads". "-Dusemymalloc=y"
by itself built successfully (though I didn't run tests).

Possibly related ticket​:
https://rt-archive.perl.org/perl5/Ticket/Display.html?id=75972

Bisection command​:
git clean -dfx; git bisect reset;perl Porting/bisect.pl --start=v5.29.6
--test-build -Dusemymalloc=y -Dusethreads

perl perl perl

@p5pRT
Copy link
Author

p5pRT commented May 22, 2019

From @jkeenan

On Wed, 22 May 2019 20​:10​:14 GMT, jkeenan@​pobox.com wrote​:

As first suggested by simcop2387 on #p5p, when you attempt to build
perl5.30.0 using these two configuration switches, the build fails
during 'make'. Bisecting on FreeBSD-11.2, I got this result​:

#####
f966a6e is the first bad commit
commit f966a6e
Author​: Karl Williamson <khw@​cpan.org>
Date​: Sat Feb 16 11​:44​:56 2019 -0700

 malloc\.c&#8203;: Limit malloc size to PTRDIFF\_MAX

 Without doing this\, it is possible that the behavior is undefined when
 subtracting two pointers that point to the same object\.

 See thread beginning at
 http&#8203;://nntp\.perl\.org/group/perl\.perl5\.porters/251541

 In particular this from Tomasz Konojacki

...
#####

simcop2387's build report is here​:
https://perl.bot/raw/b6nse4

However, I was able to reproduce this on both Linux and FreeBSD-11 with
the *combination* of "-Dusemymalloc=y -Dusethreads". "-Dusemymalloc=y"
by itself built successfully (though I didn't run tests).

Possibly related ticket​:
https://rt-archive.perl.org/perl5/Ticket/Display.html?id=75972

Bisection command​:
git clean -dfx; git bisect reset;perl Porting/bisect.pl --start=v5.29.6
--test-build -Dusemymalloc=y -Dusethreads

perl perl perl

This problem probably went undetected during the perl-5.29 dev cycle because "-Dusemymalloc=y" is rather obscure for a Configure switch and is probably not exercised by any of our smoke-testing rigs. "-Dusethreads", however, is well exercised in the test suite and across smoke-testing rigs.

Hence, as a way toward preventing a future regression, if someone were able to write a test in one of the already existing threads-activated test files that tickled this bug, that would be really nifty.

Thank you very much.
--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

p5pRT commented May 22, 2019

From [Unknown Contact. See original ticket]

On Wed, 22 May 2019 20​:10​:14 GMT, jkeenan@​pobox.com wrote​:

As first suggested by simcop2387 on #p5p, when you attempt to build
perl5.30.0 using these two configuration switches, the build fails
during 'make'. Bisecting on FreeBSD-11.2, I got this result​:

#####
f966a6e is the first bad commit
commit f966a6e
Author​: Karl Williamson <khw@​cpan.org>
Date​: Sat Feb 16 11​:44​:56 2019 -0700

 malloc\.c&#8203;: Limit malloc size to PTRDIFF\_MAX

 Without doing this\, it is possible that the behavior is undefined when
 subtracting two pointers that point to the same object\.

 See thread beginning at
 http&#8203;://nntp\.perl\.org/group/perl\.perl5\.porters/251541

 In particular this from Tomasz Konojacki

...
#####

simcop2387's build report is here​:
https://perl.bot/raw/b6nse4

However, I was able to reproduce this on both Linux and FreeBSD-11 with
the *combination* of "-Dusemymalloc=y -Dusethreads". "-Dusemymalloc=y"
by itself built successfully (though I didn't run tests).

Possibly related ticket​:
https://rt-archive.perl.org/perl5/Ticket/Display.html?id=75972

Bisection command​:
git clean -dfx; git bisect reset;perl Porting/bisect.pl --start=v5.29.6
--test-build -Dusemymalloc=y -Dusethreads

perl perl perl

This problem probably went undetected during the perl-5.29 dev cycle because "-Dusemymalloc=y" is rather obscure for a Configure switch and is probably not exercised by any of our smoke-testing rigs. "-Dusethreads", however, is well exercised in the test suite and across smoke-testing rigs.

Hence, as a way toward preventing a future regression, if someone were able to write a test in one of the already existing threads-activated test files that tickled this bug, that would be really nifty.

Thank you very much.
--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

p5pRT commented May 25, 2019

@khwilliamson - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented May 25, 2019

From @khwilliamson

Fixed by

*commit 9629b6d
Author​: Karl Williamson <khw@​cpan.org>
Date​: Wed May 22 14​:37​:20 2019 -0600

  PATCH​: [perl #134126] -Dusemymalloc, -Dusethreads
 
  This was due to a missing declaration for thread context needed to
  output a message.
---

Karl Williamson

@p5pRT
Copy link
Author

p5pRT commented May 25, 2019

@khwilliamson - Status changed from 'open' to 'pending release'

@p5pRT p5pRT closed this as completed May 25, 2019
@p5pRT
Copy link
Author

p5pRT commented Jul 7, 2019

From jiri.krobot.broz@gmail.com

This is a build failure report for perl from jiri.krobot.broz@​gmail.com
generated with the help of perlbug 1.41 running under perl 5.30.0.

-----------------------------------------------------------------
I tried to compile Perl with PERL_MALLOC = define. It failed during
complilation of the malloc.c
due this code lines​:
if (nbytes > PTRDIFF_MAX) {
#line 1242 -------- ! ERROR !
  MYMALLOC_WRITE2STDERR("Memory requests are limited to PTRDIFF_MAX"
" bytes to prevent possible undefined"
" behavior");
  return NULL;
}

MYMALLOC_WRITE2STDERR inherits using 'my_perl' but it is undefined here. It
causes this error.
I removed the line which is informative only and nmake passed.

For information only​: 'nmake test' failed with these errors​:
( by my experience with cpan, failed tests use to be almost harmless)

Test Summary Report
-------------------
run/locale.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
re/charset.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
re/fold_grind_8.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
re/fold_grind_T.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
re/regex_sets.t (Wstat​: 2304 Tests​: 53 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
re/uniprops01.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
re/uniprops02.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
re/uniprops03.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
re/uniprops04.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
re/uniprops05.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
re/uniprops06.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
re/uniprops07.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
re/uniprops08.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
re/uniprops09.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
re/uniprops10.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
op/lc.t (Wstat​: 2304 Tests​: 139 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: Bad plan. You planned 2202 tests but ran 139.
op/taint.t (Wstat​: 29696 Tests​: 825 Failed​: 0)
  Non-zero exit status​: 116
  Parse errors​: Bad plan. You planned 1042 tests but ran 825.
uni/fold.t (Wstat​: 2304 Tests​: 18501 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
../cpan/ExtUtils-MakeMaker/t/02-xsdynamic.t (Wstat​: 2048 Tests​: 54 Failed​:
8)
  Failed tests​: 3, 9, 15, 21, 27, 33, 39, 45
  Non-zero exit status​: 8
../cpan/ExtUtils-MakeMaker/t/INST.t (Wstat​: 29696 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 116
  Parse errors​: Bad plan. You planned 26 tests but ran 0.
../cpan/ExtUtils-MakeMaker/t/several_authors.t (Wstat​: 29696 Tests​: 0
Failed​: 0)
  Non-zero exit status​: 116
  Parse errors​: Bad plan. You planned 19 tests but ran 0.
../cpan/IO-Compress/t/104destroy-deflate.t (Wstat​: 29696 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 116
  Parse errors​: No plan found in TAP output
../cpan/IO-Compress/t/107multi-gzip.t (Wstat​: 29696 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 116
  Parse errors​: No plan found in TAP output
../cpan/JSON-PP/t/105_esc_slash.t (Wstat​: 29696 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 116
  Parse errors​: No plan found in TAP output
../cpan/Memoize/t/tie.t (Wstat​: 29696 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 116
  Parse errors​: No plan found in TAP output
../cpan/Module-Load/t/02_Module-Load.t (Wstat​: 29696 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 116
  Parse errors​: No plan found in TAP output
../cpan/Pod-Parser/t/pod/emptycmd.t (Wstat​: 29696 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 116
  Parse errors​: No plan found in TAP output
../cpan/Pod-Parser/t/pod/headings.t (Wstat​: 0 Tests​: 1 Failed​: 1)
  Failed test​: 1
../cpan/Pod-Simple/t/closeys.t (Wstat​: 29696 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 116
  Parse errors​: No plan found in TAP output
../cpan/Pod-Simple/t/for.t (Wstat​: 29696 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 116
  Parse errors​: No plan found in TAP output
../cpan/Test-Simple/t/Test2/modules/API/Instance.t (Wstat​: 29696 Tests​: 94
Failed​: 0)
  Non-zero exit status​: 116
../cpan/Test-Simple/t/Test2/regression/693_ipc_ordering.t (Wstat​: 29696
Tests​: 1 Failed​: 0)
  Non-zero exit status​: 116
../cpan/version/t/11_taint.t (Wstat​: 29696 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 116
  Parse errors​: No plan found in TAP output
../cpan/Win32/t/GetShortPathName.t (Wstat​: 0 Tests​: 5 Failed​: 1)
  Failed test​: 2
../cpan/Win32/t/Unicode.t (Wstat​: 0 Tests​: 11 Failed​: 8)
  Failed tests​: 1-3, 5, 8-11
  Parse errors​: Bad plan. You planned 12 tests but ran 11.
../dist/ExtUtils-ParseXS/t/110-assign_func_args.t (Wstat​: 29696 Tests​: 0
Failed​: 0)
  Non-zero exit status​: 116
  Parse errors​: No plan found in TAP output
../dist/Net-Ping/t/450_service.t (Wstat​: 256 Tests​: 26 Failed​: 1)
  Failed test​: 9
  Non-zero exit status​: 1
../dist/threads-shared/t/cond.t (Wstat​: 29696 Tests​: 32 Failed​: 0)
  Non-zero exit status​: 116
../ext/I18N-Langinfo/t/Langinfo.t (Wstat​: 29696 Tests​: 91 Failed​: 0)
  Non-zero exit status​: 116
  Parse errors​: Bad plan. You planned 94 tests but ran 91.
../ext/IPC-Open3/t/IPC-Open3.t (Wstat​: 0 Tests​: 45 Failed​: 0)
  TODO passed​: 25
../ext/Pod-Html/t/htmldir4.t (Wstat​: 29696 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 116
  Parse errors​: Bad plan. You planned 2 tests but ran 0.
../ext/POSIX/t/mb.t (Wstat​: 2304 Tests​: 1 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: Bad plan. You planned 4 tests but ran 1.
../ext/XS-APItest/t/handy00.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/handy01.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/handy02.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/handy03.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/handy04.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/handy05.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/handy06.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/handy07.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/handy08.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/handy09.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/locale.t (Wstat​: 2304 Tests​: 2 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/temp_lv_sub.t (Wstat​: 29696 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 116
  Parse errors​: No plan found in TAP output
../lib/ExtUtils/t/Embed.t (Wstat​: 0 Tests​: 2 Failed​: 1)
  Failed test​: 10
  Parse errors​: Tests out of sequence. Found (10) but expected (2)
Bad plan. You planned 10 tests but ran 2.
../lib/locale.t (Wstat​: 2304 Tests​: 380 Failed​: 0)
  Non-zero exit status​: 9
  Parse errors​: No plan found in TAP output
../lib/perlbug.t (Wstat​: 0 Tests​: 25 Failed​: 6)
  Failed tests​: 16-20, 22
../lib/warnings.t (Wstat​: 0 Tests​: 903 Failed​: 1)
  Failed test​: 704
Files=2661, Tests=679798, 1118 wallclock secs (38.89 usr + 5.89 sys =
44.78 CPU)
Result​: FAIL

Perl Info

Flags:
    category=install
    severity=none

Site configuration information for perl 5.30.0:

Configured by jirik at Sun Jul 7 22:28:57 2019.

Summary of my perl5 (revision 5 version 30 subversion 0) configuration:

  Platform:
    osname=MSWin32
    osvers=10.0.18362.175
    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=y
    default_inc_excludes_dot=undef
    bincompat5005=undef
  Compiler:
    cc='cl'
    ccflags ='-nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -GL -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_DEBUGGING_MSTATS -DUSE_SITECUSTOMIZE
-DPERL_IMPLICIT_CONTEXT'
    optimize='-O1 -MD -Zi -DNDEBUG -GL -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 -opt:ref,icf -ltcg
 -libpath:"f:\perl\lib\CORE"  -machine:AMD64 -subsystem:console,"5.02"'
    libpth=F:\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 msvcrt.lib vcruntime.lib ucrt.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 msvcrt.lib vcruntime.lib ucrt.lib
    libc=ucrt.lib
    so=dll
    useshrplib=true
    libperl=perl530.lib
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_win32.xs
    dlext=dll
    d_dlsymun=undef
    ccdlflags=' '
    cccdlflags=' '
    lddlflags='-dll -nologo -nodefaultlib -debug -opt:ref,icf -ltcg
 -libpath:"f:\perl\lib\CORE"  -machine:AMD64 -subsystem:console,"5.02"'



@INC for perl 5.30.0:
    H:\Sokoban\lib
    F:/perl-5.30.0/lib


Environment for perl 5.30.0:
    HOME (unset)
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=F:\MinGW\bin;F:\Perl64\bin;C:\Program
Files\Git\bin;C:\Windows;C:\Windows\system32;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\ActiveState Komodo IDE
11\;F:\Community\VC\Tools\MSVC\14.21.27702\bin\HostX64\x64;C:\Program Files
(x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1
Tools\x64\;F:\Community\Common7\IDE\VC\VCPackages;F:\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow;F:\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team
Explorer;F:\Community\MSBuild\Current\bin\Roslyn;F:\Community\Team
Tools\Performance Tools\x64;F:\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)\Windows Kits\10\bin\10.0.17763.0\x64;C:\Program Files
(x86)\Windows
Kits\10\bin\x64;F:\Community\MSBuild\Current\Bin;C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319;F:\Community\Common7\IDE\;F:\Community\Common7\Tools\;F:\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;F:\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja;C:\Program
Files\TortoiseSVN\bin;C:\WINDOWS\System32\OpenSSH\;C:\Windows\System32\Wbem;C:\Users\jirik\AppData\Local\Programs\Python\Python37;C:\Program
Files\nodejs\;C:\Program Files\NVIDIA GPU Computing
Toolkit\CUDA\v10.1\bin;C:\Program Files\NVIDIA GPU Computing
Toolkit\CUDA\v10.1\libnvvp;C:\Program Files (x86)\Intel\iCLS
Client\;C:\Program Files\Intel\iCLS Client\;C:\Program Files\ActiveState
Perl Dev Kit 9.5.1\bin\;C:\Program Files\Microsoft MPI\Bin\;C:\Program
Files (x86)\Microsoft Visual
Studio\2017\Community\VC\Tools\MSVC\14.13.26128\bin\Hostx64\x64;C:\Program
Files\dotnet\;C:\Program
Files (x86)\Calibre2\;C:\Program Files (x86)\NVIDIA
Corporation\PhysX\Common;C:\Program Files
(x86)\Yarn\bin\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL
Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL
Server\120\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL
Server\120\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft
SQL Server\120\DTS\Binn\;C:\Program Files\Microsoft SQL
Server\130\Tools\Binn\;C:\Program Files\NVIDIA Corporation\NVIDIA
NvDLISR;C:\Program Files (x86)\Intel\Intel(R) Management Engine
Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine
Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine
Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine
Components\IPT;C:\Program Files\NVIDIA Corporation\Nsight Compute
2019.3.0\;C:\Program Files\Microsoft SQL Server\Client
SDK\ODBC\170\Tools\Binn\
    PERL5LIB=H:\Sokoban\lib
    PERLTIDY=C:\Users\Jirik\perltidy.ini
    PERL_BADLANG (unset)
    SHELL (unset)

@p5pRT
Copy link
Author

p5pRT commented Jul 7, 2019

From @jkeenan

On Sun, 07 Jul 2019 21​:45​:46 GMT, jiri.krobot.broz@​gmail.com wrote​:

This is a build failure report for perl from
jiri.krobot.broz@​gmail.com
generated with the help of perlbug 1.41 running under perl 5.30.0.

-----------------------------------------------------------------
I tried to compile Perl with PERL_MALLOC = define. It failed during
complilation of the malloc.c
due this code lines​:
if (nbytes > PTRDIFF_MAX) {
#line 1242 -------- ! ERROR !
MYMALLOC_WRITE2STDERR("Memory requests are limited to PTRDIFF_MAX"
" bytes to prevent possible undefined"
" behavior");
return NULL;
}

MYMALLOC_WRITE2STDERR inherits using 'my_perl' but it is undefined
here. It
causes this error.
I removed the line which is informative only and nmake passed.

For information only​: 'nmake test' failed with these errors​:
( by my experience with cpan, failed tests use to be almost harmless)

Test Summary Report
-------------------
run/locale.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
re/charset.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
re/fold_grind_8.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
re/fold_grind_T.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
re/regex_sets.t (Wstat​: 2304 Tests​: 53 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
re/uniprops01.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
re/uniprops02.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
re/uniprops03.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
re/uniprops04.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
re/uniprops05.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
re/uniprops06.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
re/uniprops07.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
re/uniprops08.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
re/uniprops09.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
re/uniprops10.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
op/lc.t (Wstat​: 2304 Tests​: 139 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: Bad plan. You planned 2202 tests but ran 139.
op/taint.t (Wstat​: 29696 Tests​: 825 Failed​: 0)
Non-zero exit status​: 116
Parse errors​: Bad plan. You planned 1042 tests but ran 825.
uni/fold.t (Wstat​: 2304 Tests​: 18501 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
../cpan/ExtUtils-MakeMaker/t/02-xsdynamic.t (Wstat​: 2048 Tests​: 54
Failed​:
8)
Failed tests​: 3, 9, 15, 21, 27, 33, 39, 45
Non-zero exit status​: 8
../cpan/ExtUtils-MakeMaker/t/INST.t (Wstat​: 29696 Tests​: 0 Failed​: 0)
Non-zero exit status​: 116
Parse errors​: Bad plan. You planned 26 tests but ran 0.
../cpan/ExtUtils-MakeMaker/t/several_authors.t (Wstat​: 29696 Tests​: 0
Failed​: 0)
Non-zero exit status​: 116
Parse errors​: Bad plan. You planned 19 tests but ran 0.
../cpan/IO-Compress/t/104destroy-deflate.t (Wstat​: 29696 Tests​: 0
Failed​: 0)
Non-zero exit status​: 116
Parse errors​: No plan found in TAP output
../cpan/IO-Compress/t/107multi-gzip.t (Wstat​: 29696 Tests​: 0 Failed​:
0)
Non-zero exit status​: 116
Parse errors​: No plan found in TAP output
../cpan/JSON-PP/t/105_esc_slash.t (Wstat​: 29696 Tests​: 0 Failed​: 0)
Non-zero exit status​: 116
Parse errors​: No plan found in TAP output
../cpan/Memoize/t/tie.t (Wstat​: 29696 Tests​: 0 Failed​: 0)
Non-zero exit status​: 116
Parse errors​: No plan found in TAP output
../cpan/Module-Load/t/02_Module-Load.t (Wstat​: 29696 Tests​: 0 Failed​:
0)
Non-zero exit status​: 116
Parse errors​: No plan found in TAP output
../cpan/Pod-Parser/t/pod/emptycmd.t (Wstat​: 29696 Tests​: 0 Failed​: 0)
Non-zero exit status​: 116
Parse errors​: No plan found in TAP output
../cpan/Pod-Parser/t/pod/headings.t (Wstat​: 0 Tests​: 1 Failed​: 1)
Failed test​: 1
../cpan/Pod-Simple/t/closeys.t (Wstat​: 29696 Tests​: 0 Failed​: 0)
Non-zero exit status​: 116
Parse errors​: No plan found in TAP output
../cpan/Pod-Simple/t/for.t (Wstat​: 29696 Tests​: 0 Failed​: 0)
Non-zero exit status​: 116
Parse errors​: No plan found in TAP output
../cpan/Test-Simple/t/Test2/modules/API/Instance.t (Wstat​: 29696
Tests​: 94
Failed​: 0)
Non-zero exit status​: 116
../cpan/Test-Simple/t/Test2/regression/693_ipc_ordering.t (Wstat​:
29696
Tests​: 1 Failed​: 0)
Non-zero exit status​: 116
../cpan/version/t/11_taint.t (Wstat​: 29696 Tests​: 0 Failed​: 0)
Non-zero exit status​: 116
Parse errors​: No plan found in TAP output
../cpan/Win32/t/GetShortPathName.t (Wstat​: 0 Tests​: 5 Failed​: 1)
Failed test​: 2
../cpan/Win32/t/Unicode.t (Wstat​: 0 Tests​: 11 Failed​: 8)
Failed tests​: 1-3, 5, 8-11
Parse errors​: Bad plan. You planned 12 tests but ran 11.
../dist/ExtUtils-ParseXS/t/110-assign_func_args.t (Wstat​: 29696 Tests​:
0
Failed​: 0)
Non-zero exit status​: 116
Parse errors​: No plan found in TAP output
../dist/Net-Ping/t/450_service.t (Wstat​: 256 Tests​: 26 Failed​: 1)
Failed test​: 9
Non-zero exit status​: 1
../dist/threads-shared/t/cond.t (Wstat​: 29696 Tests​: 32 Failed​: 0)
Non-zero exit status​: 116
../ext/I18N-Langinfo/t/Langinfo.t (Wstat​: 29696 Tests​: 91 Failed​: 0)
Non-zero exit status​: 116
Parse errors​: Bad plan. You planned 94 tests but ran 91.
../ext/IPC-Open3/t/IPC-Open3.t (Wstat​: 0 Tests​: 45 Failed​: 0)
TODO passed​: 25
../ext/Pod-Html/t/htmldir4.t (Wstat​: 29696 Tests​: 0 Failed​: 0)
Non-zero exit status​: 116
Parse errors​: Bad plan. You planned 2 tests but ran 0.
../ext/POSIX/t/mb.t (Wstat​: 2304 Tests​: 1 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: Bad plan. You planned 4 tests but ran 1.
../ext/XS-APItest/t/handy00.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/handy01.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/handy02.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/handy03.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/handy04.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/handy05.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/handy06.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/handy07.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/handy08.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/handy09.t (Wstat​: 2304 Tests​: 0 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/locale.t (Wstat​: 2304 Tests​: 2 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
../ext/XS-APItest/t/temp_lv_sub.t (Wstat​: 29696 Tests​: 0 Failed​: 0)
Non-zero exit status​: 116
Parse errors​: No plan found in TAP output
../lib/ExtUtils/t/Embed.t (Wstat​: 0 Tests​: 2 Failed​: 1)
Failed test​: 10
Parse errors​: Tests out of sequence. Found (10) but expected (2)
Bad plan. You planned 10 tests but ran 2.
../lib/locale.t (Wstat​: 2304 Tests​: 380 Failed​: 0)
Non-zero exit status​: 9
Parse errors​: No plan found in TAP output
../lib/perlbug.t (Wstat​: 0 Tests​: 25 Failed​: 6)
Failed tests​: 16-20, 22
../lib/warnings.t (Wstat​: 0 Tests​: 903 Failed​: 1)
Failed test​: 704
Files=2661, Tests=679798, 1118 wallclock secs (38.89 usr + 5.89 sys =
44.78 CPU)
Result​: FAIL

Can you provide the full command you provided for ./Configure (or for its Windows equivalent)?

Thank you very much.

--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

p5pRT commented Jul 7, 2019

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Jul 9, 2019

From @tonycoz

On Sun, 07 Jul 2019 14​:45​:46 -0700, jiri.krobot.broz@​gmail.com wrote​:

This is a build failure report for perl from
jiri.krobot.broz@​gmail.com
generated with the help of perlbug 1.41 running under perl 5.30.0.

-----------------------------------------------------------------
I tried to compile Perl with PERL_MALLOC = define. It failed during
complilation of the malloc.c
due this code lines​:
if (nbytes > PTRDIFF_MAX) {
#line 1242 -------- ! ERROR !
MYMALLOC_WRITE2STDERR("Memory requests are limited to PTRDIFF_MAX"
" bytes to prevent possible undefined"
" behavior");
return NULL;
}

MYMALLOC_WRITE2STDERR inherits using 'my_perl' but it is undefined
here. It
causes this error.
I removed the line which is informative only and nmake passed.

I believe this is fixed in blead at

commit 9629b6d
Author​: Karl Williamson <khw@​cpan.org>
Date​: Wed May 22 14​:37​:20 2019 -0600

  PATCH​: [perl #134126] -Dusemymalloc, -Dusethreads
 
  This was due to a missing declaration for thread context needed to
  output a message.

Inline Patch
diff --git a/malloc.c b/malloc.c
index ed392ee5ba..0c80a0856f 100644
--- a/malloc.c
+++ b/malloc.c
@@ -1239,6 +1239,7 @@ Perl_malloc(size_t nbytes)
          * malloc so that pointer subtraction in the same structure is always
          * well defined */
         if (nbytes > PTRDIFF_MAX) {
+            dTHX;
             MYMALLOC_WRITE2STDERR("Memory requests are limited to PTRDIFF_MAX"
                                   " bytes to prevent possible undefined"
                                   " behavior");

Do you get the same error if you build blead perl?

Tony

@p5pRT
Copy link
Author

p5pRT commented Aug 15, 2019

From @tonycoz

On Mon, 08 Jul 2019 23​:04​:09 -0700, tonyc wrote​:

On Sun, 07 Jul 2019 14​:45​:46 -0700, jiri.krobot.broz@​gmail.com wrote​:

This is a build failure report for perl from
jiri.krobot.broz@​gmail.com
generated with the help of perlbug 1.41 running under perl 5.30.0.

-----------------------------------------------------------------
I tried to compile Perl with PERL_MALLOC = define. It failed during
complilation of the malloc.c
due this code lines​:
if (nbytes > PTRDIFF_MAX) {
#line 1242 -------- ! ERROR !
MYMALLOC_WRITE2STDERR("Memory requests are limited to
PTRDIFF_MAX"
" bytes to prevent possible undefined"
" behavior");
return NULL;
}

MYMALLOC_WRITE2STDERR inherits using 'my_perl' but it is undefined
here. It
causes this error.
I removed the line which is informative only and nmake passed.

I believe this is fixed in blead at

commit 9629b6d
Author​: Karl Williamson <khw@​cpan.org>
Date​: Wed May 22 14​:37​:20 2019 -0600

PATCH​: [perl #134126] -Dusemymalloc, -Dusethreads

This was due to a missing declaration for thread context needed to
output a message.

diff --git a/malloc.c b/malloc.c
index ed392ee5ba..0c80a0856f 100644
--- a/malloc.c
+++ b/malloc.c
@​@​ -1239,6 +1239,7 @​@​ Perl_malloc(size_t nbytes)
* malloc so that pointer subtraction in the same structure
is always
* well defined */
if (nbytes > PTRDIFF_MAX) {
+ dTHX;
MYMALLOC_WRITE2STDERR("Memory requests are limited to
PTRDIFF_MAX"
" bytes to prevent possible
undefined"
" behavior");

Do you get the same error if you build blead perl?

No response, so I'm assuming I'm correct here, merged into 134126 (which is pending release.)

Tony

@toddr toddr added this to the 5.30.1 milestone Oct 25, 2019
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

2 participants