[Bug 834226] New: `do' does not clean $@ on success sometimes

bugzilla at redhat.com bugzilla at redhat.com
Thu Jun 21 09:26:58 UTC 2012


https://bugzilla.redhat.com/show_bug.cgi?id=834226

            Bug ID: 834226
        QA Contact: extras-qa at fedoraproject.org
          Severity: high
               URL: https://rt.perl.org/rt3/Public/Bug/Display.html?id=113
                    730
           Version: 16
          Priority: unspecified
                CC: cweyl at alumni.drew.edu, iarnell at gmail.com,
                    jplesnik at redhat.com, kasal at ucw.cz, lkundrak at v3.sk,
                    mmaslano at redhat.com,
                    perl-devel at lists.fedoraproject.org, ppisar at redhat.com,
                    psabata at redhat.com, rc040203 at freenet.de,
                    tcallawa at redhat.com
          Assignee: mmaslano at redhat.com
           Summary: `do' does not clean $@ on success sometimes
        Regression: ---
      Story Points: ---
    Classification: Fedora
                OS: Unspecified
          Reporter: ppisar at 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 at 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.



More information about the perl-devel mailing list