in reply to Segmentation Fault

what happens if you halve it to 5,000

...when that breaks, what happens when you halve the half that you just halved? :)

iow, either way, you are hitting a bug in the data. Half'ing the problem may help.

If you find the problem goes away with all of the same data but in segments, use the function to read in the same amount of different data, and try to run the hardware out of memory to find out if exhaustion is the problem.

Steve

Replies are listed 'Best First'.
Re^2: Segmentation Fault
by abhay180 (Sexton) on Aug 31, 2009 at 06:48 UTC
    Thanks for the suggestion. That will take some time for me. Meanwhile is there any other way i can read a file as an array and work on it...just like Tie::File?
Re^2: Segmentation Fault
by abhay180 (Sexton) on Aug 31, 2009 at 08:15 UTC
    Okie. I figured out the exact failure point. It fails when the file contains greater than or equal to 1021 items. It works at 1020. I tried it with multiple sets of data and everytime i see the same result. Seems some weird limit. How can we address this?