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

            Bug ID: 834226
        QA Contact: extras...@fedoraproject.org
          Severity: high
               URL: https://rt.perl.org/rt3/Public/Bug/Display.html?id=113
                    730
           Version: 16
          Priority: unspecified
                CC: cw...@alumni.drew.edu, iarn...@gmail.com,
                    jples...@redhat.com, ka...@ucw.cz, lkund...@v3.sk,
                    mmasl...@redhat.com,
                    perl-de...@lists.fedoraproject.org, ppi...@redhat.com,
                    psab...@redhat.com, rc040...@freenet.de,
                    tcall...@redhat.com
          Assignee: mmasl...@redhat.com
           Summary: `do' does not clean $@ on success sometimes
        Regression: ---
      Story Points: ---
    Classification: Fedora
                OS: Unspecified
          Reporter: ppi...@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 <ikeg...@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.
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-de...@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to