Malloc problem Perl
From: Julianno Sambatti (jbsambatti_at_ucdavis.edu)
Date: 08/04/04
- Next message: Richard A. Evans: "Re: Re: Determining Odd and Even Numbers"
- Previous message: DBSMITH_at_OhioHealth.com: "question"
- Next in thread: Wiggins D'Anconia: "Re: Malloc problem Perl"
- Reply: Wiggins D'Anconia: "Re: Malloc problem Perl"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 3 Aug 2004 17:34:36 -0700 (PDT) To: beginners@perl.org
Hi all,
I have a perl code that reads a file into a list in an array of array. Then it rearranges each
nested array in another format - 4 columns instead of 2 - by randomly picking an element
of each array and reassembling another array. It's been working when the infile is small.
However, when it is large the program crashes and spits the following message:
*** malloc: vm_allocate(size=262144) failed with 3
*** malloc[591]: error: Can't allocate region
Out of memory!
which is obviously related to memory allocation.
Can someone help me fixing this problem?
Thanks
Julianno Sambatti
- Next message: Richard A. Evans: "Re: Re: Determining Odd and Even Numbers"
- Previous message: DBSMITH_at_OhioHealth.com: "question"
- Next in thread: Wiggins D'Anconia: "Re: Malloc problem Perl"
- Reply: Wiggins D'Anconia: "Re: Malloc problem Perl"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|