Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.99k stars 559 forks source link

IO-1.50 test t/cachepropagate-unix.t is failing on AIX #20392

Open XSven opened 2 years ago

XSven commented 2 years ago

Module IO-1.50

Description

make TEST_FILES=t/cachepropagate-unix.t TEST_VERBOSE=1 test
"/usr/local/perl-5.14.2_64_8/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- IO.bs blib/arch/auto/IO/IO.bs 644
PERL_DL_NONLAZY=1 "/usr/local/perl-5.14.2_64_8/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1, 'blib/lib', 'blib/arch')" t/cachepropagate-unix.t
t/cachepropagate-unix.t ..
1..15
ok 1 - stream socket created
not ok 2 - protocol defined

#   Failed test 'protocol defined'
#   at t/cachepropagate-unix.t line 54.
ok 3 - domain defined
ok 4 - type defined
ok 5 - spawned a child
ok 6 - domain match
ok 7 # skip no Socket::SO_PROTOCOL
ok 8 - type match
ok 9 - datagram socket created
not ok 10 - protocol defined
ok 11 - domain defined
ok 12 - type defined
ok 13 - domain match
ok 14 # skip no Socket::SO_PROTOCOL
ok 15 # skip AIX: getsockopt(SO_TYPE) is badly broken on UDP/UNIX sockets

#   Failed test 'protocol defined'
#   at t/cachepropagate-unix.t line 109.
# Looks like you failed 2 tests of 15.
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/15 subtests
        (less 3 skipped subtests: 10 okay)

Test Summary Report
-------------------
t/cachepropagate-unix.t (Wstat: 512 Tests: 15 Failed: 2)
  Failed tests:  2, 10
  Non-zero exit status: 2
Files=1, Tests=15,  1 wallclock secs ( 0.01 usr  0.01 sys +  0.03 cusr  0.03 csys =  0.08 CPU)
Result: FAIL
Failed 1/1 test programs. 2/15 subtests failed.
make: *** [Makefile:1074: test_dynamic] Error 2

Steps to Reproduce make TEST_FILES=t/cachepropagate-unix.t TEST_VERBOSE=1 test

Expected behavior the test t/cachepropagate-unix.t should pass

Perl configuration

perl -V
Summary of my perl5 (revision 5 version 14 subversion 2) configuration:

  Platform:
    osname=aix, osvers=6.1.0.0, archname=aix-thread-multi-64all
    uname='aix parisade 1 6 00c37a144c00 '
    config_args='-des -Duse64bitall -Dusethreads -Dprefix=/usr/local/perl-5.14.2_64_8 -Dcc=gcc -maix64 -static-libgcc -Duseshrplib -Doptimize=-O2 -Dcppflags=-I/usr/local/perl-5.14.2_64_8/include -Dlibpth=/usr/local/perl-5.14.2_64_8/lib /lib /usr/lib /usr/ccs/lib -Dldflags=-Wl,-brtl,-bexpall,-bmaxdata:0x80000000 -L/usr/local/perl-5.14.2_64_8/lib -Dccflags=-I/usr/local/perl-5.14.2_64_8/include'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc -maix64 -static-libgcc -maix64', ccflags ='-D_THREAD_SAFE -I/usr/local/perl-5.14.2_64_8/include -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -fno-strict-aliasing -pipe -I/usr/local/include -maix64 -DUSE_64_BIT_ALL',
    optimize='-O2',
    cppflags='-I/usr/local/perl-5.14.2_64_8/include -D_THREAD_SAFE -I/usr/local/perl-5.14.2_64_8/include -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='4.4.5', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=87654321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc -maix64 -static-libgcc -maix64', ldflags =' -Wl,-brtl,-bexpall,-bmaxdata:0x80000000 -L/usr/local/perl-5.14.2_64_8/lib -Wl,-brtl -Wl,-bdynamic -Wl,-b64'
    libpth=/lib /usr/lib /usr/ccs/lib
    libs=-lbind -lnsl -ldbm -ldl -lld -lm -lcrypt -lpthreads -lc
    perllibs=-lbind -lnsl -ldl -lld -lm -lcrypt -lpthreads -lc
    libc=/lib/libc.a, so=a, useshrplib=true, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Xlinker -bE:/usr/local/perl-5.14.2_64_8/lib/5.14.2/aix-thread-multi-64all/CORE/perl.exp'
    cccdlflags=' ', lddlflags='  -Wl,-b64 -Wl,-bhalt:4 -Wl,-G -Wl,-bI:$(PERL_INC)/perl.exp -Wl,-bE:$(BASEEXT).exp -Wl,-bnoentry -lpthreads -lc -lm -L/usr/local/perl-5.14.2_64_8/lib'

Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
                        PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
                        PERL_PRESERVE_IVUV USE_64_BIT_ALL USE_64_BIT_INT
                        USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF
                        USE_REENTRANT_API
  Built under aix
  Compiled at Jan 31 2013 07:51:55
  %ENV:
  @INC:
    /usr/local/perl-5.14.2_64_8/lib/site_perl/5.14.2/aix-thread-multi-64all
    /usr/local/perl-5.14.2_64_8/lib/site_perl/5.14.2
    /usr/local/perl-5.14.2_64_8/lib/5.14.2/aix-thread-multi-64all
    /usr/local/perl-5.14.2_64_8/lib/5.14.2
    .
jkeenan commented 2 years ago

Module IO-1.50

Description


make TEST_FILES=t/cachepropagate-unix.t TEST_VERBOSE=1 test
"/usr/local/perl-5.14.2_64_8/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- IO.bs blib/arch/auto/IO/IO.bs 644
PERL_DL_NONLAZY=1 "/usr/local/perl-5.14.2_64_8/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1, 'blib/lib', 'blib/arch')" t/cachepropagate-unix.t
t/cachepropagate-unix.t ..
1..15
ok 1 - stream socket created
not ok 2 - protocol defined

#   Failed test 'protocol defined'
#   at t/cachepropagate-unix.t line 54.
ok 3 - domain defined

On this platform, with this (old) version of perl, do you know whether earlier versions of the IO distribution experience this test failure?