Comments (15)
Can I have the output of java -version ?
from phosphor.
Hi Jon,
I am using HotSpot 1.8.0_91-b14, 64-bit version.
from phosphor.
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.
Ok. Thanks, Jon.
from phosphor.
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.
Was this not fixed on Jul 25 or did it regress?
from phosphor.
It regressed.
from phosphor.
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.
This is strange. The test case above failed on my machine.
Did you enable the controlTrack
flag?
from phosphor.
Yes. You are running the test with mvn verify?
from phosphor.
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.
So how are you running it? Can I have exact steps to reproduce?
from phosphor.
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.
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.
aha, that solves the problem... Thanks.
from phosphor.
Related Issues (20)
- ClassCastException when using ObjectOutputStream writing AutoTaintLabel HOT 1
- ClassCastException in TaintLoadCoercer HOT 2
- "Could not allocate library name" when load native library by JNA. HOT 8
- Wrong class context when applying phosphor HOT 6
- LambdaConversionException for converting Float to Double
- `taintedReference` has a different behaviour than `taintedObject` for taint tracking on Strings HOT 5
- Any up to date document or tutorials? HOT 12
- What's the proper way to taint an object array? HOT 2
- Support for newer versions of Java HOT 17
- mvn package HOT 5
- java.lang.NullPointerException HOT 11
- Embeded updated `Configuration` class into JDK? HOT 2
- startup error HOT 1
- Crashes inside MethodHandleImpl HOT 5
- Crash inside GeneratedMethodAccessor
- InheritedAutoTaintObjTagITCase is flaky in CI on Java 16
- Error occurred during initialization of VM HOT 7
- ArrayOutOfBoundsException in SourceTaintingMV HOT 2
- How to Instrument Multiple Jars HOT 1
- Error occurred during initialization of VM HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phosphor.