Hi all,

I am stuck in the following segfault problem for several days now and quite desperate...
Since some point (don't know if due to a CPAN upgrade or any other change to my Ubuntu 9.10), my Perl program keeps crashing with a core dump.

Trying to update some CPAN modules, a test script of Devel::Declare also caused a segfault: t/method-installer-runtime.t at this lines:
... method foo { $_[0]->method } ...

With gdb, I tracked down the problem to Sub::Name:

Core was generated by `/usr/bin/perl t/method-installer-runtime.t'. Program terminated with signal 11, Segmentation fault. #0 0x0057a561 in XS_Sub__Name_subname () from /usr/lib/perl5/auto/Sub +/Name/Name.so

Doing some research, in the Perl porters mailing list I found that Sub::Name is "known problematic"...
Besides that, there are two open bugs including patches for Sub::Name, but they are not about segmentation faults. In reply to one patch Sergey Aleynikov says: "this seems to solve problem with local()ized subref assigments to globs". Might that be relevant for me?

My Perl (compiled from Debian source) version is:

This is perl 5, version 12, subversion 0 (v5.12.0) built for i486-linu +x-gnu-thread-multi-64int-ld (with 27 registered patches, see perl -V for more detail)

Does anybody have some hints for me where the problem lies?

-maxhq


In reply to Segfault in Sub::Name by maxhq

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.