Project

General

Profile

Actions

Bug #5720

closed

Exceptions can be caused via eval that evade exception handling

Added by gabrielg (Gabriel Gironda) over 12 years ago. Updated about 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
1.9.2-p290, 1.9.3-p0, 1.9.3-HEAD
[ruby-core:41520]

Description

While poking at #5719, I discovered it's possible to cause an exception via Kernel#eval that leaks through any surrounding rescue block. Please see the gist for details. I tested against 1.9.2-p290, 1.9.3-p0, and HEAD of the 1.9.3 branch.

https://gist.github.com/ec12e41efda564ccac7a

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0