Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the autobox CPAN distribution.

Report information
The Basics
Id: 55652
Status: resolved
Priority: 0/
Queue: autobox

People
Owner: CHOCOLATE [...] cpan.org
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.55
Fixed in: (no value)



Subject: Use of @_ may have broken autoboxing
I've run into an esoteric bug that causes the autobox magic to disappear. It appears that using @_ to store references to the alias, rather than a copy, of the invocant scalar causes the autoboxing magic to sometimes fail. Its fleeting. Sometimes it will fail on only numbers but work on strings. Sometimes the test will work when run manually but fail in prove. There's probably some memory corruption going on. I've reduced it down to the attached program. It fails on 5.10.1 on OS X. I wouldn't be surprised if it requires some fiddling to make it fail on other machines. $ perl ~/tmp/test.plx mo called Can't call method "mo" without a package or object reference at /Users/schwern/tmp/test.plx line 12. Let me know if there's anything you need to fix this, including a login. Its blocking http://github.com/schwern/perl5i/issues/issue/89
Subject: test.plx
Download test.plx
application/octet-stream 143b

Message body not shown because it is not plain text.

Hi, Schwern. Do you have a 5.10.0 lying around? Or any earlier perl? If so, could you test against that? Cheers, chocolateboy.
Never mind. I can reproduce it on Linux back to perl 5.8.0.
Thanks for the clear test case. This should be fixed in autobox 2.60. chocolateboy