I dont have time to look into this deeper, but i thought i might point you at sv_dump(), the (simplified) internals version of Devel::Peek::Dump() that can be called directly from your XS code. This may make it easier to see what is going on. I know that I have used it to work out refcount issues in XS/internals code before.
In reply to Re: XS: Manipulating refcounts
by demerphq
in thread XS: Manipulating refcounts
by creamygoodness
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |