develooper Front page | perl.perl5.porters | Postings from July 2018

Unicode::Collate's mkheader fills log

Thread Next
From:
H.Merijn Brand
Date:
July 2, 2018 15:50
Subject:
Unicode::Collate's mkheader fills log
Message ID:
20180702174941.78ba38a3@pc09.procura.nl
The smoke log on my HP-UX 11.11 grew to a whopping 350Mb
Which caused Test::Smoke to fail, as that is to big to fit in memory,
so so results are not sent

Not funny:

$ grep 'wrapped in pack' p59-cc.log | wc -l
4016149

I dug into this and saw that these all were from Unicode::Collate's
mkheader line 84:

	    my @wt = _getHexArray($arr);
	    push @key, pack(VCE_TEMPLATE, $var, @wt);

Which reduces to

$ ./perl -I./lib -wE'$a = pack "Cn4", 1, 3726, 32, 2'
Character in 'C' format wrapped in pack at -e line 1.

which can be reduced to

$ ./miniperl -I./lib -wE'$a = pack "Cn4", 1, 3726, 32, 2'
Character in 'C' format wrapped in pack at -e line 1.

dropping optimization to +01 doesn't change it, but disabling
optimization to +O0, all is well:

Shall I drop optimization to +O0 for HP-UX 11.11 with ANSI cc or does
this warrant deeper investigation?

if I do that with my installed perl (same compiler)

$ perl -wE'$a = pack "Cn4", 1, 3726, 32, 2'
Name "main::a" used only once: possible typo at -e line 1.

$ ./perl -I./lib -V
Summary of my perl5 (revision 5 version 29 subversion 1) configuration:
  Snapshot of: 3256503ed11b2de442930266ddda2e95557511fe
  Platform:
    osname=hpux
    osvers=11.11
    archname=PA-RISC2.0-thread-multi-LP64
    uname='hp-ux r9 b.11.11 u 9000800 814594336 unlimited-user license '
    config_args='-Dusedevel -Duse64bitall -Dusethreads -Duseithreads -des'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=define
    usemultiplicity=define
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
    bincompat5005=undef
  Compiler:
    cc='cc'
    ccflags =' -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -DDEBUGGING +Z -z -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 -I/pro/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 '
    optimize='+O2 +Onolimit'
    cppflags='-Aa -D__STDC_EXT__ -DDEBUGGING +Z -z -D_HPUX_SOURCE -D_POSIX_C_SOURCE=199506L -D_REENTRANT -Ae -DDEBUGGING +Z -z -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 -I/pro/local/include'
    ccversion='B.11.11.18'
    gccversion=''
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=87654321
    doublekind=4
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=2
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='/usr/bin/ld'
    ldflags ='-L/pro/local/lib +DD64 -L/lib/pa20_64'
    libpth=/pro/local/lib /lib/pa20_64 /lib /usr/lib /usr/ccs/lib /usr/local/lib
    libs=-lcl -lpthread -lnsl -ldb -ldl -lm -lsec -lc
    perllibs=-lcl -lpthread -lnsl -ldl -lm -lsec -lc
    libc=/lib/pa20_64/libc.sl
    so=sl
    useshrplib=false
    libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_hpux.xs
    dlext=sl
    d_dlsymun=undef
    ccdlflags='-Wl,-E -Wl,-B,deferred '
    cccdlflags='+Z'
    lddlflags='-b +vnocompatwarnings -L/pro/local/lib -L/lib/pa20_64'


Characteristics of this binary (from libperl):
  Compile-time options:
    DEBUGGING
    HAS_TIMES
    MULTIPLICITY
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_IMPLICIT_CONTEXT
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    PERL_TRACK_MEMPOOL
    PERL_USE_DEVEL
    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
  Built under hpux
  Compiled at Jul  2 2018 17:01:09
  @INC:
    ./lib
    /pro/lib/perl5/site_perl/5.29.1/PA-RISC2.0-thread-multi-LP64
    /pro/lib/perl5/site_perl/5.29.1
    /pro/lib/perl5/5.29.1/PA-RISC2.0-thread-multi-LP64
    /pro/lib/perl5/5.29.1

-- 
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.27   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/

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