Note that the code you list defines DBD::_::common::FIRSTKEY, not DBI::FIRSTKEY:

{ package # hide from PAUSE DBD::_::common; # ... sub FIRSTKEY { }

So the question remains: Why is DBI::FIRSTKEY being looked for? Most likely (which may not be that likely, given how weird this problem appears to be), is that you have a hash tied to something blessed into DBI but the tied hashes from DBI should be blessed into DBI::db or DBI::st or such.

So use your debugger to trap the call to the DBI::FIRSTKEY you inserted and look at the call stack to figure out what code is triggering that call. Then you'll probably have to debug why the structure being used by that call got blessed into the wrong class.

It might also be worth looking for known bugs in DBI and the version of DBD that you are using. Follow the "view/report bugs" link from DBI and similarly for your version of DBD.

- tye        


In reply to Re^7: Devel::GC::Helper + DBI (debug) by tye
in thread Devel::GC::Helper + DBI by marwatk

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.