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 for Ruby 1.8.6. Since we’re using ubuntu ruby package 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 thoughts on “stack level too deep with rcov on Ubuntu 8.10

  1. Dean R

    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 🙁

  2. btm Post author

    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

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.