Allocation too large error 
Author Message
 Allocation too large error

Le 19/01/1999, Nick Ing-Simmons a =E9crit :

 > >On HP-UX 10.01 and 10.20, I receive this error when attempting to c=
reate
 > >a window in Perl/Tk 800.11 and 800.12 with perl 5.004_04:
 > >
 > >dtthp204:Tk800.012> /usr/intel/97r1.3/bin/perl -e 'use Tk; $main =3D=
 new
 > >MainWindow'
 > >Allocation too large at
 > >/usr/intel/97r1.3/lib/perl5/site_perl/Tk/MainWindow.pm line 55.
 > >MainWindow->new() at -e line 1
 >=20
 > Any idea where this message is coming from?
 >=20
 > >
 > >Perl -V provides the following version information on HP-UX 10.20:
...
 >=20
 > You might try building with native malloc rather than perl's.
 > It is possible that HPUX shared-lib scheme means that Xlib and Tk se=
e
 > system's and perl's malloc resprectively and get confused.=20
 >=20

I use perl's malloc and HP-UX compiler and I don't have any problem
with this one-liner (tried with perl 5.00202 et 5.00404)

Hope this helps

$ perl -V
Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration:
  Platform:
    osname=3Dhpux, osvers=3D10.20, archname=3DPA-RISC1.1
    uname=3D'hp-ux barrayar b.10.20 a 9000778 2011159982 two-user licen=
se '
    hint=3Dprevious, useposix=3Dtrue, d_sigaction=3Ddefine
    usethreads=3Dundef useperlio=3Dundef d_sfio=3Dundef
  Compiler:
    cc=3D'cc', optimize=3D'-O', gccversion=3D
    cppflags=3D'-D_HPUX_SOURCE -Aa'
    ccflags =3D'-D_HPUX_SOURCE -Aa'
    stdchar=3D'unsigned char', d_stdstdio=3Ddefine, usevfork=3Dfalse
    intsize=3D4, longsize=3D4, ptrsize=3D4, doublesize=3D8
    d_longlong=3Dundef, longlongsize=3D, d_longdbl=3Ddefine, longdblsiz=
e=3D16
    alignbytes=3D8, usemymalloc=3Dy, prototype=3Ddefine
  Linker and Libraries:
    ld=3D'ld', ldflags =3D''
    libpth=3D/lib/pa1.1 /lib /usr/lib /usr/ccs/lib
    libs=3D-lnsl_s -lndbm -ldld -lm -lc -lndir -lcrypt
    libc=3D/lib/libc.sl, so=3Dsl, useshrplib=3Dfalse, libperl=3Dlibperl=
.a
  Dynamic Linking:
    dlsrc=3Ddl_hpux.xs, dlext=3Dsl, d_dlsymun=3Dundef, ccdlflags=3D'-Wl=
,-E -Wl,-B,deferred '
    cccdlflags=3D'+z', lddlflags=3D'-b'

Characteristics of this binary (from libperl):=20
  Built under hpux
  Compiled at Nov 17 1998 14:21:43
  %ENV:
    PERL5LIB=3D"/home/domi/Tools/perlLib:."

    /home/domi/Tools/perlLib
    .
    /opt/perl5/lib/5.00502/PA-RISC1.1
    /opt/perl5/lib/5.00502
    /opt/perl5/lib/site_perl/5.005/PA-RISC1.1
    /opt/perl5/lib/site_perl/5.005
    .

--=20

==========================================================================
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the



Sun, 08 Jul 2001 03:00:00 GMT  
 Allocation too large error
[A complimentary Cc of this posting was sent to James Walden


Quote:
> On HP-UX 10.01 and 10.20, I receive this error when attempting to create
> a window in Perl/Tk 800.11 and 800.12 with perl 5.004_04:

> dtthp204:Tk800.012> /usr/intel/97r1.3/bin/perl -e 'use Tk; $main = new
> MainWindow'
> Allocation too large at
> /usr/intel/97r1.3/lib/perl5/site_perl/Tk/MainWindow.pm line 55.
> MainWindow->new() at -e line 1

> I do not receive this error on the other platforms (AIX 3 and 4, SunOS 4,
> and Solaris 2.5.1) for which I've compiled Perl/Tk 800.11.  Perl/Tk was
> compiled with the X11 R6.4pl3 on all platforms.

Since it looks like this problem is system-specific, it is probably
some HP-UX bug.  Perl 5.005 may be more helpful by providing info
about the size of the allocation.

Looking into the source of 5.004 malloc (it was so long ago!) I see
that the most probably reason for this message is a call to malloc()
with a negative argument.  You may get more info by setting a C
breakpoint in Perl_croak(), running your application, then getting a
backtrace.

Ilya



Sun, 08 Jul 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Allocation too large error

2. MSDOS Perl error message: allocation too large: 10000 ?????

3. error: allocation too large at ...

4. Allocation too large

5. Memory allocation error in Perl 5.6.1 (Cygwin)

6. Allocation Error

7. Error: Allocation to large in Perl for DOS -- bug?

8. ODBC error retrieving large columns

9. ODBC error retrieving large columns

10. get a bus error using grid manager and very large grid numbers

11. Incomplete file I/O with large executeables/large files

12. large numbers cause large frustration

 

 
Powered by phpBB® Forum Software