Perl linked list segfault

Andy Wardley abw at wardley.org
Wed Nov 4 11:20:01 GMT 2009


On 04/11/2009 10:45, Matthew Boyle wrote:
> mine seems to be running out of stack space:
>
> [chemnitz at 10:36 ~]$ gdb perl
[...]
> (gdb) run downloads/linked_list_segfault.pl
> Starting program: /usr/bin/perl downloads/linked_list_segfault.pl

Ah!  That's the magic incantation I needed.  I was trying these:

   $ gdb linked_list_segfault.pl
   $ gdb perl linked_list_segfault.pl

And of course, gdb complained that linked_list_segfault.pl wasn't a
core file.

> quarter of a million frames is quite a lot :-)

Indeed.  I'll try not to be so greedy in future :-)

 > looks like it is a stack issue:
 >
 > [chemnitz at 10:52 ~]$ ulimit -s
 > 10240

That's another useful tip to remember.  Thank you.

A


More information about the london.pm mailing list