Project

General

Profile

Actions

Bug #1246

closed

Segfault with Symbol#to_proc and yield without argument

Added by manveru (Michael Fellinger) about 15 years ago. Updated almost 13 years ago.

Status:
Closed
Assignee:
-
ruby -v:
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
[ruby-core:22673]

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

Actions #1

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

Also available in: Atom PDF

Like0
Like0