# Rcov segmentation faults on Debian and Ubuntu (not on OS X)

**URL:** <https://www.ruby-forum.com/t/rcov-segmentation-faults-on-debian-and-ubuntu-not-on-os-x/136969>\
**Category:** Rails\
**Created:** [May 7, 2008, 8:39pm UTC](https://www.ruby-forum.com/t/rcov-segmentation-faults-on-debian-and-ubuntu-not-on-os-x/136969 "2008-05-07T20:39:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/96bed5/32.png) [@stephen](https://www.ruby-forum.com/u/stephen)\
**Post date:** [May 7, 2008, 8:39pm UTC](https://www.ruby-forum.com/t/rcov-segmentation-faults-on-debian-and-ubuntu-not-on-os-x/136969/1 "2008-05-07T20:39:30Z")

</div>

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:

# /usr/bin/ruby1.8 “/home/stephen/.cruise/projects/nexttesting/work/vendor/plugins/rails\_rcov/tasks/rails\_rcov.rake” –run-rake-task=test:functionals --rcov-params=" -x "^(?!(app/controllers))"" rcov -o “/home/stephen/.cruise/projects/nexttesting/work/coverage/functionals” -T -x “rubygems/_,rcov_” --rails -x “^(?!(app/controllers))” -Ilib:test “/var/lib/gems/1.8/gems/rake-0.8.1/lib/rake/rake\_test\_loader.rb” “test/functional/nti\_results\_controller\_test.rb” “test/functional/left\_nav\_bar\_test.rb” “test/functional/skating\_results\_controller\_test.rb” “test/functional/results\_xml\_files\_controller\_test.rb” “test/functional/events\_controller\_test.rb” “test/functional/jerseys\_controller\_test.rb” “test/functional/positions\_controller\_test.rb” “test/functional/rfids\_controller\_test.rb” “test/functional/athletes\_controller\_test.rb” (in /home/stephen/.cruise/projects/nexttesting/work) Loaded suite /usr/bin/rcov Started …/home/stephen/.cruise/projects/nexttesting/work/vendor/rails/actionpack/lib/action\_controller/routing/route\_set.rb:292: [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): [/usr/bin/ruby1.8 "/home/stephen/.cruise/pr…]

rcov 0.8.1.2 2007-11-22  
Rails 2.0.2  
ruby 1.8.6 (2007-09-23 patchlevel 110) [x86\_64-linux] (on the Ubuntu  
slice)  
ruby 1.8.6 (2008-03-03 patchlevel 114) [x86\_64-linux] (on the Debian  
slice)  
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 see where I should post a bug to [eigenclass.org](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!

Thanks!  
-Steve-
