develooper Front page | perl.perl5.porters | Postings from May 2013

[perl #117963] old hash behaviour test fails, op/each.t ../ext/Devel-Peek/t/Peek.t

Thread Next
From:
bulk88
Date:
May 11, 2013 19:23
Subject:
[perl #117963] old hash behaviour test fails, op/each.t ../ext/Devel-Peek/t/Peek.t
Message ID:
rt-3.6.HEAD-2650-1368300189-49.117963-75-0@perl.org
# New Ticket Created by  bulk88 
# Please include the string:  [perl #117963]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=117963 >



This is a bug report for perl from bulk88@hotmail.com,
generated with the help of perlbug 1.39 running under perl 5.18.0.


-----------------------------------------------------------------
[Please describe your issue here]


Turning on pre 5.18 has behaviour with a modified hv_func.h as such
______________________________________________________________
/* hash a key
 *--------------------------------------------------------------------------------------
 * The "hash seed" feature was added in Perl 5.8.1 to perturb the results
 * to avoid "algorithmic complexity attacks".
 *
 * If USE_HASH_SEED is defined, hash randomisation is done by default
 * If USE_HASH_SEED_EXPLICIT is defined, hash randomisation is done
 * only if the environment variable PERL_HASH_SEED is set.
 * (see also perl.c:perl_parse() and S_init_tls_and_interp() and 
util.c:get_hash_seed())
 */

#ifndef PERL_SEEN_HV_FUNC_H /* compile once */
#define PERL_SEEN_HV_FUNC_H

#define PERL_HASH_FUNC_ONE_AT_A_TIME_OLD
#undef USE_HASH_SEED
#undef USE_HASH_SEED_EXPLICIT
______________________________________________________________

is causing the following unusual test failures on my machine. 32 bit 
Windows XP.

______________________________________________________________
C:\p518src\perl-05f5908\t>..\perl.exe -I..\lib harness op/each.t
op/each.t .. # Failed test 58 - each() after insert produces warnings at 
op/each
.t line 282
op/each.t .. Failed 1/59 subtests

Test Summary Report
-------------------
op/each.t (Wstat: 0 Tests: 59 Failed: 1)
  Failed test:  58
Files=1, Tests=59,  1 wallclock secs ( 0.01 usr +  0.01 sys =  0.03 CPU)
Result: FAIL

C:\p518src\perl-05f5908\t>..\perl.exe -I..\lib harness 
../ext/Devel-Peek/t/Peek.t
../ext/Devel-Peek/t/Peek.t .. 1/?
#   Failed test 'ENAME on a stash'
#   at t/Peek.t line 80.
#                   'SV = IV(0xa9e030) at 0xa9e034
#   REFCNT = 1
#   FLAGS = (ROK)
#   RV = 0xa65db4
#   SV = PVHV(0x8f07d4) at 0xa65db4
#     REFCNT = 2
#     FLAGS = (OOK,SHAREKEYS)
#     ARRAY = 0xa93c4c
#     KEYS = 0
#     FILL = 0
#     MAX = 7
#     RITER = -1
#     EITER = 0x0
#
#     NAME = "RWOM"
#     ENAME = "RWOM"
# '
#     doesn't match '(?^ms:\A(?:ALLOCATED at .*?
# )?SV = IV\(0x[[:xdigit:]]+\) at 0x[[:xdigit:]]+
#   REFCNT = 1
#   FLAGS = \(ROK\)
#   RV = 0x[[:xdigit:]]+
# (?:  ALLOCATED at .*?
# )?  SV = PVHV\(0x[[:xdigit:]]+\) at 0x[[:xdigit:]]+
#     REFCNT = 2
#     FLAGS = \(OOK,SHAREKEYS\)
#     ARRAY = 0x[[:xdigit:]]+
#     KEYS = 0
#     FILL = 0
#     MAX = 7
#     RITER = -1
#     EITER = 0x0
#     RAND = 0x[[:xdigit:]]+
#     NAME = "RWOM"
#     ENAME = "RWOM"
# \Z)'

#   Failed test 'ENAMEs on a stash'
#   at t/Peek.t line 80.
#                   'SV = IV(0xa9e030) at 0xa9e034
#   REFCNT = 1
#   FLAGS = (ROK)
#   RV = 0xa65db4
#   SV = PVHV(0x8f07d4) at 0xa65db4
#     REFCNT = 3
#     FLAGS = (OOK,SHAREKEYS)
#     ARRAY = 0xa93c4c
#     KEYS = 0
#     FILL = 0
#     MAX = 7
#     RITER = -1
#     EITER = 0x0
#
#     NAME = "RWOM"
#     NAMECOUNT = 2
#     ENAME = "RWOM", "KLANK"
# '
#     doesn't match '(?^ms:\A(?:ALLOCATED at .*?
# )?SV = IV\(0x[[:xdigit:]]+\) at 0x[[:xdigit:]]+
#   REFCNT = 1
#   FLAGS = \(ROK\)
#   RV = 0x[[:xdigit:]]+
# (?:  ALLOCATED at .*?
# )?  SV = PVHV\(0x[[:xdigit:]]+\) at 0x[[:xdigit:]]+
#     REFCNT = 3
#     FLAGS = \(OOK,SHAREKEYS\)
#     ARRAY = 0x[[:xdigit:]]+
#     KEYS = 0
#     FILL = 0
#     MAX = 7
#     RITER = -1
#     EITER = 0x0
#     RAND = 0x[[:xdigit:]]+
#     NAME = "RWOM"
#     NAMECOUNT = 2
#     ENAME = "RWOM", "KLANK"
# \Z)'
../ext/Devel-Peek/t/Peek.t .. 58/?
#   Failed test 'ENAMEs on a stash with no NAME'
#   at t/Peek.t line 80.
#                   'SV = IV(0xa9e030) at 0xa9e034
#   REFCNT = 1
#   FLAGS = (ROK)
#   RV = 0xa65db4
#   SV = PVHV(0x8f07d4) at 0xa65db4
#     REFCNT = 3
#     FLAGS = (OOK,OVERLOAD,SHAREKEYS)
#     ARRAY = 0xa93c4c
#     KEYS = 0
#     FILL = 0
#     MAX = 7
#     RITER = -1
#     EITER = 0x0
#
#     NAMECOUNT = -3
#     ENAME = "RWOM", "KLANK"
# '
#     doesn't match '(?^ms:\A(?:ALLOCATED at .*?
# )?SV = IV\(0x[[:xdigit:]]+\) at 0x[[:xdigit:]]+
#   REFCNT = 1
#   FLAGS = \(ROK\)
#   RV = 0x[[:xdigit:]]+
# (?:  ALLOCATED at .*?
# )?  SV = PVHV\(0x[[:xdigit:]]+\) at 0x[[:xdigit:]]+
#     REFCNT = 3
#     FLAGS = \(OOK,OVERLOAD,SHAREKEYS\)
#     ARRAY = 0x[[:xdigit:]]+
#     KEYS = 0
#     FILL = 0
#     MAX = 7
#     RITER = -1
#     EITER = 0x0
#     RAND = 0x[[:xdigit:]]+
#     NAMECOUNT = -3
#     ENAME = "RWOM", "KLANK"
# \Z)'
# Looks like you failed 3 tests of 64.
../ext/Devel-Peek/t/Peek.t .. Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/64 subtests
        (less 1 skipped subtest: 60 okay)

Test Summary Report
-------------------
../ext/Devel-Peek/t/Peek.t (Wstat: 768 Tests: 64 Failed: 3)
  Failed tests:  55, 57, 59
  Non-zero exit status: 3
Files=1, Tests=64,  1 wallclock secs ( 0.01 usr +  0.01 sys =  0.03 CPU)
Result: FAIL

C:\p518src\perl-05f5908\t>
__________________________________________________________________________


[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
Site configuration information for perl 5.18.0:

Configured by Owner at Fri May 10 16:51:40 2013.

Summary of my perl5 (revision 5 version 18 subversion 0 patch blead 
2013-05-09.00:26:46 05f5908f8de71a2ef1188624c0e09278342be6d0 
v5.17.11-137-g05f5908) configuration:
  Snapshot of: 05f5908f8de71a2ef1188624c0e09278342be6d0
  Platform:
    osname=MSWin32, osvers=5.1, archname=MSWin32-x86-multi-thread
    uname=''
    config_args='undef'
    hint=recommended, useposix=true, d_sigaction=undef
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=undef, use64bitall=undef, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cl', ccflags ='-nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -G6 -GL 
-DWIN32 -D_CONSOLE -DNO_STRICT  -DPERL_TEXTMODE_SCRIPTS 
-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO 
-D_USE_32BIT_TIME_T',
    optimize='-O1 -MD -Zi -DNDEBUG -G6 -GL',
    cppflags='-DWIN32'
    ccversion='13.10.6030', gccversion='', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=8
    ivtype='long', ivsize=4, 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:"c:\perl518\lib\CORE"  -machine:x86'
    libpth="C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\lib"
    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
    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
    libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl518.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:"c:\perl518\lib\CORE"  -machine:x86'

Locally applied patches:
    RC0

---
@INC for perl 5.18.0:
    C:/p518src/perl-05f5908/lib
    .

---
Environment for perl 5.18.0:
    HOME (unset)
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=C:\Program Files\Microsoft Visual Studio .NET 
2003\Common7\IDE;C:\Program Files\Microsoft Visual Studio .NET 
2003\VC7\BIN;C:\Program Files\Microsoft Visual Studio .NET 
2003\Common7\Tools;C:\Program Files\Microsoft Visual Studio .NET 
2003\Common7\Tools\bin\prerelease;C:\Program Files\Microsoft Visual 
Studio .NET 2003\Common7\Tools\bin;C:\Program Files\Microsoft Visual 
Studio .NET 
2003\SDK\v1.1\bin;C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\wbem;
    PERL_BADLANG (unset)
    PERL_JSON_BACKEND=JSON::XS
    PERL_YAML_BACKEND=YAML
    SHELL (unset)


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About