Issue #9110 has been updated by nagachika (Tomoyuki Chikanaga).

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

r43685, r43690 and r43705 were backported to ruby_2_0_0 at r44325.
----------------------------------------
Bug #9110: double free or corruption error at_exit with callcc
https://bugs.ruby-lang.org/issues/9110#change-43807

Author: Glass_saga (Masaki Matsushita)
Status: Closed
Priority: Normal
Assignee: Glass_saga (Masaki Matsushita)
Category: core
Target version: 
ruby -v: ruby 2.1.0dev (2013-11-14 trunk 43675) [x86_64-linux]
Backport: 1.9.3: REQUIRED, 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 } }


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