-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cv_clone() SEGV without helpful message if called on already-cloned sub #15999
Comments
From @leonerdCreated by @leonerdThis is a bug report for perl from leonerd@leonerd.org.uk, ----------------------------------------------------------------- On closer inspection it appears that S_cv_clone_pad() is calling if ((CvCLONE(outside) && ! CvCLONED(outside)) when outside==NULL and thus receives SEGV. It gets into this situation because outside = CvOUTSIDE(proto); sets outside=NULL which then causes CvCLONE()'s call to CvFLAGS() to SEGV. If my calling of cv_clone() is allowable, then perhaps this test should just outside && ... first. If not, maybe it could have some assert test on the value of 'outside' Thanks, Perl Info
|
From @cpansproutOn Tue, 06 Jun 2017 10:04:18 -0700, leonerd@leonerd.org.uk wrote:
The code was not written with such use in mind, but if it is makes hard things possible and can be tested easily enough with XS::APItest then there is no reason it could not be made allowable (assuming someone comes forward with a patch).
-- Father Chrysostomos |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#131519 (status was 'open')
Searchable as RT131519$
The text was updated successfully, but these errors were encountered: