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

[5.23.8] ../cpan/IO-Compress/t/100generic-deflate.t hangs on MS Windows #15193

Closed
p5pRT opened this issue Feb 21, 2016 · 10 comments
Closed

[5.23.8] ../cpan/IO-Compress/t/100generic-deflate.t hangs on MS Windows #15193

p5pRT opened this issue Feb 21, 2016 · 10 comments

Comments

@p5pRT
Copy link

p5pRT commented Feb 21, 2016

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

Searchable as RT127585$

@p5pRT
Copy link
Author

p5pRT commented Feb 21, 2016

From @sisyphus

Hi,

During 'make test' I'm getting​:
../cpan/IO-Compress/t/100generic-deflate.t ........................ 1/794

and that's where it hangs, thereby disallowing the running of the remainder
of the test suite.

But this is happening only on my 64-bit build - no such problem with the
32-bit build.

Here is the 'perl -V' of the offending perl​:

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

  Platform​:
  osname=MSWin32, osvers=6.1, archname=MSWin32-x64-multi-thread-ld
  uname=''
  config_args='undef'
  hint=recommended, useposix=true, d_sigaction=undef
  useithreads=define, usemultiplicity=define
  use64bitint=define, use64bitall=undef, uselongdouble=define
  usemymalloc=n, bincompat5005=undef
  Compiler​:
  cc='gcc', ccflags
' -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT
-DPERL_IMPLICIT_SYS -DUSE_PERLIO -D__USE_MINGW_ANSI_STDIO -fwrapv -fno-strict-aliasing
-mms-bitfields',
  optimize='-s -O2',
  cppflags='-DWIN32'
  ccversion='', gccversion='4.9.2', gccosandvers=''
  intsize=4, longsize=4, ptrsize=8, doublesize=8, byteorder=12345678,
doublekind=3
  d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16,
longdblkind=3
  ivtype='long long', ivsize=8, nvtype='long double', nvsize=16,
Off_t='long long', lseeksize=8
  alignbytes=8, prototype=define
  Linker and Libraries​:
  ld='g++', ldflags
='-s -L"c​:\_64\blead5.23.8_64int_ld\lib\CORE" -L"C​:\_64\gcc-straw-492\lib"'
  libpth=C​:\_64\gcc-straw-492\lib C​:\_64\gcc-straw-492\lib
C​:\_64\gcc-straw-492\x86_64-w64-mingw32\lib C​:\_64\msys_492\1.0\local\lib
C​:\_64\gcc-straw-492\lib\gcc\x86_64-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=dll, d_dlsymun=undef, ccdlflags=' '
  cccdlflags=' ',
lddlflags='-mdll -s -L"c​:\_64\blead5.23.8_64int_ld\lib\CORE" -L"C​:\_64\gcc-straw-492\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_PRESERVE_IVUV USE_64_BIT_INT
  USE_ITHREADS USE_LARGE_FILES USE_LOCALE
  USE_LOCALE_COLLATE USE_LOCALE_CTYPE
  USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_LONG_DOUBLE
  USE_PERLIO USE_PERL_ATOF
  Built under MSWin32
  Compiled at Feb 21 2016 19​:47​:30
  @​INC​:
  C​:/_64/blead5.23.8_64int_ld/site/lib
  C​:/_64/blead5.23.8_64int_ld/lib
  .

Cheers,
Rob

@p5pRT
Copy link
Author

p5pRT commented Feb 22, 2016

From @sisyphus

