Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException with JRuby 1.7.17 running rspec & simplecov in debug mode #2296

Closed
phrinx opened this issue Dec 9, 2014 · 2 comments
Closed
Assignees
Milestone

Comments

@phrinx
Copy link

@phrinx phrinx commented Dec 9, 2014

I've upgraded from jruby 1.7.16 to 1.7.17 today and ran into a NPE which seems to be regression in the latest release.

Example:

|jruby-1.7.17@debug_issue| thq-m-dkoeh01 in ~/workspace/debug_issue_with_jruby_1_7_17
 ±  |master ✓| → rspec test.rb --debug
 /Users/dkoehler/.rvm/gems/jruby-1.7.17@debug_issue/gems/simplecov-0.9.1/lib/simplecov.rb:31 warning: tracing (e.g. set_trace_func) will not capture all events without --debug flag
 /Users/dkoehler/.rvm/gems/jruby-1.7.17@debug_issue/gems/ruby-debug-base-0.10.4-java/lib/ruby-debug-base.rb:214 warning: tracing (e.g. set_trace_func) will not capture all events without --debug flag
 Ruby.java:3065:in `callEventHooks': java.lang.NullPointerException
    from ASTInterpreter.java:239:in `callTraceFunction'
    from NewlineNode.java:101:in `interpret'
    from EnsureNode.java:98:in `interpret'
    from ASTInterpreter.java:74:in `INTERPRET_METHOD'
    from InterpretedMethod.java:268:in `call'
    from DefaultMethod.java:235:in `call'
    from CachingCallSite.java:366:in `cacheAndCall'
    from CachingCallSite.java:238:in `call'
    from FCallThreeArgNode.java:40:in `interpret'
    from CallNoArgNode.java:60:in `interpret'
    from DAsgnNode.java:110:in `interpret'
    from NewlineNode.java:105:in `interpret'
    from BlockNode.java:71:in `interpret'
    from ASTInterpreter.java:112:in `INTERPRET_BLOCK'
    from Interpreted19Block.java:206:in `evalBlockBody'
    from Interpreted19Block.java:194:in `yield'
    from Interpreted19Block.java:125:in `call'
    from Block.java:101:in `call'
    from RubyProc.java:290:in `call'
    from RubyProc.java:228:in `call'
    from Ruby.java:3157:in `tearDown'
    from Ruby.java:3141:in `tearDown'
    from Main.java:294:in `internalRun'
    from Main.java:217:in `run'
    from Main.java:197:in `main'     

To reproduce this error, I've create a minimal project:https://github.com/phrinx/debug_issue_jruby_1_7_17.

It seems the culprit here is 'simplecov' commenting out the block at https://github.com/phrinx/debug_issue_jruby_1_7_17/blob/master/spec/spec_helper.rb#L3 does not reproduce the error.

@headius
Copy link
Member

@headius headius commented Dec 10, 2014

We would like to release 1.7.18 very soon, so let us know if @mkristian can't get to it.

mkristian added a commit that referenced this issue Dec 11, 2014
@mkristian
Copy link
Member

@mkristian mkristian commented Dec 11, 2014

@headius will add a small test case somewhere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants