Actions
Bug #1246
closedSegfault with Symbol#to_proc and yield without argument
Status:
Closed
Assignee:
-
ruby -v:
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
Description
=begin
Ruby 1.8.7 should raise an ArgumentError instead of segfaulting:
sigma ~ % ruby -ve 'def a; yield; end; a(&:p)'
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
-e:1: [BUG] Segmentation fault
sigma ~ % ruby19 -ve 'def a; yield; end; a(&:p)'
ruby 1.9.2dev (2009-02-13 trunk 22277) [x86_64-linux]
-e:1:in a': no receiver given (ArgumentError) from -e:1:in
'
=end
Updated by nobu (Nobuyoshi Nakada) about 15 years ago
- Status changed from Open to Closed
=begin
Already fixed at r20578, and backported at patchlevel128.
=end
Actions
Like0
Like0