Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > perl 10^9 long strings of packed floats, getting 'panic: memory wrap'that didn't use to happen before

Thread Tools

perl 10^9 long strings of packed floats, getting 'panic: memory wrap'that didn't use to happen before
Posts: n/a
Dear all.

I've had a simple way of creating array of floats:
my $xfArray=((pack "f1", 0.0) x $nSize);

I was able to create up to 10^9 long arrays of floats and pass them to perl inline c for further processing.

One beautiful day, I started getting message:
panic: memory wrap at line 917.

I thought this is due to fragmented memory on servers as some of them aren't rising this error. Then I tried ordinary MALLOC in C which was able always allocate the desired amount of memory.

My question is what could have happened? I've been trying to allocate less than 10% of overall RAM available on my machine (148GB RAM) ... It works with MALLOC, does not with the above code any more ...

This is the version of perl used:
This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi

Any sugestions?

Reply With Quote
Posts: n/a
I have no admin rights to compile perl and I guess I'd need them. What do you mean by getting function names? I'm not sure how this whole backtracing works in perl.

> Are you able to get a backtrace? Ideally from a perl built with
> -DDEBUGGING, but if not you should at least be able to get function
> names.
> Ben

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Having compilation error: no match for call to (const __gnu_cxx::hash<long long int>) (const long long int&) veryhotsausage C++ 1 07-04-2008 05:41 PM
Use of Long and Long Long Bart C C Programming 27 01-15-2008 05:27 AM
How to use packed js in <head> section so code executes? Mike Scirocco Javascript 1 09-13-2007 08:04 AM
HTML table border - has anyone seen this happen before? HTML 8 11-24-2006 09:45 AM
Strings, Strings and Damned Strings Ben C Programming 14 06-24-2006 05:09 AM