<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic perl on itanium produces out of memory in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/perl-on-itanium-produces-out-of-memory/m-p/3904005#M96680</link>
    <description>I'm running perl script on itanium but  I have an out of memory.&lt;BR /&gt;This is the output of perl -V command:&lt;BR /&gt;"Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:&lt;BR /&gt;  Platform:&lt;BR /&gt;    osname=hpux, osvers=11.22, archname=IA64.ARCHREV_0-thread-multi-LP64&lt;BR /&gt;    uname='hp-ux bigsur03 b.11.22 u ia64 1800516905 unlimited-user license '&lt;BR /&gt;    config_args='-ders -Dcc=gcc -Accflags=-DNO_HASH_SEED -Dusethreads -Duseithreads -Ud_sigsetjmp -Uinstallusrbinperl -Ulocincpth= -Uloclibpth= -Duse64bitall -Dd_attribut=undef -Accflags=-fPIC -Dcccdlflags=-fPIC -Uoptimize -Duselargefiles -Dinc_version_list=5.8.1/$archname 5.8.1 5.8.0/$archname 5.8.0 -Duseshrplib -Dprefix=/opt/perl_64 -Dcf_by=ActiveState -Dcf_email=support@ActiveState.com'&lt;BR /&gt;    hint=recommended, useposix=true, d_sigaction=define&lt;BR /&gt;    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define&lt;BR /&gt;    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef&lt;BR /&gt;    use64bitint=define use64bitall=define uselongdouble=undef&lt;BR /&gt;    usemymalloc=y, bincompat5005=undef&lt;BR /&gt;  Compiler:&lt;BR /&gt;    cc='gcc', ccflags ='-D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE -mlp64 -DNO_HASH_SEED -fPIC -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',&lt;BR /&gt;    optimize=' ',&lt;BR /&gt;    cppflags='-D_HPUX_SOURCE -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE -mlp64 -DNO_HASH_SEED -fPIC -fno-strict-aliasing'&lt;BR /&gt;    ccversion='', gccversion='3.3.2 20030829 (prerelease)', gccosandvers='hpux11.22'&lt;BR /&gt;    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=87654321&lt;BR /&gt;    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16&lt;BR /&gt;    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8&lt;BR /&gt;    alignbytes=8, prototype=define&lt;BR /&gt;  Linker and Libraries:&lt;BR /&gt;    ld='gcc', ldflags =' -mlp64 -L/usr/lib/hpux64'&lt;BR /&gt;    libpth=/usr/lib/hpux64 /lib /usr/lib /usr/ccs/lib /usr/local/lib&lt;BR /&gt;    libs=-lnsl -lnm -ldl -ldld -lm -lsec -lpthread&lt;BR /&gt;    perllibs=-lnsl -lnm -ldl -ldld -lm -lsec -lpthread&lt;BR /&gt;    libc=/usr/lib/hpux64/libc.so, so=so, useshrplib=true, libperl=libperl.so&lt;BR /&gt;    gnulibc_version=''&lt;BR /&gt;  Dynamic Linking:&lt;BR /&gt;    dlsrc=dl_hpux.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-B,deferred '&lt;BR /&gt;    cccdlflags='-fPIC', lddlflags='-shared -static-libgcc -fPIC -mlp64 -L/usr/lib/hpux64'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Characteristics of this binary (from libperl): &lt;BR /&gt;  Compile-time options: MULTIPLICITY USE_ITHREADS USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES PERL_IMPLICIT_CONTEXT&lt;BR /&gt;  Locally applied patches:&lt;BR /&gt;        ActivePerl Build 808&lt;BR /&gt;        21846 Configure gets d_u32align wrong&lt;BR /&gt;        21739 [perl #24493] install.html not working&lt;BR /&gt;        21737 Ooops. left an XXX comment in, and worse still it's a // comment&lt;BR /&gt;        21735 utf8 keys now work for tied hashes&lt;BR /&gt;        21734 Accessing unicode keys in tie hashes via hv_exists was broken&lt;BR /&gt;        21733 ext/threads/t/problem.t&lt;BR /&gt;        21732 Config::myconfig() fails under ithreads&lt;BR /&gt;        21728 Update perlhist with 5.6.2&lt;BR /&gt;        21723 Include 'SCCS' in the list of dir names ignored by installperl&lt;BR /&gt;        21718 Empty subroutine as object method segfaults in 5.8.2 (sometimes)&lt;BR /&gt;        21714 Fix bug #24380: assigning list with duplicated keys to a hash&lt;BR /&gt;        21706 [perl #24460] [DOC PATCH] the begincheck program&lt;BR /&gt;        21693 must copy changes from win32/makeifle.mk to wince/makefile.ce&lt;BR /&gt;        21691 Update the list of pumpkings in perlhist.pod&lt;BR /&gt;        21687 [PATCH 5.6.2-RC1 pod/perlhist.pod]  Updated&lt;BR /&gt;        21677 OS/2 docu&lt;BR /&gt;        21676 Bug #24407: key for shared hash got stringified into wrong pool&lt;BR /&gt;        21673 Be sure to use -fPIC not -fpic on Linux/SPARC&lt;BR /&gt;        21672 extending the hash attack test&lt;BR /&gt;        21671 Benchmark.pm cmpthese segfault&lt;BR /&gt;        21662 'make minitest' fails for op/cproto and op/pat&lt;BR /&gt;        21586 Comment that this 'optimisation' is actually a necessary fixup&lt;BR /&gt;        21548 Sync with Pod::Perldoc 3.12&lt;BR /&gt;        21540 Fix backward-compatibility issues in if.pm&lt;BR /&gt;  Built under hpux&lt;BR /&gt;  Compiled at Jan 19 2005 15:58:04&lt;BR /&gt;  @INC:&lt;BR /&gt;    /opt/perl_64/lib/5.8.2/IA64.ARCHREV_0-thread-multi-LP64&lt;BR /&gt;    /opt/perl_64/lib/5.8.2&lt;BR /&gt;    /opt/perl_64/lib/site_perl/5.8.2/IA64.ARCHREV_0-thread-multi-LP64&lt;BR /&gt;    /opt/perl_64/lib/site_perl/5.8.2&lt;BR /&gt;    /opt/perl_64/lib/site_perl"&lt;BR /&gt;&lt;BR /&gt;May be line of my programm that produces error is :&lt;BR /&gt;"$stringa = sprintf "%s%-$lung\s", $str;"&lt;BR /&gt;&lt;BR /&gt;Any ideas .&lt;BR /&gt;Thanks in advance&lt;BR /&gt;"</description>
    <pubDate>Mon, 27 Nov 2006 06:17:07 GMT</pubDate>
    <dc:creator>Wanda Canade'</dc:creator>
    <dc:date>2006-11-27T06:17:07Z</dc:date>
    <item>
      <title>perl on itanium produces out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-on-itanium-produces-out-of-memory/m-p/3904005#M96680</link>
      <description>I'm running perl script on itanium but  I have an out of memory.&lt;BR /&gt;This is the output of perl -V command:&lt;BR /&gt;"Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration:&lt;BR /&gt;  Platform:&lt;BR /&gt;    osname=hpux, osvers=11.22, archname=IA64.ARCHREV_0-thread-multi-LP64&lt;BR /&gt;    uname='hp-ux bigsur03 b.11.22 u ia64 1800516905 unlimited-user license '&lt;BR /&gt;    config_args='-ders -Dcc=gcc -Accflags=-DNO_HASH_SEED -Dusethreads -Duseithreads -Ud_sigsetjmp -Uinstallusrbinperl -Ulocincpth= -Uloclibpth= -Duse64bitall -Dd_attribut=undef -Accflags=-fPIC -Dcccdlflags=-fPIC -Uoptimize -Duselargefiles -Dinc_version_list=5.8.1/$archname 5.8.1 5.8.0/$archname 5.8.0 -Duseshrplib -Dprefix=/opt/perl_64 -Dcf_by=ActiveState -Dcf_email=support@ActiveState.com'&lt;BR /&gt;    hint=recommended, useposix=true, d_sigaction=define&lt;BR /&gt;    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define&lt;BR /&gt;    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef&lt;BR /&gt;    use64bitint=define use64bitall=define uselongdouble=undef&lt;BR /&gt;    usemymalloc=y, bincompat5005=undef&lt;BR /&gt;  Compiler:&lt;BR /&gt;    cc='gcc', ccflags ='-D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE -mlp64 -DNO_HASH_SEED -fPIC -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',&lt;BR /&gt;    optimize=' ',&lt;BR /&gt;    cppflags='-D_HPUX_SOURCE -D_POSIX_C_SOURCE=199506L -D_HPUX_SOURCE -mlp64 -DNO_HASH_SEED -fPIC -fno-strict-aliasing'&lt;BR /&gt;    ccversion='', gccversion='3.3.2 20030829 (prerelease)', gccosandvers='hpux11.22'&lt;BR /&gt;    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=87654321&lt;BR /&gt;    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16&lt;BR /&gt;    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8&lt;BR /&gt;    alignbytes=8, prototype=define&lt;BR /&gt;  Linker and Libraries:&lt;BR /&gt;    ld='gcc', ldflags =' -mlp64 -L/usr/lib/hpux64'&lt;BR /&gt;    libpth=/usr/lib/hpux64 /lib /usr/lib /usr/ccs/lib /usr/local/lib&lt;BR /&gt;    libs=-lnsl -lnm -ldl -ldld -lm -lsec -lpthread&lt;BR /&gt;    perllibs=-lnsl -lnm -ldl -ldld -lm -lsec -lpthread&lt;BR /&gt;    libc=/usr/lib/hpux64/libc.so, so=so, useshrplib=true, libperl=libperl.so&lt;BR /&gt;    gnulibc_version=''&lt;BR /&gt;  Dynamic Linking:&lt;BR /&gt;    dlsrc=dl_hpux.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-B,deferred '&lt;BR /&gt;    cccdlflags='-fPIC', lddlflags='-shared -static-libgcc -fPIC -mlp64 -L/usr/lib/hpux64'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Characteristics of this binary (from libperl): &lt;BR /&gt;  Compile-time options: MULTIPLICITY USE_ITHREADS USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES PERL_IMPLICIT_CONTEXT&lt;BR /&gt;  Locally applied patches:&lt;BR /&gt;        ActivePerl Build 808&lt;BR /&gt;        21846 Configure gets d_u32align wrong&lt;BR /&gt;        21739 [perl #24493] install.html not working&lt;BR /&gt;        21737 Ooops. left an XXX comment in, and worse still it's a // comment&lt;BR /&gt;        21735 utf8 keys now work for tied hashes&lt;BR /&gt;        21734 Accessing unicode keys in tie hashes via hv_exists was broken&lt;BR /&gt;        21733 ext/threads/t/problem.t&lt;BR /&gt;        21732 Config::myconfig() fails under ithreads&lt;BR /&gt;        21728 Update perlhist with 5.6.2&lt;BR /&gt;        21723 Include 'SCCS' in the list of dir names ignored by installperl&lt;BR /&gt;        21718 Empty subroutine as object method segfaults in 5.8.2 (sometimes)&lt;BR /&gt;        21714 Fix bug #24380: assigning list with duplicated keys to a hash&lt;BR /&gt;        21706 [perl #24460] [DOC PATCH] the begincheck program&lt;BR /&gt;        21693 must copy changes from win32/makeifle.mk to wince/makefile.ce&lt;BR /&gt;        21691 Update the list of pumpkings in perlhist.pod&lt;BR /&gt;        21687 [PATCH 5.6.2-RC1 pod/perlhist.pod]  Updated&lt;BR /&gt;        21677 OS/2 docu&lt;BR /&gt;        21676 Bug #24407: key for shared hash got stringified into wrong pool&lt;BR /&gt;        21673 Be sure to use -fPIC not -fpic on Linux/SPARC&lt;BR /&gt;        21672 extending the hash attack test&lt;BR /&gt;        21671 Benchmark.pm cmpthese segfault&lt;BR /&gt;        21662 'make minitest' fails for op/cproto and op/pat&lt;BR /&gt;        21586 Comment that this 'optimisation' is actually a necessary fixup&lt;BR /&gt;        21548 Sync with Pod::Perldoc 3.12&lt;BR /&gt;        21540 Fix backward-compatibility issues in if.pm&lt;BR /&gt;  Built under hpux&lt;BR /&gt;  Compiled at Jan 19 2005 15:58:04&lt;BR /&gt;  @INC:&lt;BR /&gt;    /opt/perl_64/lib/5.8.2/IA64.ARCHREV_0-thread-multi-LP64&lt;BR /&gt;    /opt/perl_64/lib/5.8.2&lt;BR /&gt;    /opt/perl_64/lib/site_perl/5.8.2/IA64.ARCHREV_0-thread-multi-LP64&lt;BR /&gt;    /opt/perl_64/lib/site_perl/5.8.2&lt;BR /&gt;    /opt/perl_64/lib/site_perl"&lt;BR /&gt;&lt;BR /&gt;May be line of my programm that produces error is :&lt;BR /&gt;"$stringa = sprintf "%s%-$lung\s", $str;"&lt;BR /&gt;&lt;BR /&gt;Any ideas .&lt;BR /&gt;Thanks in advance&lt;BR /&gt;"</description>
      <pubDate>Mon, 27 Nov 2006 06:17:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-on-itanium-produces-out-of-memory/m-p/3904005#M96680</guid>
      <dc:creator>Wanda Canade'</dc:creator>
      <dc:date>2006-11-27T06:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: perl on itanium produces out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-on-itanium-produces-out-of-memory/m-p/3904006#M96681</link>
      <description>Hi Wanda:&lt;BR /&gt;&lt;BR /&gt;Without seeing your script and knowing the data that it is attempting to process, it's difficult to pinpoint your problem.&lt;BR /&gt;&lt;BR /&gt;An out-of-memory condition could arise from attempting to slurp too large a file; or from attempting to build too large an array, string, etc.&lt;BR /&gt;&lt;BR /&gt;The 'sprintf' statement you mention is syntatically incorrect.&lt;BR /&gt;&lt;BR /&gt;I suspect that your script does not have the 'warnings' pragma either.  Without it, debugging is so much harder than it needs to be!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 27 Nov 2006 08:35:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-on-itanium-produces-out-of-memory/m-p/3904006#M96681</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-11-27T08:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: perl on itanium produces out of memory</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-on-itanium-produces-out-of-memory/m-p/3904007#M96682</link>
      <description>&lt;BR /&gt;Yes, try perl -w or add 'use warnings;' to the source.&lt;BR /&gt;&lt;BR /&gt;That print statement looks bad and warning will alert you at the very least to the "\s" being an unrecognized escape.&lt;BR /&gt;&lt;BR /&gt;Also check the "%-$lung" part.&lt;BR /&gt;What is that supposed to do?&lt;BR /&gt;&lt;BR /&gt;The % starts a formating sequence.&lt;BR /&gt;The - is for left justified&lt;BR /&gt;The the contents of $lung will become the formatting specification (like '5s').&lt;BR /&gt;&lt;BR /&gt;What is the value of $lung at that point?&lt;BR /&gt;It would take something very funky to make perl run out of memory!&lt;BR /&gt;&lt;BR /&gt;I suspect you just wanted the value of $lung in the string?&lt;BR /&gt;If so, why not put the appropriate %-ns in the format and pass the variable as a second argument.&lt;BR /&gt;Of course if no formatting is needed, then the whole sprintf is fluff and can be possibly be replaced by &lt;BR /&gt;$stringa = $str . "-" . $lung;&lt;BR /&gt;&lt;BR /&gt;If the $lung is a format string, then protect it a little by using ${lung}.&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Nov 2006 09:36:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-on-itanium-produces-out-of-memory/m-p/3904007#M96682</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-11-27T09:36:33Z</dc:date>
    </item>
  </channel>
</rss>