-----Original Message-----
From​: Sisyphus (via RT)
Sent​: Sunday, February 21, 2016 8​:19 PM
To​: bugs-bitbucket@​rt.perl.org
Subject​: [perl #127585] [5.23.8] ../cpan/IO-Compress/t/100generic-deflate.t
hangs on MS Windows

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

During 'make test' I'm getting​:
../cpan/IO-Compress/t/100generic-deflate.t ........................ 1/794

and that's where it hangs, thereby disallowing the running of the
remainder of the test suite.

But this is happening only on my 64-bit build - no such problem with the
32-bit build.

And it's happening with both gcc-4.9.2 and gcc-5.3.0.

This problem was not present in perl-5.23.7.

It's hanging only when run under 'make test'.
It works fine (and passes all tests) if I run it as​:

C​:\_64\comp\perl-5.23.8-ld\cpan\IO-Compress>
\_64\comp\perl-5.23.8-ld\perl -I../../lib t/100generic-deflate.t

Cheers,
Rob

@p5pRT
Copy link
Author

p5pRT commented Feb 22, 2016

From @bulk88

On Mon Feb 22 02​:36​:54 2016, sisyphus wrote​:

And it's happening with both gcc-4.9.2 and gcc-5.3.0.

This problem was not present in perl-5.23.7.

It's hanging only when run under 'make test'.
It works fine (and passes all tests) if I run it as​:

C​:\_64\comp\perl-5.23.8-ld\cpan\IO-Compress>
\_64\comp\perl-5.23.8-ld\perl -I../../lib t/100generic-deflate.t

Where did it hang in perl code?

Use a C debugger and examine my_perl->Icurcop->cop_file and my_perl->Icurcop->cop_line in the hung process, those 2 say what perl code is executing. A C stack trace would also be nice.

--
bulk88 ~ bulk88 at hotmail.com

@p5pRT
Copy link
Author

p5pRT commented Feb 22, 2016

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

@p5pRT
Copy link
Author

p5pRT commented Feb 24, 2016

From @sisyphus

-----Original Message-----
From​: bulk88 via RT
Sent​: Tuesday, February 23, 2016 4​:43 AM
To​: sisyphus1@​optusnet.com.au
Subject​: [perl #127585] [5.23.8] ../cpan/IO-Compress/t/100generic-deflate.t
hangs on MS Windows

On Mon Feb 22 02​:36​:54 2016, sisyphus wrote​:

It's hanging only when run under 'make test'.
It works fine (and passes all tests) if I run it as​:

C​:\_64\comp\perl-5.23.8-ld\cpan\IO-Compress>
\_64\comp\perl-5.23.8-ld\perl -I../../lib t/100generic-deflate.t

Where did it hang in perl code?

Use a C debugger and examine my_perl->Icurcop->cop_file and
my_perl->Icurcop->cop_line in the hung process, those 2 say what perl code
is executing. A C stack trace would also be nice.

Unfortunately I don't know how to use a C debugger or how to produce a C
stack trace.
So I'm probably not the first choice of who you'd want to have investigate
this issue. (It shouldn't be hard for some competent person to reproduce the
issue using StrawberryPerl's x64 gcc-4.9.2 compiler.)

However, UIM, the first thing I need to be able to do is to run that script
by itself in such a way that the hang occurs - and I haven't been able to do
that.

I did try cd'ing to the t directory and running "perl.exe harness
../cpan/IO-Compress/t/100generic-deflate.t" but the damn thing just passes
all of its tests​:

C​:\_64\comp\perl-5.23.8-ld\t>perl.exe harness
../cpan/IO-Compress/t/100generic-deflate.t
../cpan/IO-Compress/t/100generic-deflate.t .. ok
All tests successful.
Files=1, Tests=794, 0 wallclock secs ( 0.06 usr + 0.00 sys = 0.06 CPU)
Result​: PASS

And I tried doing the same after first setting the PERL_STATIC_EXT
environment variable to Win32CORE.
But that made no difference.

So ... at the moment, the only way I can get the thing to hang is to run
'make test'.
Then I have to sit there to acknowledge the modfl crash during the op/pack.t
test failure, and then wait some more until we get to
../cpan/IO-Compress/t/100generic-deflate.t.
(OK - I could avoid the modfl crash by not enabling a uselongdouble build.)

Essentially, I've got no idea of how to proceed further.

Cheers,
Rob

@p5pRT
Copy link
Author

p5pRT commented Mar 9, 2016

From @tonycoz

On Sun Feb 21 01​:19​:31 2016, sisyphus wrote​:

Hi,

During 'make test' I'm getting​:
../cpan/IO-Compress/t/100generic-deflate.t ........................
1/794

and that's where it hangs, thereby disallowing the running of the
remainder
of the test suite.

But this is happening only on my 64-bit build - no such problem with
the
32-bit build.

I used to have this happen for 64-bit builds on Windows 7, not just for generate-deflate but for all of the generic-foo tests in IO-Compress.

It stopped happening (for me) a while back, I don't know why.

Tony

@p5pRT
Copy link
Author

p5pRT commented Mar 10, 2016

From @sisyphus

-----Original Message-----
From​: Tony Cook via RT
Sent​: Thursday, March 10, 2016 10​:49 AM
To​: sisyphus1@​optusnet.com.au
Subject​: [perl #127585] [5.23.8] ../cpan/IO-Compress/t/100generic-deflate.t
hangs on MS Windows

I used to have this happen for 64-bit builds on Windows 7, not just for
generate-deflate but for all of the generic-foo tests in IO-Compress.
It stopped happening (for me) a while back, I don't know why.

Yes, I can also recall IO-Compress tests hanging from quite a while back,
though I can't recall the exact details.
And I was then on Windows 7, as I am still.

But I haven't seen this problem on any of the 5.23.x releases (until
5.23.8), and I think I've tested all of those 5.23.x releases. It certainly
wasn't there for 5.23.6 and 5.23.7.

Anyway, if you're telling me it's not affecting Windows 8 and Windows 10,
then I guess that's good news.

I'll make a point of updating this report if the problem goes away again
before 5.24.0 is released.

Cheers,
Rob

@p5pRT
Copy link
Author

p5pRT commented Jun 21, 2016

From @sisyphus

-----Original Message-----
From​: sisyphus1@​optusnet.com.au
Sent​: Thursday, March 10, 2016 8​:57 PM
To​: perlbug-followup@​perl.org
Subject​: Re​: [perl #127585] [5.23.8]
../cpan/IO-Compress/t/100generic-deflate.t hangs on MS Windows

I'll make a point of updating this report if the problem goes away again
before 5.24.0 is released.

It didn't go away before 5.24.0 was released, but it's not present in
5.25.2.
I've certainly no objection to this bug report being closed.

Cheers,
Rob

@p5pRT
Copy link
Author

p5pRT commented Jun 27, 2016

From @xsawyerx

Since the behavior was verified as "no longer existent" by reporter, this has been subsequently closed.

Thank you for opening the issue and tracking its state. :)

@p5pRT
Copy link
Author

p5pRT commented Jun 27, 2016

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

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

No branches or pull requests

1 participant