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

Windows test failure in re/reg_mesg #15450

Open
p5pRT opened this issue Jul 16, 2016 · 4 comments
Open

Windows test failure in re/reg_mesg #15450

p5pRT opened this issue Jul 16, 2016 · 4 comments
Labels

Comments

@p5pRT
Copy link

p5pRT commented Jul 16, 2016

Migrated from rt.perl.org#128638 (status was 'open')

Searchable as RT128638$

@p5pRT
Copy link
Author

p5pRT commented Jul 16, 2016

From @dcollinsn

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 f6203e9 built by mingw.org GCC 4.9.3

W​:\buildbot\windows1\win32\build\t>perl -I../lib harness re/reg_mesg.t
re/reg_mesg.t .. 1/? # Failed test 1483 - ... and gave expected number (0) of warnings at re/reg_mesg.t line 734
# got "1"
# expected "0"
# Failed test 2191 - no warnings 'experimental​::re_strict'; use re 'strict'; /[\x00-\N{SOH}]\x{100}/ did not die at re/reg_mesg.t line 729
# got "\\N{} in inverted character class or as a range end-point is restricted to one character in regex; marked by <-- HERE in m/[\\x00-\\N{U+1 <-- HERE .}]\\x{100}/ at (eval 1440) line 1.\n"
# expected ""
re/reg_mesg.t .. Failed 2/2338 subtests

Test Summary Report


re/reg_mesg.t (Wstat​: 0 Tests​: 2338 Failed​: 2)
  Failed tests​: 1483, 2191
Files=1, Tests=2338, 0 wallclock secs ( 0.08 usr + 0.00 sys = 0.08 CPU)
Result​: FAIL

Detailed output from the failing tests​:

ok 1480 - /[\N{U+00}-\x01]\x{100}/ did not die
ok 1481 - ... and gave expected number (0) of warnings
ok 1482 - /[\x00-\N{SOH}]\x{100}/ did not die
not ok 1483 - ... and gave expected number (0) of warnings
# Failed test 1483 - ... and gave expected number (0) of warnings at re/reg_mesg.t line 734
# got "1"
# expected "0"
# Unexpected warnings gotten​:
# Using just the first character returned by \N{} in character class in regex; marked by <-- HERE in m/[\x00-\N{U+1. <-- HERE }]\x{100}/ at (eval 865) line 1.
<SNIP>
not ok 2191 - no warnings 'experimental​::re_strict'; use re 'strict'; /[\x00-\N{SOH}]\x{100}/ did not die
# Failed test 2191 - no warnings 'experimental​::re_strict'; use re 'strict'; /[\x00-\N{SOH}]\x{100}/ did not die at re/reg_mesg.t line 729
# got "\\N{} in inverted character class or as a range end-point is restricted to one character in regex; marked by <-- HERE in m/[\\x00-\\N{U+1 <-- HERE .}]\\x{100}/ at (eval 1440) line 1.\n"
# expected ""

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.

Yes, I am just as confused by this as you are.

--
Respectfully,
Dan Collins

@p5pRT
Copy link
Author

p5pRT commented Jul 28, 2016

From @khwilliamson

On 07/16/2016 04​:05 PM, Dan Collins (via RT) wrote​:

# New Ticket Created by Dan Collins
# Please include the string​: [perl #128638]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl5/Ticket/Display.html?id=128638 >

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 f6203e9 built by mingw.org GCC 4.9.3

W​:\buildbot\windows1\win32\build\t>perl -I../lib harness re/reg_mesg.t
re/reg_mesg.t .. 1/? # Failed test 1483 - ... and gave expected number (0) of warnings at re/reg_mesg.t line 734
# got "1"
# expected "0"
# Failed test 2191 - no warnings 'experimental​::re_strict'; use re 'strict'; /[\x00-\N{SOH}]\x{100}/ did not die at re/reg_mesg.t line 729
# got "\\N{} in inverted character class or as a range end-point is restricted to one character in regex; marked by <-- HERE in m/[\\x00-\\N{U+1 <-- HERE .}]\\x{100}/ at (eval 1440) line 1.\n"
# expected ""
re/reg_mesg.t .. Failed 2/2338 subtests

Test Summary Report
-------------------
re/reg_mesg.t (Wstat​: 0 Tests​: 2338 Failed​: 2)
Failed tests​: 1483, 2191
Files=1, Tests=2338, 0 wallclock secs ( 0.08 usr + 0.00 sys = 0.08 CPU)
Result​: FAIL

Detailed output from the failing tests​:

ok 1480 - /[\N{U+00}-\x01]\x{100}/ did not die
ok 1481 - ... and gave expected number (0) of warnings
ok 1482 - /[\x00-\N{SOH}]\x{100}/ did not die
not ok 1483 - ... and gave expected number (0) of warnings
# Failed test 1483 - ... and gave expected number (0) of warnings at re/reg_mesg.t line 734
# got "1"
# expected "0"
# Unexpected warnings gotten​:
# Using just the first character returned by \N{} in character class in regex; marked by <-- HERE in m/[\x00-\N{U+1. <-- HERE }]\x{100}/ at (eval 865) line 1.
<SNIP>
not ok 2191 - no warnings 'experimental​::re_strict'; use re 'strict'; /[\x00-\N{SOH}]\x{100}/ did not die
# Failed test 2191 - no warnings 'experimental​::re_strict'; use re 'strict'; /[\x00-\N{SOH}]\x{100}/ did not die at re/reg_mesg.t line 729
# got "\\N{} in inverted character class or as a range end-point is restricted to one character in regex; marked by <-- HERE in m/[\\x00-\\N{U+1 <-- HERE .}]\\x{100}/ at (eval 1440) line 1.\n"
# expected ""

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.

Yes, I am just as confused by this as you are.

Nor does it occur on non-ming builds. It smells like a compiler error.
I suggest turning off optimization and see what happens. If it
continues, try it with something like valgrind, if available.

@p5pRT
Copy link
Author

p5pRT commented Jul 28, 2016

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

@khwilliamson
Copy link
Contributor

Is this still a problem? https://github.com/Perl/perl5/commit/cd2d26f70ace8c111e4ba473b48847edcbc48c16 made a fix to a similar problem.

If I don't hear back in 30 days, I think we should close this ticket

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

No branches or pull requests

4 participants