Skip Menu |

This queue is for tickets about the Clone CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: REHSACK [...] cpan.org
Cc:
AdminCc:

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



Subject: clone seems to fail with perl 5.10

Message body is not shown because it is too large.

I could (after adding a trace output which hash-item is currently cloned) see that with perl 5.10 a new magic became introduced: '@'. Let it pass it through - works fine. Maybe the same special handling may be needed to avoid same problem for PERL_MAGIC_rhash? /Jens
Download clone-fix.trace
application/octet-stream 28.8k

Message body not shown because it is not plain text.

--- Clone.xs.orig 2008-07-12 18:49:01.000000000 +0200 +++ Clone.xs 2008-11-15 14:49:10.000000000 +0100 @@ -52,6 +52,7 @@ while (next = hv_iternext (self)) { SV *key = hv_iterkeysv (next); + TRACEME(("clone item %s\n", SvPV_nolen(key) )); hv_store_ent (clone, key, sv_clone (hv_iterval (self, next), recur), 0); } @@ -251,6 +252,9 @@ case '<': /* PERL_MAGIC_backref */ continue; break; + case '@': /* PERL_MAGIC_arylen_p */ + continue; + break; default: obj = sv_clone(mg->mg_obj, -1); }
Download clone.trace
application/octet-stream 27.8k

Message body not shown because it is not plain text.

I applied the attached patch to Clone-0.30 and uploaded it to CPAN.