-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lambda expressions bootstrap method error #75
Comments
From what you've pasted you are not adding the java agent when running - can you try again with it? |
Thank you for getting back quickly. The result is the same. The classes are all pre-instrumented. |
…nstructor; add some new related tests (for #75)
Thanks for the minimum working example - I was able to reproduce this easily. This is now patched in 9a56248, and I've added some new tests to the suite. FYI - my prior warnings and disclaimers about using Phosphor on Android (especially post-ART) all still apply - you will start to hit much more complex and Android-specific issues, and I will not be able to support them (it will be up to you). |
Thank you for the quick fix. I will try to fix those Android specific ones. |
…nstructor; add some new related tests (for gmu-swe#75)
…nstructor; add some new related tests (for gmu-swe#75)
…olerate arguments being repurposed as different types (e.g. a long slot being reused as two int slots) (gmu-swe#75, gmu-swe#76)
Hi,
I was trying the following test code but got errors while running the instrumented code or converting it to dalvik bytecode using d8.
The output of java is pasted below.
The output of d8 is also here.
I am using OpenJDK 1.8.0_152 and d8 1.3.49.
I looked into the source code of Phosphor and found the third argument of the bootstrap method for the lambda expression causes the problem.
Before instrumentation, the
invokedynamic
instruction for the lambda expression looks like this:That instruction is converted as below after instrumentation:
The extra parameter (type
Ledu/columbia/cs/psl/phosphor/struct/LazyDoubleArrayIntTags
) in the second line from bottom causes the signature inconsistency. That parameter is added inTaintUtils.java:799
. But I am not sure why it is needed. Please have a look at it.Thanks,
Qiang
The text was updated successfully, but these errors were encountered: