ruby1.8: tdiary's amazon.rb segfault in the cause of ruby's bug
- Forwarded from http://bugs.debian.org/533329
tdiary's amazon.rb segfault in the cause of ruby's bug.
(tdiary/lang/ja.rb):36:[BUG] Segmentation fault ruby 1.8.7 (2009-06-08 patchlevel 173) [i486-linux]
It is reported to tdiary's BTS (in Japanese).
It is investigated by hiraku, and his blog is in Japanese.
Here is simply reproduce one liner.
ruby -ve "C=0; o=''; o.instance_eval('def m; C; end'); o.clone.m"
And hiraku points that this bug is due to below patch.
It is introduced to ruby1.8 184.108.40.206-3 and dropped in ruby1.8 220.127.116.11-1
because of the upstream's inclusion.
This bug is fixed in ruby1.8 development branch.
But I do not know what revision fixes it... Sorry.