Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: perl built with -DDEBUGGING causes "failed to extend arg stack" error with XS modules

by dave_the_m (Monsignor)
on Jul 25, 2021 at 18:51 UTC ( [id://11135387] : note . print w/replies, xml ) Need Help??


in reply to perl built with -DDEBUGGING causes "failed to extend arg stack" error with XS modules

If both perl and the XS module are built with the same build options (in this case, -DDEBUGGING), then the error message you see is almost certainly a bug in the XS module. If perl is built with -DDEBUGGING while the XS module is built without it (which is the situation the ticket you linked to refers to) then you'll get spurious errors like these.

In general perl only works with XS modules built using the same perl and build options. That ticket was basically asking whether we could make a special exception for -DDEBUGGING, but in general it is exceedingly hard to maintain binary compatibility among different build options.

NB: I added the high-water-mark debugging code to the perl core.

Dave.