[regression] --profile mode is completely broken
------------------------------------------------
Key: JRUBY-4676
URL: http://jira.codehaus.org/browse/JRUBY-4676
Project: JRuby
Issue Type: Bug
Components: Compiler
Affects Versions: JRuby 1.4
Reporter: Vladimir Sizikov
Priority: Critical
Fix For: JRuby 1.5
Launching JRuby with --profile option always fails:
{noformat}
Running with instrumented profiler
profiler: on
remote: off
port: 15599
thread-depth: -1
thread.compact.threshold.ms: 10
max-method-count: 50
method.compact.threshold.ms: 10
file: ./profile.txt
track.object.alloc: off
output: text
debug: off
profiler-class: com.mentorgen.tools.profile.runtime.Profile
output-method-signatures: no
clock-resolution: ms
output-summary-only: yes
exclude:null
Accept ClassLoader: org.jruby.util.JRubyClassLoader
Accept ClassLoader: org.jruby.util.ClassCache$OneShotClassLoader
ClassLoaderFilter.1: null
Using the generic class loader filter.
Java Interactive Profiler: starting
------------------
warning: could not compile:
D:/work/jruby-dev/jruby/lib/ruby/site_ruby/shared/builtin/core_ext/symbol.rb
because of: "Extra bytes at the end of class file
D_3a_/work/jruby_minus_dev/jruby/lib/ruby/site_ruby/
shared/builtin/core_ext/symbol"
java.lang.ClassFormatError: Extra bytes at the end of class file
D_3a_/work/jruby_minus_dev/jruby/lib/ruby/site_ruby/shared/builtin/core_ext/symbol
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at org.jruby.util.JRubyClassLoader.defineClass(JRubyClassLoader.java:39)
at
org.jruby.compiler.impl.StandardASMCompiler.loadClass(StandardASMCompiler.java:191)
at org.jruby.Ruby.tryCompile(Ruby.java:608)
at org.jruby.Ruby.tryCompile(Ruby.java:576)
at org.jruby.Ruby.compileAndLoadFile(Ruby.java:2553)
at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:53)
at
org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:671)
at org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:314)
at org.jruby.runtime.load.LoadService.require(LoadService.java:357)
at org.jruby.Ruby.initBuiltins(Ruby.java:1446)
at org.jruby.Ruby.init(Ruby.java:1047)
at org.jruby.Ruby.newInstance(Ruby.java:172)
at org.jruby.Main.run(Main.java:217)
at org.jruby.Main.run(Main.java:128)
at org.jruby.Main.main(Main.java:97)
Error, could not compile; pass -J-Djruby.jit.logging.verbose=true for more
details
:1: load error: builtin/core_ext/symbol -- java.lang.NullPointerException: null
(LoadError)
...internal jruby stack elided...
from (unknown).(unknown)(:1)
Controller -- shuttingdown
{noformat}
Bisecting shows that this is a regression caused by the following commit:
{code}
commit d7fea1e04bd0e6deae6535f4d2ff1a882a4383a9
Author: Charles Oliver Nutter <[email protected]>
Date: Mon Feb 1 02:21:51 2010 -0600
Add additional full-path information to debugging information for JIT, to
enable debugging in IDEs.
{code}
Charlie says that this simple change came from IntelliJ guys.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email