http://qs1969.pair.com?node_id=528454


in reply to Re^12: Segfault on second (identical) call to a sub
in thread Segfault on second (identical) call to a sub

I wondered that too, but if you unwind the SvPV() macro, you eventually realise that the len parameter passed to it is not used to indicate the length of anything, but rather is used to retrieve the length of the data held in the SV.

Come to think about it ... I think I've seen that alluded to before. Hopefully it will stick with me this time.

Cheers,
Rob
  • Comment on Re^13: Segfault on second (identical) call to a sub