Bugs: Browse | Submit New | Admin

[#13803] rcov crashes with -a option

Date:
2007-09-09 14:48
Priority:
3
Submitted By:
Nobody
Assigned To:
Mauricio Julio Fernandez Pradier (batsman)
Category:
None
State:
Open
Summary:
rcov crashes with -a option

Detailed description
rcov version 0.8.0

rcov -a -x /spec/,/external/ spec/unit/*/*rb crashes with
the following output:

/home/homeo/ma/marberi/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/lib/rcov/report.rb:1092:in `create_cross_refs': private method
`sub!' called for nil:NilClass (NoMethodError)
        from /home/homeo/ma/marberi/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/lib/rcov/report.rb:1120:in `call'
        from /home/homeo/ma/marberi/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/lib/rcov/report.rb:1120:in
`create_cross_reference_block'
        from /home/homeo/ma/marberi/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/lib/rcov/report.rb:1117:in `each'
        from /home/homeo/ma/marberi/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/lib/rcov/report.rb:1117:in
`create_cross_reference_block'
        from /home/homeo/ma/marberi/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/lib/rcov/report.rb:1113:in `each'
        from /home/homeo/ma/marberi/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/lib/rcov/report.rb:1113:in
`create_cross_reference_block'
        from /home/homeo/ma/marberi/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/lib/rcov/report.rb:1097:in `create_cross_refs'
        from /home/homeo/ma/marberi/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/lib/rcov/report.rb:1074:in `format_lines'
         ... 8 levels...
        from /home/homeo/ma/marberi/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/lib/rcov.rb:628:in `each'
        from /home/homeo/ma/marberi/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/lib/rcov.rb:628:in `dump_coverage_info'
        from /home/homeo/ma/marberi/lib/ruby/gems/1.8/gems/rcov-0.8.0.2/bin/rcov:405
        from /home/homeo/ma/marberi/lib/ruby/1.8/test/unit.rb:278

Add A Comment: Notepad

Please login


Followup

Message
Date: 2007-11-17 16:48
Sender: Mauricio Julio Fernandez Pradier

It seems this is triggered by a method defined in an extension
(which has got no associated source file).

I have just pushed a small patch to the online darcs repository
that should fix the error you observed. Similar bugs might still
remain, however (in other words, that code was so obviously buggy
that I cannot trust myself anymore).

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
resolution_idNone2007-11-17 16:48batsman
assigned_tonone2007-11-17 16:48batsman