Actions
Backport #2728
closedruby segfaults returning from dynamically defined method in ensure block
Status:
Closed
Assignee:
Description
=begin
As best as I can work out, the conditions to reproduce this crash are:
- A begin/ensure block yields to a block passed by Enumerable (maybe passed by any compiled function?).
- Control is forced to the ensure block from 'break' being called from Enumerable.
- The ensure block contains a call to a dynamically defined method (created using define_method).
- The dynamically defined method runs.
- Instead of returning from the dynamically defined method, ruby segfaults (on windows XP), or bus errors (on OS X).
Happens on both Windows XP and Mac OS X (10.5.8). Script to reproduce and output are attached.
=end
Files
Actions
Like0
Like0Like0Like0Like0Like0