Project

General

Profile

Actions

Bug #11254

closed

[BUG] no corresponding cfp

Added by nobu (Nobuyoshi Nakada) over 9 years ago. Updated over 9 years ago.

Status:
Closed
Target version:
-
[ruby-core:69548]

Description

2.1以降、以下のコードが[BUG] rb_vm_search_cf_from_ep: no corresponding cfpになります。

empty = Object.new
class << empty
  attr_reader :block
  def each(&block)
    @block = block
    self
  end
end
empty.first
empty.block.call

Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #18475: Yielding an element for Enumerator in another thread dumps coreClosedActions
Actions #1

Updated by nobu (Nobuyoshi Nakada) over 9 years ago

  • Status changed from Assigned to Closed

Applied in changeset r50850.


vm.c: break from orphan block

  • vm.c (rb_vm_search_cf_from_ep): break from orphan block is
    possible condition, but not [BUG].
    [ruby-core:69548] [Bug #11254]

Updated by nagachika (Tomoyuki Chikanaga) over 9 years ago

  • Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE

Backported into ruby_2_2 at r51129.

Actions #3

Updated by mame (Yusuke Endoh) almost 3 years ago

  • Related to Bug #18475: Yielding an element for Enumerator in another thread dumps core added
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0