Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: [I::C] Why does it segfault?

by ikegami (Patriarch)
on Mar 16, 2012 at 21:25 UTC ( [id://960071]=note: print w/replies, xml ) Need Help??


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)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://960071]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-19 23:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found