Project

General

Profile

Actions

Bug #890

closed

Segmentation fault when block is passed to yield

Added by tilman (Tilman Giese) almost 16 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
Backport:
[ruby-core:20583]

Description

=begin
Source

def m
yield 5 do
puts 'yield with block'
end
end

Output

./ruby: [BUG] Segmentation fault
ruby 1.9.1 (2008-12-16 revision 20768) [x86_64-linux]

-- control frame ----------
c:0002 p:1906655416 s:0004 b:0004 l:000003 d:000003 TOP
c:0001 p:0000 s:0002 b:0002 l:000001 d:000001 TOP

-- backtrace of native function call (Use addr2line) --
0xb1472995580
0xb14729caba4
0xb14729caca6
0xb147293eaee
0x2d60d7763fe0
0xb14728ef3a5
0xb14728fbaa6
0xb14729064ab
0xb147299c66d
0xb14728ef6d3
0xb14728efb2c
0xb147293c494
0xb14728b54fb
0xb147293cacb
0xb147293d60e
0xb147299194c
0xb147293d9bd
0xb14728b5f4a
0xb14728b3d37
0x2d60d8258b76
0xb14728b3c39

Aborted
=end

Actions

Also available in: Atom PDF

Like0
Like0