Skip Menu |

This queue is for tickets about the Digest-SHA CPAN distribution.

Report information
The Basics
Id: 75239
Status: resolved
Worked: 15 min
Priority: 0/
Queue: Digest-SHA

People
Owner: mshelor [...] cpan.org
Requestors: zefram [...] fysh.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 5.70
Fixed in: 5.71



Subject: $! gets lost when croaking
Date: Thu, 23 Feb 2012 11:01:43 +0000
To: bug-Digest-SHA [...] rt.cpan.org
From: Zefram <zefram [...] fysh.org>
When Digest::SHA croaks due to an I/O error, it helpfully tries to include $! in the error message. However, it does a "require Carp" before looking at $!, and if Carp wasn't already loaded then this will perform file I/O that overwrites $!. This leads to getting an incorrect error message. Attached patch fixes. -zefram

Message body is not shown because sender requested not to inline it.

Yes, you are quite correct. Thanks for the patch. I'll include the fix with version 5.71, to appear in the next week or so. Mark
Fixed, as of 5.71, in Digest::SHA and Digest::SHA::PurePerl.