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

Bleadperl breaks PREACTION/Pod-Usage-Return-0.003.tar.gz on Windows #15261

Closed
p5pRT opened this issue Apr 3, 2016 · 5 comments
Closed

Bleadperl breaks PREACTION/Pod-Usage-Return-0.003.tar.gz on Windows #15261

p5pRT opened this issue Apr 3, 2016 · 5 comments

Comments

@p5pRT
Copy link

p5pRT commented Apr 3, 2016

Migrated from rt.perl.org#127829 (status was 'resolved')

Searchable as RT127829$

@p5pRT
Copy link
Author

p5pRT commented Apr 3, 2016

From @chorny

Created by @chorny

00_compile.t​:

1..1
Out of memory!
not ok 1 - Compile test for blib\lib\Pod\Usage\Return.pm
# Failed test 'Compile test for blib\lib\Pod\Usage\Return.pm'
# at C​:/Strawberry239/perl/site/lib/Test/Compile.pm line 282.
# blib\lib\Pod\Usage\Return.pm does not compile
# Looks like you failed 1 test of 1.

There is ~400MB free memory + swap.
If run with output redirection hangs after "1..1".

perl -c blib\lib\Pod\Usage\Return.pm
blib\lib\Pod\Usage\Return.pm syntax OK

usage.t does not have any problems.

Windows XP Russian 32-bit.

Perl Info

Flags:
    category=core
    severity=low

Site configuration information for perl 5.23.9:

Configured by strawberry-perl at Fri Mar 25 14:42:31 2016.

Summary of my perl5 (revision 5 version 23 subversion 9) configuration:

  Platform:
    osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread-64int
    uname='Win32 strawberry-perl 5.23.9.1 #1 Fri Mar 25 14:40:30 2016 i386'
    config_args='undef'
    hint=recommended, useposix=true, d_sigaction=undef
    useithreads=define, usemultiplicity=define
    use64bitint=define, 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.2', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8,
byteorder=12345678, doublekind=3
    d_longlong=define, longlongsize=8, d_longdbl=define,
longdblsize=12, longdblkind=3
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8,
Off_t='long long', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='g++', ldflags ='-s -L"C:\STRAWB~1\perl\lib\CORE" -L"C:\STRAWB~1\c\lib"'
    libpth=C:\STRAWB~1\c\lib C:\STRAWB~1\c\i686-w64-mingw32\lib
C:\STRAWB~1\c\lib\gcc\i686-w64-mingw32\4.9.2
    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=libperl523.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_win32.xs, dlext=xs.dll, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags='-mdll -s -L"C:\STRAWB~1\perl\lib\CORE"
-L"C:\STRAWB~1\c\lib"'



@INC for perl 5.23.9:
    C:/Strawberry239/perl/site/lib
    C:/Strawberry239/perl/vendor/lib
    C:/Strawberry239/perl/lib
    .


Environment for perl 5.23.9:
    HOME (unset)
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=C:\Program Files\Far
Manager\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Strawberry239\c\bin;C:\Strawberry239\perl\site\bin;C:\Strawberry239\perl\bin;C:\Git\cmd
    PERL_BADLANG (unset)
    PERL_HASH_SEED=0x11111111
    SHELL (unset)


-- 
Alexandr Ciornii, http://chorny.net

@p5pRT
Copy link
Author

p5pRT commented Apr 4, 2016

From @iabyn

On Sun, Apr 03, 2016 at 09​:02​:57AM -0700, Alexandr Ciornii wrote​:

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

This is a bug report for perl from alexchorny@​gmail.com,
generated with the help of perlbug 1.40 running under perl 5.23.9.

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

00_compile.t​:

1..1
Out of memory!
not ok 1 - Compile test for blib\lib\Pod\Usage\Return.pm
# Failed test 'Compile test for blib\lib\Pod\Usage\Return.pm'
# at C​:/Strawberry239/perl/site/lib/Test/Compile.pm line 282.
# blib\lib\Pod\Usage\Return.pm does not compile
# Looks like you failed 1 test of 1.

There is ~400MB free memory + swap.
If run with output redirection hangs after "1..1".

perl -c blib\lib\Pod\Usage\Return.pm
blib\lib\Pod\Usage\Return.pm syntax OK

usage.t does not have any problems.

Windows XP Russian 32-bit.

I don't see any failure with blead on Linux (14Mb max resident set size)

--
Lear​: Dost thou call me fool, boy?
Fool​: All thy other titles thou hast given away; that thou wast born with.

@p5pRT
Copy link
Author

p5pRT commented Apr 4, 2016

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

@p5pRT
Copy link
Author

p5pRT commented Apr 6, 2016

From @tonycoz

On Sun Apr 03 09​:02​:56 2016, chorny wrote​:

00_compile.t​:

1..1
Out of memory!
not ok 1 - Compile test for blib\lib\Pod\Usage\Return.pm
# Failed test 'Compile test for blib\lib\Pod\Usage\Return.pm'
# at C​:/Strawberry239/perl/site/lib/Test/Compile.pm line 282.
# blib\lib\Pod\Usage\Return.pm does not compile
# Looks like you failed 1 test of 1.

There is ~400MB free memory + swap.
If run with output redirection hangs after "1..1".

perl -c blib\lib\Pod\Usage\Return.pm
blib\lib\Pod\Usage\Return.pm syntax OK

usage.t does not have any problems.

Windows XP Russian 32-bit.

Builds for me on Win32, this is with v5.23.9-48-g6fb8754 which includes Dave's context stack fix.

