Skip to content

cygwin CI failure: cpan/Win32/t/Unicode.t #19239

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

Closed
tonycoz opened this issue Nov 23, 2021 · 1 comment
Closed

cygwin CI failure: cpan/Win32/t/Unicode.t #19239

tonycoz opened this issue Nov 23, 2021 · 1 comment

Comments

@tonycoz
Copy link
Contributor

tonycoz commented Nov 23, 2021

Module: Win32

Description

This is a tracking bug for a problem either with cygwin or the Win32 module.

Since 76829f4 in blead, CI on cygwin has been failing the:

../cpan/Win32/t/Unicode.t

test.

The 76829f4 commit is purely a documentation change and can't have caused the failure, but the two test runs also differ in the versions of cygwin:

uname='cygwin_nt-10.0 fv-az177-140 3.2.0(0.34053) 2021-03-29 08:42 x86_64 cygwin '

vs

uname='cygwin_nt-10.0 fv-az177-593 3.3.1(0.34153) 2021-10-28 20:52 x86_64 cygwin '

The test appears to be failing because this code on line 78:

# cwd() also returns a usable ANSI directory name
my $subdir = cwd();

is returning the UTF-8 encoded long path name, rather than the ANSI path name, with the code that steps through each component failing on the Unicode part of the name.

Even though the upgrade of cygwin introduced the failure, it may just be that the test is fragile.

I haven't found any commits in cygwin that I think could cause the problem.

Steps to Reproduce

Build and test perl on cygwin >= 3.3.1.

Expected behavior

The test passes.

Perl configuration

# perl -V output goes here
Summary of my perl5 (revision 5 version 35 subversion 6) configuration:
  Commit id: 76829f42d6278f3b9862e88fcecb11eeaf70c3c1
  Platform:
    osname=cygwin
    osvers=3.3.1(0.34153)
    archname=cygwin-thread-multi
    uname='cygwin_nt-10.0 fv-az177-593 3.3.1(0.34153) 2021-10-28 20:52 x86_64 cygwin '
    config_args='-des -Dusedevel -Doptimize=-g -DDEBUGGING'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=define
    usemultiplicity=define
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
  Compiler:
    cc='gcc'
    ccflags ='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -fwrapv -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector-strong'
    optimize='-g'
    cppflags='-DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -fwrapv -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector-strong'
    ccversion=''
    gccversion='11.2.0'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='g++'
    ldflags =' -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--enable-auto-image-base -fstack-protector-strong -L/usr/local/lib'
    libpth=/usr/lib /usr/lib/w32api /usr/local/lib /lib
    libs=-lpthread -ldl
    perllibs=-lpthread -ldl
    libc=/usr/lib/libc.a
    so=dll
    useshrplib=true
    libperl=cygperl5_35_6.dll
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=dll
    d_dlsymun=undef
    ccdlflags=' '
    cccdlflags=' '
    lddlflags=' --shared  -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--enable-auto-image-base -L/usr/local/lib -fstack-protector-strong'


Characteristics of this binary (from libperl): 
  Compile-time options:
    DEBUGGING
    HAS_TIMES
    MULTIPLICITY
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    PERL_TRACK_MEMPOOL
    PERL_USE_DEVEL
    PERL_USE_SAFE_PUTENV
    USE_64_BIT_ALL
    USE_64_BIT_INT
    USE_ITHREADS
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
    USE_REENTRANT_API
    USE_THREAD_SAFE_LOCALE
  Built under cygwin
  Compiled at Oct 29 2021 15:53:47
  %ENV:
    PERL_SKIP_TTY_TEST="1"
  @INC:
    lib
    /usr/local/lib/perl5/site_perl/5.35.6/cygwin-thread-multi
    /usr/local/lib/perl5/site_perl/5.35.6
    /usr/local/lib/perl5/5.35.6/cygwin-thread-multi
    /usr/local/lib/perl5/5.35.6
tonycoz added a commit to tonycoz/perl5 that referenced this issue Jan 10, 2022
fixes Perl#19239

Ideally a new release of Win32 will be released, but it'd hard to tell
when that will happen, since it may be waiting on Perl#30
tonycoz added a commit to tonycoz/perl5 that referenced this issue Jan 10, 2022
fixes Perl#19239

Ideally a new release of Win32 will be released, but it's hard to tell
when that will happen, since it may be waiting on Perl#30.

So fix this in core for now to clean up CI results.
@xenu
Copy link
Member

xenu commented Jan 19, 2022

Win32 0.58 contains a fix for this issue and it has been merged to blead (3fe11e0)

@xenu xenu closed this as completed Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants