I see a lot of code in http://search.cpan.org/src/DAPM/perl-5.10.1/ext/B/B/Xref.pm that is careful to skip sections of code that might call ->NAME() if the class to be used would be "SPECIAL". Indeed, line 162 falls at the end of this chunk of code:

next unless class($valsv) eq "GV"; next if class($valsv->STASH) eq 'SPECIAL'; # these pad GVs don't have corresponding names, so same @pad # array can be used without collisions $pad[$ix] = [$valsv->STASH->NAME, "*", $valsv->NAME];

Which seems to make it impossible for either $valsv or $valsv->STASH() to be objects from B::SPECIAL. But you don't say what version of B::Xref you are using so perhaps line 162 is from quite different code for you, but that seems unlikely given that you are using 5.10 and that line 162 actually does contain attempts to ->NAME().

I'd look at the code involved in more detail to figure out how those checks are managing to fail to protect against attempts to use B::SPECIAL->NAME(). I'd start by trying to use "perl -d" for that, but some seem to have pronounced difficulty with that and the "CHECK failed" error might indicate that it would be more challenging than usual in this case. But you can also just add some debugging print statements to the B::Xref code.

- tye        


In reply to Re: Perl -MO=Xref not working for V5.10 (uts,L) by tye
in thread Perl -MO=Xref not working for V5.10 by EigenFunctions

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.