Issue #2103 has been updated by Aman Gupta.


This bug causes issues with the mysql gem as well, which calls rb_thread_start_timer() from ext/mysql.c:

$ cat mysql_test.rb 
require 'rubygems'
require 'mysql'
Mysql.connect('prudence', 'root')
1_000_000.times{ 1+1 }
puts 'done'

---

$ ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [x86_64-linux]

$ time ruby mysql_test.rb 
done

real	0m0.616s
user	0m0.610s
sys	0m0.010s

---

$ ruby -v
ruby 1.8.7 (2009-09-11 patchlevel 202) [x86_64-linux]

$ time ruby mysql_test.rb 
Virtual timer expired

real	0m0.106s
user	0m0.080s
sys	0m0.020s

----------------------------------------
http://redmine.ruby-lang.org/issues/show/2103

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