It is more likely a ruby internal problem, so, you may get more helpful tips if you write to the ruby email lists about this.
If you want to, you can try debug a live Ruby process with
http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:ruby_debug