This has been driving me nuts and I’ve spent too much time on it.
I’m running rcov under cruisecontrol.rb on OS X just fine.
Both my slices at slicehost fail to do so and report seemingly random
segmentation faults and glibc errors. Those slices are running Debian
Etch, and Ubuntu Hasty Heron.
All the tests pass on all platforms if rcov isn’t involved.
Here’s a sample output:
–run-rake-task=test:functionals --rcov-params=" -x
“^(?!(app/controllers))”" rcov -o
-T -x “rubygems/,rcov” --rails -x “^(?!(app/controllers))” -Ilib:test
/home/stephen/.cruise/projects/nexttesting/work) Loaded suite
[BUG] Segmentation fault ruby 1.8.6 (2008-03-03) [x86_64-linux] rake
aborted! Command failed with status (): [rcov -o
"/home/stephen/.cruise/projects/ne…] (See full trace by running task
with --trace) rake aborted! Command failed with status (1):
rcov 0.8.1.2 2007-11-22
ruby 1.8.6 (2007-09-23 patchlevel 110) [x86_64-linux] (on the Ubuntu
ruby 1.8.6 (2008-03-03 patchlevel 114) [x86_64-linux] (on the Debian
ruby 1.8.6 (2007-09-24 patchlevel 111) [universal-darwin9.0] (on OS X)
I’ve done a number of experiments and believe I’ve ruled out bad code.
I’ve also tried different versions of rcov, rails and ruby. Upping the
memory limit on one of the slices from 256 MB to 512 MB did change the
output behavior, but the error came back anyhow.
I see where I should post a bug to http://eigenclass.org/hiki/rcov-0.8.1
but I can’t seem to find how to post to that wiki!
Like I said, I’ve spent too long on this. It’s driving me crazy so any
advice is greatly appreciated!