stack level too deep with rcov on Ubuntu 8.10

/usr/lib/ruby/1.8/rexml/formatters/pretty.rb:129:in `wrap': stack level too deep (SystemStackError)

I’ve had this issue for a while but just started looking for a solution. There’s a number of REXML workarounds in ‘/usr/lib/ruby/1.8/rcov/report.rb’ of debian rcov package version 0.8.1.2-2 for Ruby 1.8.6. Since we’re using ubuntu ruby package 1.8.7.72-1ubuntu0.1 now, these workarounds aren’t used. The cheap workaround is to edit this file directly and edit line 15 to change 1.8.6 to 1.8.7.

if RUBY_VERSION == "1.8.7" && defined? REXML::Formatters::Transitive

2 Responses to “stack level too deep with rcov on Ubuntu 8.10”


  • This is an awesome fix. Rcov seems poorly maintained and its dependence on rexml is suspect. Are there other coverage tools ? Feels like the only coverage game in town is rcov :(

  • I’m not sure about the other options for coverage tools. I emailed the developer a few days ago asking if it has been orphaned but haven’t heard. If that’s the case I suppose we can patch it in the debian package.

Leave a Reply