Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

jEdit instrumentating not working #20

Open
kajdreef opened this issue Aug 3, 2016 · 2 comments
Open

jEdit instrumentating not working #20

kajdreef opened this issue Aug 3, 2016 · 2 comments

Comments

@kajdreef
Copy link
Member

kajdreef commented Aug 3, 2016

After instrumenting jEdit with Blinky we are seeing that it is actually instrumenting the methods, but for some reason are missing the actual Instruction Execution Event.

So the Instruction events and method declarations are there, but instruction Execution events are missing. Running on other applications seems to work fine. Here is the recorded trace jedit.txt.

The used command for running jEdit with blinky is:

java -Xbootclasspath/p:"/Users/kajdreef/Documents/Programmeren/Thesis/Projects/blinky/blinky-core/target/blinky-core-0.0.1-SNAPSHOT-jar-with-dependencies.jar"  -javaagent:"/Users/kajdreef/Documents/Programmeren/Thesis/Projects/blinky/blinky-core/target/blinky-core-0.0.1-SNAPSHOT-jar-with-dependencies.jar"='e,calldepth,frames' -jar build/jedit.jar > jedit.trc

Also I used the current version of blinky (0c47bba), but it seems to happen also with previous versions. Any idea what is the cause of this?

(@jycamus90 @CharlesFengY)

@VijayKrishna
Copy link
Member

So, jEdit loads up something called the beanshell parser, while loading. it uses this beanshell goop to run any scripts in jEdit (for things like startup scripts and macros). I mention all this because the one of the earliest classes to get instrumented (and i am assuming that this is load-time instrumentation) is the UtilEvalError class in the bsh (bean shell) package. UtilEvalError is essentially some from of an internal runtime error. So, it makes me wonder, if jEDit running at all, without the instrumentation?

Also, can you share with me the exact jedit.jar file that you are using when you say -jar build/jedit.jar in your terminal command? Pointing out the jEdit version is useful, but it would help in reproducing this issue if i have the same binaries. :)

@kajdreef
Copy link
Member Author

kajdreef commented Aug 3, 2016

Here is the jedit.jar file. And yes jEdit is running without the instrumentation. if we just run java -jar jedit.jar then I'm able to run jEdit. Also with Blinky jEdit starts up, but it doesn't register any Instruction Execution Events.

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

No branches or pull requests

2 participants