Giter VIP home page Giter VIP logo

Comments (15)

jon-bell avatar jon-bell commented on August 15, 2024

Can I have the output of java -version ?

from phosphor.

chenbihuan avatar chenbihuan commented on August 15, 2024

Hi Jon,

I am using HotSpot 1.8.0_91-b14, 64-bit version.

from phosphor.

jon-bell avatar jon-bell commented on August 15, 2024

While I am working through this (it's going to be a bit of a while - I am on vacation until Aug 9 but will try to poke around at it before I get back), are you OK with using an older ( 1.8.0 <= u66) version of Java?

(Edit - never mind, I spoke to soon :))

from phosphor.

chenbihuan avatar chenbihuan commented on August 15, 2024

Ok. Thanks, Jon.

from phosphor.

chenbihuan avatar chenbihuan commented on August 15, 2024

It seems the problem remains for the new java version...

java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

from phosphor.

jon-bell avatar jon-bell commented on August 15, 2024

Was this not fixed on Jul 25 or did it regress?

from phosphor.

chenbihuan avatar chenbihuan commented on August 15, 2024

It regressed.

from phosphor.

jon-bell avatar jon-bell commented on August 15, 2024

I'm not able to reproduce.
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

I added a test case based on the code above in e7ce551. Does this test pass in your environment? If so, what is a failing test case?

from phosphor.

chenbihuan avatar chenbihuan commented on August 15, 2024

This is strange. The test case above failed on my machine.
Did you enable the controlTrack flag?

from phosphor.

jon-bell avatar jon-bell commented on August 15, 2024

Yes. You are running the test with mvn verify?

from phosphor.

chenbihuan avatar chenbihuan commented on August 15, 2024

The GeneralImplicitITCase passed with mvn install, but failed when using cmd lines...

Exception in thread "main" java.lang.BootstrapMethodError: call site initialization exception
    at java.lang.Throwable.fillInStackTrace$$PHOSPHORTAGGED(Throwable.java)
    at java.lang.Throwable.fillInStackTrace$$PHOSPHORTAGGED(Throwable.java:783)
    at java.lang.Throwable.<init>(Throwable.java:287)
    at java.lang.Error.<init>(Error.java:88)
    at java.lang.LinkageError.<init>(LinkageError.java:67)
    at java.lang.BootstrapMethodError.<init>(BootstrapMethodError.java:66)
    at java.lang.invoke.CallSite.makeSite$$PHOSPHORTAGGED(CallSite.java:341)
    at java.lang.invoke.MethodHandleNatives.linkCallSiteImpl$$PHOSPHORTAGGED(MethodHandleNatives.java:307)
    at java.lang.invoke.MethodHandleNatives.linkCallSite$$PHOSPHORTAGGED(MethodHandleNatives.java:297)
    at java.lang.invoke.MethodHandleNatives.linkCallSite(MethodHandleNatives.java)
    at java.io.ObjectInputStream.<clinit>(ObjectInputStream.java:3578)
    at phosphor.test.Test2.main$$PHOSPHORTAGGED(Test2.java:20)
    at phosphor.test.Test2.main(Test2.java)
Caused by: java.lang.AbstractMethodError: java.lang.invoke.BoundMethodHandle.fieldCount$$PHOSPHORTAGGED(Ledu/columbia/cs/psl/phosphor/struct/ControlTaintTagStack;Ledu/columbia/cs/psl/phosphor/struct/TaintedIntWithObjTag;)Ledu/columbia/cs/psl/phosphor/struct/TaintedIntWithObjTag;
    at java.lang.Throwable.fillInStackTrace$$PHOSPHORTAGGED(Throwable.java)
    at java.lang.Throwable.fillInStackTrace$$PHOSPHORTAGGED(Throwable.java:783)
    at java.lang.Throwable.<init>(Throwable.java:265)
    at java.lang.Error.<init>(Error.java:70)
    at java.lang.LinkageError.<init>(LinkageError.java:55)
    at java.lang.IncompatibleClassChangeError.<init>(IncompatibleClassChangeError.java:55)
    at java.lang.AbstractMethodError.<init>(AbstractMethodError.java:56)
    at java.lang.AbstractMethodError.<init>(AbstractMethodError.java)
    at java.lang.invoke.BoundMethodHandle.tooComplex$$PHOSPHORTAGGED(BoundMethodHandle.java:127)
    at java.lang.invoke.BoundMethodHandle.rebind$$PHOSPHORTAGGED(BoundMethodHandle.java:120)
    at java.lang.invoke.MethodHandleImpl.makePairwiseConvertByEditor$$PHOSPHORTAGGED(MethodHandleImpl.java:232)
    at java.lang.invoke.MethodHandleImpl.makePairwiseConvert$$PHOSPHORTAGGED(MethodHandleImpl.java:194)
    at java.lang.invoke.MethodHandleImpl.makePairwiseConvert$$PHOSPHORTAGGED(MethodHandleImpl.java:380)
    at java.lang.invoke.MethodHandle.asTypeUncached$$PHOSPHORTAGGED(MethodHandle.java:776)
    at java.lang.invoke.MethodHandle.asType$$PHOSPHORTAGGED(MethodHandle.java:761)
    at java.lang.invoke.Invokers.checkGenericType$$PHOSPHORTAGGED(Invokers.java:321)
    at java.lang.invoke.Invokers.checkGenericType(Invokers.java)
    at java.lang.invoke.CallSite.makeSite$$PHOSPHORTAGGED(CallSite.java:302)
    ... 6 more

