develooper Front page | perl.perl5.porters | Postings from November 2003

5.8.2 make test failure on Solaris 2.6 - srand() related?

Thread Next
From:
Anthony Heading
Date:
November 7, 2003 00:12
Subject:
5.8.2 make test failure on Solaris 2.6 - srand() related?
Message ID:
20031107171132.A19082@tkd-fires-01.ja.jpmorgan.com

Hi,

I'm seeing two failures with 5.8.2 on 'make test' for Solaris 2.6.

Both look related to random numbers seeding, which is obviously
topical.  All seems fine on Solaris 2.8.

As far as I know, very vanilla build.

Tests fail in both unthreaded and threaded configs. 

Any suggestions?

Thanks

Anthony



cd t &&  LD_LIBRARY_PATH=/tmp/perl-5.8.2:/tmp/perl-5.8.2:/apps/open_client/11.1.1/solaris/lib:/apps/dam_yen/conf/aheading/lib:/apps/research/lib/solaris-5.6-sparc:/apps/apfires/lib/solaris-5.6-sparc ./perl TEST  </dev/tty
[....]
t/op/fork............................PROG: 
pipe(RDR,WTR) or die $!;
my $pid = fork;
die "fork: $!" if !defined $pid;
if ($pid == 0) {
    my $rand_child = rand;
    close RDR;
    print WTR $rand_child, "\n";
    close WTR;
} else {
    my $rand_parent = rand;
    close WTR;
    chomp(my $rand_child  = <RDR>);
    close RDR;
    print $rand_child ne $rand_parent, "\n";
}
EXPECTED:
1
GOT:

FAILED at test 19
[...]
t/op/srand...........................# Failed at op/srand.t line 59
FAILED at test 4
[...]
Failed 2 test scripts out of 776, 99.74% okay.



Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:
  Platform:
    osname=solaris, osvers=2.6, archname=sun4-solaris
    uname='sunos tkd-fires-01 5.6 generic_105181-23 sun4u sparc sunw,ultra-60 solaris '
    config_args='-des -Dcc=gcc -Duseshrplib'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O',
    cppflags='-fno-strict-aliasing'
    ccversion='', gccversion='3.3.1', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' '
    libpth=/usr/lib /usr/ccs/lib
    libs=-lsocket -lnsl -ldl -lm -lc
    perllibs=-lsocket -lnsl -ldl -lm -lc
    libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-E -R /usr/local/lib/perl5/5.8.2/sun4-solaris/CORE'
    cccdlflags='-fPIC', lddlflags=' -Wl,-E -G'


Characteristics of this binary (from libperl): 
  Compile-time options: USE_LARGE_FILES
  Built under solaris
  Compiled at Nov  7 2003 16:21:17
  @INC:
    lib
    /usr/local/lib/perl5/5.8.2/sun4-solaris
    /usr/local/lib/perl5/5.8.2
    /usr/local/lib/perl5/site_perl/5.8.2/sun4-solaris
    /usr/local/lib/perl5/site_perl/5.8.2
    /usr/local/lib/perl5/site_perl
    .





This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data 
and other information are not warranted as to completeness or accuracy and 
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase & Co., its
subsidiaries and affiliates.



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