Issue #9110 has been updated by Usaku NAKAMURA.

Backport changed from 1.9.3: REQUIRED, 2.0.0: DONE to 1.9.3: DONE, 2.0.0: DONE

backported into ruby_1_9_3 at r44740.

----------------------------------------
Bug #9110: double free or corruption error at_exit with callcc
https://bugs.ruby-lang.org/issues/9110#change-44679

* Author: Masaki Matsushita
* Status: Closed
* Priority: Normal
* Assignee: Masaki Matsushita
* Category: core
* Target version: 
* ruby -v: ruby 2.1.0dev (2013-11-14 trunk 43675) [x86_64-linux]
* Backport: 1.9.3: DONE, 2.0.0: DONE
----------------------------------------
Following code causes double free or corruption error.

require "continuation"

c = nil
at_exit { c.call }
at_exit { callcc {|_c| c = _c } }

---Files--------------------------------
patch.diff (1.25 KB)


-- 
http://bugs.ruby-lang.org/