develooper Front page | perl.perl5.porters | Postings from October 2014

Re: Any empty members in struct xpvcv AKA CV that an XSUB can use?

Thread Previous
From:
Father Chrysostomos
Date:
October 23, 2014 00:59
Subject:
Re: Any empty members in struct xpvcv AKA CV that an XSUB can use?
Message ID:
20141023005953.18327.qmail@lists-nntp.develooper.com
Daniel Dragan wrote:
> Father Chrysostomos wrote:
> > While that will probably work most of the time (as would xcv_outside
> > I think), you would have to be careful not to run it through
> > Perl_sv_dump() or the standard thread-cloning code.  Can you use
> > xcv_depth or xcv_outside_seq?  Or does your code have to run
> > on 64-bit?
> 
> Must be 64 bit/void * sized. What I am trying to do is stop ABI/linking
> problems, where Dynaloader loads a XS module compiled with 5.18 into a
> 5.20 process, or DEBUGGING vs no DEBUGGING or DEBUG_LEAKING_SCALARS vs
> no DEBUG_LEAKING_SCALARS.

I see.  If this is a patch for the perl core, then just change the
code in dump.c and thread-cloning (the bottom of sv.c) to check the
ISXSUB flag before accessing CvPADLIST.  pad.c:cv_undef may need to
change as well.


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About