Skip Menu |
 

This queue is for tickets about the Clone CPAN distribution.

Report information
The Basics
Id: 2264
Status: resolved
Priority: 0/
Queue: Clone

People
Owner: Nobody in particular
Requestors: patrick.mulvany [...] tuskerdirect.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.13
Fixed in: (no value)



Subject: Clone 0.13 cuases Segfault
Download (untitled) / with headers
text/plain 568b
<a href=http://rt.cpan.org/NoAuth/Bug.html?id=2252>Bug 2252</a> in Hash::Merge has Identified a couple of issues in Clone. perl -e 'use Clone qw(clone); $a = \$b; undef $a; $c = clone $a;' and perl -e 'use Clone qw(clone); $a ={}; undef $a; $c = clone $a;' Cause Seg faults but perl -e 'use Clone qw(clone); undef $a; $c = clone $a;' and perl -e 'use Clone qw(clone); $a =""; undef $a; $c = clone $a;' does not cause this issue. For further information please see Hash::Merge <a href=http://rt.cpan.org/NoAuth/Bug.html?id=2252>Bug 2252</a> Thank you Paddy
Download (untitled) / with headers
text/plain 346b
I just uploaded a new version, Clone-0.14 that fixes this problem. The issue was that when a reference is created and then undef'ed the SV still has a type of RV and so Clone was treating it as an a reference. However, due to the undef the reference was not referencing anything and the attempt to Clone the null pointer resulted in a segfault.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.