[DiSL-user] Debugging
Alessio Gambi
gambi at st.cs.uni-saarland.de
Thu Apr 27 09:21:22 CEST 2017
Sorry I forgot to show the stack trace of my exception:
[exec] dislserver: error instrumenting crystal/client/PreferencesGUIEditorFrameTest: java.lang.ArrayIndexOutOfBoundsException: 1
[exec] at org.objectweb.asm.ClassReader.readFrameType(ClassReader.java:2227)
[exec] at org.objectweb.asm.ClassReader.readFrame(ClassReader.java:2165)
[exec] at org.objectweb.asm.ClassReader.readCode(ClassReader.java:1356)
[exec] at org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1032)
[exec] at org.objectweb.asm.ClassReader.accept(ClassReader.java:708)
[exec] at org.objectweb.asm.ClassReader.accept(ClassReader.java:521)
[exec] at ch.usi.dag.disl.util.ClassNodeHelper.unmarshal(ClassNodeHelper.java:57)
[exec] at ch.usi.dag.disl.DiSL.instrument(DiSL.java:430)
[exec] at ch.usi.dag.dislserver.RequestProcessor.process(RequestProcessor.java:71)
[exec] at ch.usi.dag.dislserver.DiSLServer$ConnectionHandler.run(DiSLServer.java:99)
[exec] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[exec] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[exec] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[exec] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[exec] at java.lang.Thread.run(Thread.java:745)
In the meanwhile, I also rebuild DiSL with newer versions of asm (5.0.4, 5.1, 5.2) with the same result.
— Alessio
> On 27 Apr 2017, at 08:22, Alessio Gambi <gambi at st.cs.uni-saarland.de> wrote:
>
> Hi DiSL-ers,
>
> I am getting the following exception [1] while running an application instrumented both with my code and with DiSL using disl.py.
>
> I cannot understand why this is happening and would like to debug a bit around; however, I am not sure how to do that.
>
> My idea was to enable remote debugging on a specific port and setup Eclipse to listen to it … However, there’s 3 JVM (client, server, and shadowVM),
> which one should I debug ?
>
> An example of the command line to invoke disl.py for this specific setup would be appreciated as well.
>
> Best
>
> — Alessio
More information about the Disl-user
mailing list