-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
NPE from within CoverageModule.convertCoverageToRuby #5111
Milestone
Comments
It looks as this this could happen if a coverage line event is triggered against a source with a null filename, such as might happen evaluating Ruby code through our embedding interface. I'll harden the logic to try to ignore such files. |
Trivial reproduction:
|
headius
added a commit
that referenced
this issue
Mar 26, 2018
headius
added a commit
that referenced
this issue
Mar 26, 2018
Thanks for the incredibly fast turn around! |
kares
added a commit
to kares/jruby
that referenced
this issue
Mar 27, 2018
* jruby-9.1: [fix] cast nsec nanos to long to avoid "overflow" with double value Handle this deprecation differently. Default to Java 9 bytecode for any java.specification.version>1.8. WrapperMethod is still needed for visibility. Revert "Finally eliminate use of WrapperMethod." Eliminate deprecation warnings in test suite. Finally eliminate use of WrapperMethod. Fix most deprecated calls. Handle error when attempting to connect to IP6 with default INET4. Add test_coverage to jruby.index. Add test for null filename in coverage. jruby#5111 Do not attempt to add coverage for null filename. Fixes jruby#5111. Add basic specs for Exception#backtrace_locations. Exception.backtrace_locations should persist and be mutable. Return nil if no backtrace has been captured. Fixes jruby#5099. fix for jruby#5086, RegexpError invalid pattern in look-behind for certain Regexps since 9.1.16.0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After stopping my test Tomcat instance, SimpleCov's
at_exit
hook is attempting to produce a coverage report, but errors out in the process:cat ~/opt/apache-tomcat-8.5.20/logs/localhost.2018-03-26.log
:Environment
master
via gitDarwin brakebills.home 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64
Other relevant info you may wish to add:
0.16.1
5.0.6
RAILS_ENV=test
JAVA_OPTS=-Xmx2g -Djruby.debug.fullTrace=true
Expected Behavior
The text was updated successfully, but these errors were encountered: