It looks to me like you do nothing to upgrade the bare SV to be of sufficient type to hold a PV. But then assert(SvTYPE(sv) >= SVt_PV); should have fired. But perhaps you are building in an environment that doesn't have assert()s enabled.
Also, the ref you return on the stack is not mortalized which probably means a memory leak.
Update: Yep, Eliya's reply confirms my first paragraph.
- tye
In reply to Re: [I::C] Why does it segfault? (NDEBUG?)
by tye
in thread [I::C] Why does it segfault?
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |