soubalaji has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

In perl iam processing a file, while processing iam storing an information in to Hash. In that iam getting an error

getting "Segmentation fault (core dumped)".

any idea about this how to solve this.

Replies are listed 'Best First'.
Re: Segmentation fault
by moritz (Cardinal) on Apr 06, 2011 at 07:46 UTC

    Try to upgrade your perl installation and used modules to the newest versions. Make sure there are no remainders of the old installation that might interfere with the new one.

    If the segfault doesn't go away, try the following:

    Create a copy of your whole project. In the copy, remove as many things as possible while still getting the segfault.

    When removing a single statement causes the segfault to go away, you're in a good position to identify the components involved in the segfault. If there's an XS module involved, it might cause the segfault. Either debug it, or search for a pure perl alternative.

    If no XS module is involved, submit a bug report against perl.