Here follow two versions of a Rake task, which was originally created to use with CruiseControl.rb continuous integration.
When running the first, I get a reliable segfault whenever RSpec encounters any sort of error (typo in my code, misnamed/missing file, etc.) With the second, it's been reduced to a Heisenbug of sorts; it only repeats the behaviour once in every 5 to 8 opportunities, but when it does, repeatedly running the Rake task will produce the segfault exactly 5 times and then it stops. Very weird.