from phosphor.

jon-bell avatar jon-bell commented on August 15, 2024

So how are you running it? Can I have exact steps to reproduce?

from phosphor.

chenbihuan avatar chenbihuan commented on August 15, 2024

Here are the exact steps.

Instrument the jre

java -jar Phosphor-0.0.2-SNAPSHOT.jar -controlTrack /usr/lib/jvm/java-8-oracle/jre jre-inst-p-cf
chmod +x jre-inst-p-cf/bin/*

Instrument the target program

java -jar Phosphor-0.0.2-SNAPSHOT.jar -controlTrack phosphor-test.jar lib-inst-p-cf

Run the target program

jre-inst-p-cf/bin/java -Xbootclasspath/a:Phosphor-0.0.2-SNAPSHOT.jar -cp lib-inst-p-cf/phosphor-test.jar phosphor.test.Test2

And get the exception...

Exception in thread "main" java.lang.BootstrapMethodError: call site initialization exception
    at java.lang.Throwable.fillInStackTrace$$PHOSPHORTAGGED(Throwable.java)
    at java.lang.Throwable.fillInStackTrace$$PHOSPHORTAGGED(Throwable.java:783)
    at java.lang.Throwable.<init>(Throwable.java:287)
    at java.lang.Error.<init>(Error.java:88)
    at java.lang.LinkageError.<init>(LinkageError.java:67)
    at java.lang.BootstrapMethodError.<init>(BootstrapMethodError.java:66)
    at java.lang.invoke.CallSite.makeSite$$PHOSPHORTAGGED(CallSite.java:341)
    at java.lang.invoke.MethodHandleNatives.linkCallSiteImpl$$PHOSPHORTAGGED(MethodHandleNatives.java:307)
    at java.lang.invoke.MethodHandleNatives.linkCallSite$$PHOSPHORTAGGED(MethodHandleNatives.java:297)
    at java.lang.invoke.MethodHandleNatives.linkCallSite(MethodHandleNatives.java)
    at java.io.ObjectInputStream.<clinit>(ObjectInputStream.java:3578)
    at phosphor.test.Test2.main$$PHOSPHORTAGGED(Test2.java:20)
    at phosphor.test.Test2.main(Test2.java)
Caused by: java.lang.AbstractMethodError: java.lang.invoke.BoundMethodHandle.fieldCount$$PHOSPHORTAGGED(Ledu/columbia/cs/psl/phosphor/struct/ControlTaintTagStack;Ledu/columbia/cs/psl/phosphor/struct/TaintedIntWithObjTag;)Ledu/columbia/cs/psl/phosphor/struct/TaintedIntWithObjTag;
    at java.lang.Throwable.fillInStackTrace$$PHOSPHORTAGGED(Throwable.java)
    at java.lang.Throwable.fillInStackTrace$$PHOSPHORTAGGED(Throwable.java:783)
    at java.lang.Throwable.<init>(Throwable.java:265)
    at java.lang.Error.<init>(Error.java:70)
    at java.lang.LinkageError.<init>(LinkageError.java:55)
    at java.lang.IncompatibleClassChangeError.<init>(IncompatibleClassChangeError.java:55)
    at java.lang.AbstractMethodError.<init>(AbstractMethodError.java:56)
    at java.lang.AbstractMethodError.<init>(AbstractMethodError.java)
    at java.lang.invoke.BoundMethodHandle.tooComplex$$PHOSPHORTAGGED(BoundMethodHandle.java:127)
    at java.lang.invoke.BoundMethodHandle.rebind$$PHOSPHORTAGGED(BoundMethodHandle.java:120)
    at java.lang.invoke.MethodHandleImpl.makePairwiseConvertByEditor$$PHOSPHORTAGGED(MethodHandleImpl.java:232)
    at java.lang.invoke.MethodHandleImpl.makePairwiseConvert$$PHOSPHORTAGGED(MethodHandleImpl.java:194)
    at java.lang.invoke.MethodHandleImpl.makePairwiseConvert$$PHOSPHORTAGGED(MethodHandleImpl.java:380)
    at java.lang.invoke.MethodHandle.asTypeUncached$$PHOSPHORTAGGED(MethodHandle.java:776)
    at java.lang.invoke.MethodHandle.asType$$PHOSPHORTAGGED(MethodHandle.java:761)
    at java.lang.invoke.Invokers.checkGenericType$$PHOSPHORTAGGED(Invokers.java:321)
    at java.lang.invoke.Invokers.checkGenericType(Invokers.java)
    at java.lang.invoke.CallSite.makeSite$$PHOSPHORTAGGED(CallSite.java:302)
    ... 6 more

from phosphor.

jon-bell avatar jon-bell commented on August 15, 2024

This is not a regression. We instrument dynamically generated classes (like those generated to support lambdas) using a JavaAgent. You need to add the javaagent to your launch string... -javaagent:Phosphor-0.0.2-SNAPSHOT.jar.

from phosphor.

chenbihuan avatar chenbihuan commented on August 15, 2024

aha, that solves the problem... Thanks.

from phosphor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.