in reply to Re: [I::C] Why does it segfault?
in thread [I::C] Why does it segfault?

My guess would be this is because the SV created with nevSV(0) doesn't yet have a LEN field.

It doesn't have a body at all.

Using newSV_type(SVt_PV) instead fixed the issue (AFAICT), i.e.

Shorter: [ nevermind, that'll copy the vector instead of uisng it. ]

newSVpvn(vector, bytes)