On 8/3/2010 8:30 PM, P Kishor wrote:
> On Tue, Aug 3, 2010 at 7:19 PM, Chris Marshall<[email protected]>  wrote:
>> On 8/3/2010 8:01 PM, P Kishor wrote:
>>>
>>> also on 64-bit Snow Leopard (Mac OS X 10.6.4)
>>>
>>> punk...@lucknow ~$ perl -MPDL -e '$PDL::BIGPDL=1; $x = sequence(float,
>>> 23171, 23171); print $x->info("%M")."\n"'
>>> perl(85899) malloc: *** mmap(size=18446744071562166272) failed (error
>>> code=12)
>>> *** error: can't allocate region
>>> *** set a breakpoint in malloc_error_break to debug
>>> Out of memory!
>>> punk...@lucknow ~$
>>
>> What is perl -V?

I looked at the PDL/Basic/Core stuff and it looks like
if SvGROW can handle a >2GB string then, in principle,
PDL should be able to handle piddles of that size.

Could you see if you can create a string more than 2GB
long?  It might take a while but it will tell us if the
limit is perl or PDL.  Since the PDL routines for growing
a new piddle use 4byte ints for their sizes (rather than
size_t objects), it is pretty clear that there is a bug
in the PDL allocation stuff if perl can handle the longer
strings.

--Chris

> Summary of my perl5 (revision 5 version 12 subversion 1) configuration:
>
>    Platform:
>      osname=darwin, osvers=10.3.0, archname=darwin-2level
>      uname='darwin lucknow.local 10.3.0 darwin kernel version 10.3.0:
> fri feb 26 11:58:09 pst 2010; root:xnu-1504.3.12~1release_i386 i386 '
>      config_args='-d'
>      hint=recommended, useposix=true, d_sigaction=define
>      useithreads=undef, usemultiplicity=undef
>      useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
>      use64bitint=define, use64bitall=define, uselongdouble=undef
>      usemymalloc=n, bincompat5005=undef
>    Compiler:
>      cc='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp
> -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include',
>      optimize='-O3',
>      cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN
> -no-cpp-precomp -fno-strict-aliasing -pipe -fstack-protector
> -I/usr/local/include'
>      ccversion='', gccversion='4.2.1 (Apple Inc. build 5659)', gccosandvers=''
>      intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
>      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='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='
> -fstack-protector -L/usr/local/lib'
>      libpth=/usr/local/lib /usr/lib
>      libs=-ldbm -ldl -lm -lutil -lc
>      perllibs=-ldl -lm -lutil -lc
>      libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a
>      gnulibc_version=''
>    Dynamic Linking:
>      dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
>      cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup
> -L/usr/local/lib -fstack-protector'
>
>
> Characteristics of this binary (from libperl):
>    Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP USE_64_BIT_ALL
>                          USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO
>                          USE_PERL_ATOF
>    Built under darwin
>    Compiled at May 30 2010 12:38:32
>    @INC:
>      /usr/local/lib/perl5/site_perl/5.12.1/darwin-2level
>      /usr/local/lib/perl5/site_perl/5.12.1
>      /usr/local/lib/perl5/5.12.1/darwin-2level
>      /usr/local/lib/perl5/5.12.1
>      /usr/local/lib/perl5/site_perl
>      .
>
>
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 9.0.851 / Virus Database: 271.1.1/3049 - Release Date: 08/03/10 
> 10:22:00
>


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to