https://bugzilla.redhat.com/show_bug.cgi?id=834226
Bug ID: 834226
QA Contact: extras-qa(a)fedoraproject.org
Severity: high
URL:
https://rt.perl.org/rt3/Public/Bug/Display.html?id=113
730
Version: 16
Priority: unspecified
CC: cweyl(a)alumni.drew.edu, iarnell(a)gmail.com,
jplesnik(a)redhat.com, kasal(a)ucw.cz, lkundrak(a)v3.sk,
mmaslano(a)redhat.com,
perl-devel(a)lists.fedoraproject.org, ppisar(a)redhat.com,
psabata(a)redhat.com, rc040203(a)freenet.de,
tcallawa(a)redhat.com
Assignee: mmaslano(a)redhat.com
Summary: `do' does not clean $@ on success sometimes
Regression: ---
Story Points: ---
Classification: Fedora
OS: Unspecified
Reporter: ppisar(a)redhat.com
Type: Bug
Documentation: ---
Hardware: Unspecified
Mount Type: ---
Status: ASSIGNED
Component: perl
Product: Fedora
The `eval' and `do' functions should clear $@ variable on success. However this
does not happen always:
eval { die "shouldn't see this\n" };
do 'no such file';
warn $@ if $@;
This has been fixed in upstream commit:
commit a3ff80c12c16886edf9acdd3d172798e50defdb3
Author: Eric Brine <ikegami(a)adaelis.com>
Date: Mon Jun 18 14:56:32 2012 -0400
RT#113730 - $@ should be cleared on "do" IO error.
Tested with perl-5.14.2-198.fc16.x86_64. All Fedoras are affected probably.
--
You are receiving this mail because:
You are on the CC list for the bug.