I tested with v5.23.10 (v5.23.9-46-g1994952 and reproduced the problem, and drmemory reported the same callstack for the unaddressable access and the memory allocation, so this is fixed.

Tony

Dr. Memory version 1.10.0 build 2 built on Mar 7 2016 23​:05​:56
Dr. Memory results for pid 11424​: "perl.exe"
Application cmdline​: "perl -Mblib t\00_compile.t"
Recorded 117 suppression(s) from default c​:\Program Files (x86)\Dr. Memory\bin\suppress-default.txt

Error #1​: UNADDRESSABLE ACCESS beyond heap bounds​: writing 0x1367bcfc-0x1367bd00 4 byte(s)
# 0 perl523.dll!Perl_save_pushptrptr [c​:\users\tony\dev\perl\git\perl\scope.c​:234]
# 1 perl523.dll!Perl_save_pptr [c​:\users\tony\dev\perl\git\perl\scope.c​:504]
# 2 perl523.dll!S_sublex_push [c​:\users\tony\dev\perl\git\perl\toke.c​:2362]
# 3 perl523.dll!Perl_yylex [c​:\users\tony\dev\perl\git\perl\toke.c​:4648]
# 4 perl523.dll!Perl_yyparse [c​:\users\tony\dev\perl\git\perl\perly.c​:332]
# 5 perl523.dll!S_doeval_compile [c​:\users\tony\dev\perl\git\perl\pp_ctl.c​:3383]
# 6 perl523.dll!Perl_pp_require [c​:\users\tony\dev\perl\git\perl\pp_ctl.c​:4055]
# 7 perl523.dll!Perl_runops_debug [c​:\users\tony\dev\perl\git\perl\dump.c​:2239]
# 8 perl523.dll!Perl_call_sv [c​:\users\tony\dev\perl\git\perl\win32\perl.c​:2803]
# 9 perl523.dll!Perl_call_list [c​:\users\tony\dev\perl\git\perl\win32\perl.c​:4971]
#10 perl523.dll!S_process_special_blocks [c​:\users\tony\dev\perl\git\perl\win32\op.c​:8758]
#11 perl523.dll!Perl_newATTRSUB_x [c​:\users\tony\dev\perl\git\perl\win32\op.c​:8688]
#12 perl523.dll!Perl_utilize [c​:\users\tony\dev\perl\git\perl\win32\op.c​:6074]
#13 perl523.dll!Perl_yyparse [c​:\users\tony\dev\perl\git\perl\win32\perly.y​:351]
#14 perl523.dll!S_doeval_compile [c​:\users\tony\dev\perl\git\perl\pp_ctl.c​:3383]
#15 perl523.dll!Perl_pp_require [c​:\users\tony\dev\perl\git\perl\pp_ctl.c​:4055]
#16 perl523.dll!Perl_runops_debug [c​:\users\tony\dev\perl\git\perl\dump.c​:2239]
#17 perl523.dll!Perl_call_sv [c​:\users\tony\dev\perl\git\perl\win32\perl.c​:2803]
#18 perl523.dll!Perl_call_list [c​:\users\tony\dev\perl\git\perl\win32\perl.c​:4971]
#19 perl523.dll!S_process_special_blocks [c​:\users\tony\dev\perl\git\perl\win32\op.c​:8758]
Note​: @​0​:00​:02.907 in thread 11808
Note​: refers to 0 byte(s) beyond last valid byte in prior malloc
Note​: prev lower malloc​: 0x1367ae30-0x1367bcfc
Note​: allocated here​:
Note​: # 0 replace_malloc [d​:\drmemory_package\common\alloc_replace.c​:2576]
Note​: # 1 perl523.dll!VMem​::Malloc [c​:\users\tony\dev\perl\git\perl\win32\vmem.h​:151]
Note​: # 2 perl523.dll!CPerlHost​::Malloc [c​:\users\tony\dev\perl\git\perl\win32\perlhost.h​:62]
Note​: # 3 perl523.dll!PerlMemMalloc [c​:\users\tony\dev\perl\git\perl\win32\perlhost.h​:296]
Note​: # 4 perl523.dll!Perl_safesyscalloc [c​:\users\tony\dev\perl\git\perl\util.c​:435]
Note​: # 5 perl523.dll!Perl_ss_dup [c​:\users\tony\dev\perl\git\perl\sv.c​:14204]
Note​: # 6 perl523.dll!perl_clone_using [c​:\users\tony\dev\perl\git\perl\sv.c​:15202]
Note​: # 7 perl523.dll!PerlProcFork [c​:\users\tony\dev\perl\git\perl\win32\perlhost.h​:1831]
Note​: # 8 perl523.dll!Perl_pp_fork [c​:\users\tony\dev\perl\git\perl\pp_sys.c​:4233]
Note​: # 9 perl523.dll!Perl_runops_debug [c​:\users\tony\dev\perl\git\perl\dump.c​:2239]
Note​: #10 perl523.dll!S_run_body [c​:\users\tony\dev\perl\git\perl\win32\perl.c​:2479]
Note​: #11 perl523.dll!perl_run [c​:\users\tony\dev\perl\git\perl\win32\perl.c​:2402]
Note​: instruction​: mov %ecx -> (%eax)

===========================================================================
FINAL SUMMARY​:

DUPLICATE ERROR COUNTS​:

SUPPRESSIONS USED​:

ERRORS FOUND​:
  1 unique, 1 total unaddressable access(es)
  0 unique, 0 total invalid heap argument(s)
  0 unique, 0 total warning(s)
ERRORS IGNORED​:
Details​: C​:\Users\tony\AppData\Roaming\Dr. Memory\DrMemory-perl.exe.11424.000\results.txt

@p5pRT
Copy link
Author

p5pRT commented Apr 6, 2016

@tonycoz - Status changed from 'open' to 'resolved'

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

1 participant