=begin
Hi,
In message "Re: [ruby-core:26451] [Bug #2316] [BUG] cfp consistency error"
on Sun, 1 Nov 2009 02:49:11 +0900, Marc-Andre Lafortune redmine@ruby-lang.org writes:
|Looks like the same issue as #2311.
No. According to [ruby-dev:39269], it's caused by dl test, and I
believe this is a bug in test. At least, this one is not related to
r25521 at all. It's far older than that.
dl touches internals directly so that you can crash the interpreter
pretty easily. In this case, the test frees the memory region by
using free() taken from libc, but the region itself is allocated by
ruby_xmalloc(). This mismatch might be the reason of the crash.
But, in that case, I see no reason to have CPtr#free= method at all.
|Solutions until it is resolved:
|- do not run any tests that generate a "wrong number of arguments" error,
|- or use ruby earlier than r25521, or revert that commit locally.
This solution is for #2311 (which I cannot reproduce right now), but
not for this one.
matz.
=end