pag-lab / jchord

Automatically exported from code.google.com/p/jchord
0 stars 0 forks source link

JVM crashes when running dynamic analysis ("dynamic-loop-java") #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I tried to test the dynamic Java analysis (LoopTest) with a simple 
program, but I encountered a fatal error that crashes JVM.

LoopTest: 
http://code.google.com/p/jchord/source/browse/trunk/main/src/java/chord/ana
lyses/snapshot/LoopTest.java

I used the attached program and put it in the /examples directory.

The ant arguments are:  "ant -Dchord.work.dir=examples/dynamic_test -
Dchord.run.analyses=dynamic-loop-java run"

Original issue reported on code.google.com by zflai.cn on 27 May 2010 at 3:53

Attachments:

GoogleCodeExporter commented 9 years ago
Which JVM did you use?  Most likely you used Sun's JVM, which does more 
stringent 
runtime verification of bytecode (even though I pass -Xverify:none) and 
complains 
about instrumentation Chord introduces (e.g., it does not allow any 
instrumentation 
before a call to super(...) in a constructor, but there are many other such 
scenarios).  So if you used Sun's JVM, I don't think I can fix this problem.  
I'd 
recommend using IBM J9 VM (which is lax about runtime verification of bytecode 
once -
Xverify:none is used) on Linux, the platform on which I've tested all dynamic 
analyses I write.  I will still keep this bug open because I've been planning 
to 
document what events trigger fatal errors with Sun's JVM.

Original comment by mayur.naik on 27 May 2010 at 5:22