relevance / rcov

The new home of RCov on GitHub
https://github.com/relevance/rcov
Other
408 stars 64 forks source link

Use of Singelton causes with --xrefs, --callsites, --annotate, and --failure-threshold 50 options #70

Open jordandm opened 13 years ago

jordandm commented 13 years ago

If I use the --xrefs, --callsites, --annotate, or --failure-threshold 50 options, rcov (rcov 0.9.8 2010-02-28) throws an exception and I get the following stack dump:

/Users/jordan/.rvm/gems/ruby-1.8.7-p334@ooyala-web-rails/gems/rcov-0.9.9/bin/rcov:350:in dump': singleton class can't be dumped (TypeError) from /Users/jordan/.rvm/gems/ruby-1.8.7-p334@ooyala-web-rails/gems/rcov-0.9.9/bin/rcov:350:inrcov_save_aggregate_data' from /Users/jordan/.rvm/gems/ruby-1.8.7-p334@ooyala-web-rails/gems/rcov-0.9.9/bin/rcov:349:in open' from /Users/jordan/.rvm/gems/ruby-1.8.7-p334@ooyala-web-rails/gems/rcov-0.9.9/bin/rcov:349:inrcov_save_aggregate_data' from /Users/jordan/.rvm/gems/ruby-1.8.7-p334@ooyala-web-rails/gems/rcov-0.9.9/bin/rcov:432 from /Users/jordan/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/test/unit.rb:279

abedra commented 12 years ago

Can you please add some sample code that can reproduce this? Also, what version of OSX are you running, and what version of gcc?