Unicode::Collate's mkheader fills log

--Sig_/piAxAPQrYRC.INy=mfCc2=7
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

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 =3D _getHexArray($arr);
	    push @key, pack(VCE_TEMPLATE, $var, @wt);

Which reduces to

$ ./perl -I./lib -wE'$a =3D 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 =3D 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 =3D 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=3Dhpux
    osvers=3D11.11
    archname=3DPA-RISC2.0-thread-multi-LP64
    uname=3D'hp-ux r9 b.11.11 u 9000800 814594336 unlimited-user license '
    config_args=3D'-Dusedevel -Duse64bitall -Dusethreads -Duseithreads -des'
    hint=3Drecommended
    useposix=3Dtrue
    d_sigaction=3Ddefine
    useithreads=3Ddefine
    usemultiplicity=3Ddefine
    use64bitint=3Ddefine
    use64bitall=3Ddefine
    uselongdouble=3Dundef
    usemymalloc=3Dn
    default_inc_excludes_dot=3Ddefine
    bincompat5005=3Dundef
  Compiler:
    cc=3D'cc'
    ccflags =3D' -D_POSIX_C_SOURCE=3D199506L -D_REENTRANT -Ae -DDEBUGGING +=
Z -z -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 -I/pro/local/include -D_LA=
RGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 '
    optimize=3D'+O2 +Onolimit'
    cppflags=3D'-Aa -D__STDC_EXT__ -DDEBUGGING +Z -z -D_HPUX_SOURCE -D_POSI=
X_C_SOURCE=3D199506L -D_REENTRANT -Ae -DDEBUGGING +Z -z -D_HPUX_SOURCE -Wl,=
+vnocompatwarnings +DD64 -I/pro/local/include'
    ccversion=3D'B.11.11.18'
    gccversion=3D''
    gccosandvers=3D''
    intsize=3D4
    longsize=3D8
    ptrsize=3D8
    doublesize=3D8
    byteorder=3D87654321
    doublekind=3D4
    d_longlong=3Ddefine
    longlongsize=3D8
    d_longdbl=3Ddefine
    longdblsize=3D16
    longdblkind=3D2
    ivtype=3D'long'
    ivsize=3D8
    nvtype=3D'double'
    nvsize=3D8
    Off_t=3D'off_t'
    lseeksize=3D8
    alignbytes=3D8
    prototype=3Ddefine
  Linker and Libraries:
    ld=3D'/usr/bin/ld'
    ldflags =3D'-L/pro/local/lib +DD64 -L/lib/pa20_64'
    libpth=3D/pro/local/lib /lib/pa20_64 /lib /usr/lib /usr/ccs/lib /usr/lo=
cal/lib
    libs=3D-lcl -lpthread -lnsl -ldb -ldl -lm -lsec -lc
    perllibs=3D-lcl -lpthread -lnsl -ldl -lm -lsec -lc
    libc=3D/lib/pa20_64/libc.sl
    so=3Dsl
    useshrplib=3Dfalse
    libperl=3Dlibperl.a
    gnulibc_version=3D''
  Dynamic Linking:
    dlsrc=3Ddl_hpux.xs
    dlext=3Dsl
    d_dlsymun=3Dundef
    ccdlflags=3D'-Wl,-E -Wl,-B,deferred '
    cccdlflags=3D'+Z'
    lddlflags=3D'-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

--=20
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/

--Sig_/piAxAPQrYRC.INy=mfCc2=7
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJbOkmcAAoJEAOhR6E+XcCY818H/3bSYmD5B/Ji7l1gv5XIilXE
eXx1GaecglKbceZZ1ruFg/GrYHJAb8y1eQMj5fbPGQ56wH5Z0nPXcOUlFcjM1u0r
zGdUwa0qwL6fXM08Xby98LcErU43gZgTwQlriVgCRQh0WHxqF9it3ziDva51OhFL
4Nuz5eVuKkQMhHyajNOq774Puug7IBe6ovyPVJnBgX4+GqDZJCahhM+LTliN9Mxu
jZiF01c5c4MgmxjYITqnJDiFxv8c1j506GfAYJp1GFz4RoZs2Y/XuZ7eM9zcc+bh
JpOlMWkAFKPo0+B4E0/ricAFSWfMf8QPYLPjrQI24X44SIBVWmRo8kAgjSx3lQc=
=4kmD
-----END PGP SIGNATURE-----

--Sig_/piAxAPQrYRC.INy=mfCc2=7--
0
h
7/2/2018 3:49:41 PM
perl.perl5.porters 47267 articles. 0 followers. Follow

1 Replies
22 Views

Similar Articles

[PageSpeed] 23

--Sig_/lnMcbf7XHkRZJY/RAssWDG2
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On Mon, 2 Jul 2018 17:49:41 +0200, "H.Merijn Brand"
<h.m.brand@xs4all.nl> wrote:

> 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

Now they are! And they are dark-black

https://tux.nl/perl5/smoke/hpux1111/511/cc/mktest.rpt

For the readers, this was commit

Author: H.Merijn Brand <h.m.brand@xs4all.nl>
Date:   Mon Jul 2 18:25:16 2018 +0200

    Disable optimizer on pp_pack for HP C-ANSI-C on HP-UX 11.11

    with optimize levels +O1 and higher:

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

    with +O0 (or no -O/+O) all goes well
    Chances are too small to care that this will ever be fixed

    This was found as the Test::Smoke run on this system created a
    log-file of over 350 Mb with 4016149 warnings like the above

--=20
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/

--Sig_/lnMcbf7XHkRZJY/RAssWDG2
Content-Type: application/pgp-signature
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJbPGlYAAoJEAOhR6E+XcCYPQYH/0OirUXxBcIDp6GdjDCXccRo
jW/2O25oonQELB2nZUWSj0TbEd6rJaLjWG2TURxK1L0+w5yUTmNEsBX4/Qie3cz/
0YtEhRhQlFtgSkwc6imP9c92kj5DV8OmOMTl+VlkuTenQeYu0njbr/ryYrqyBalU
hAijG3/glSW4p66GLuK85Aw7ZtmgawgX3wB6QMKhhITfVp7Yxtbh1fKWSBrR8UPv
XhvozbKbJwwpdRN/UbQFf5fC9JeoqMrTDJ6eI/RI3+CZEh80VChSoWMU/hsb6+eL
f9sO9oVJadAGECX6sBY0Y7h3hr0UWpaoB19OCZM2heJIIAdTAYzFTpJRMNgofBo=
=LqkJ
-----END PGP SIGNATURE-----

--Sig_/lnMcbf7XHkRZJY/RAssWDG2--
0
h
7/4/2018 6:29:17 AM
Reply: