NPE in InstrumentationImpl.transform()

Andrew Dinn adinn at redhat.com
Thu May 5 15:19:59 UTC 2016


On 05/05/16 16:06, Alan Bateman wrote:
>> Loading classes from the unnamed boot module (for instance an agent)
>> causes:
>> *** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding"
>> with message transform method call failed at JPLISAgent.c line: 884
>>
>> Due to trying to dereference the null-loader in
>> sun.instrument.InstrumentationImpl:439
>> module = loader.getUnnamedModule();
> Thanks for the bug report, this is regression in JDK 9. I suspect we
> don't have tests that exercise this with classes added to the boot
> loader with -Xbootclasspath/a. I've created JDK-8156147 [1] to track it.
> 
> -Alan
> 
> [1] https://bugs.openjdk.java.net/browse/JDK-8156147

Ah, pre-empted! I was just about to report that I see this with Byteman
when I hoist the Byteman classes into the bootstrap and don't see it
when I leave them in the system classpath.

I will be happy to validate any fix.

regards,


Andrew Dinn
-----------
Senior Principal Software Engineer
Red Hat UK Ltd
Registered in England and Wales under Company Registration No. 03798903
Directors: Michael Cunningham, Michael ("Mike") O'Neill, Eric Shander


More information about the jigsaw-dev mailing list