Jtreg : Error: failed to get JDK properties

David Holmes david.holmes at oracle.com
Fri May 26 01:45:21 UTC 2017


On 26/05/2017 2:55 AM, Bysani, Keerthana wrote:
> Hi David,
> I did run the command you specified. It seems to have run successfully.
> 
> Attached is a screenshot of the result.
> I have copied the result into this thread as well.
> 
> RTGC init!
> Default stacksize is 1052672
> HEY! using non-zero heap_base
> Running last commit before t1/t2 branch creation
> Page size is 4096
> ***ATOMIC GC***
> doing add_rtgc_collected_heap_info(RtgcCollectedHeap::heap());
> openjdk version "9-internal"
> OpenJDK Runtime Environment (slowdebug build 9-internal+0-adhoc.test.openjdk9)
> OpenJDK 64-Bit Server VM (slowdebug build 9-internal+0-adhoc.test.openjdk9, mixed mode)

Is there anything else in the jtreg log output - or is there a 
hs_err_pidxxx.log file anywhere?

The indications are that the attempt to launch your JVM to run the 
GetJDKproperties code was unsuccessful. Unfortunately jtreg doesn't 
print out the actual  command it tried to execute; nor do we see the 
actual output.

That aside I think your extraneous output will cause the reading of the 
properties to fail anyway.

David

> 
> Thanks for your help!
> 
> 
> 
> 
> On 5/25/17, 12:54 AM, "David Holmes" <david.holmes at oracle.com> wrote:
> 
>      Hi,
>      
>      On 25/05/2017 7:26 AM, Bysani, Keerthana wrote:
>      > Hi,
>      >
>      > I was trying to execute some regression tests for OpenJDK9 using jtreg
>      > for a custom garbage collector.
>      >
>      > Following is the command I executed:
>      >
>      > $jtreg -agentvm -verbose:all -jdk:$JT_JAVA -w build/jtreg/work -r
>      > build/jtreg/report -javaoptions:"-XX:+UseRtGC -XX:-UseCompressedOops"
>      > hotspot/test/compiler/c2
>      
>      Can you successfully run:
>      
>      java -XX:+UseRtGC -XX:-UseCompressedOops -version
>      
>      Can you run a program that gets and prints the system properties?
>      
>      The error suggests the VM is failing to run.
>      
>      David
>      -----
>      
>      > Where RtGC is the custom GC.
>      >
>      > I get the following error:
>      >
>      > Error: failed to get JDK properties for
>      > /home/test/openjdk9/build/linux-x86_64-normal-server-slowdebug/images/jdk/bin/java
>      > -XX:+UseRtGC -XX:-UseCompressedOops; exit code 134
>      >
>      > Has anyone encountered the same issue?
>      >
>      > The command works fine if I use SerialGC instead of RtGC.
>      >
>      > It is an issue with jtreg.
>      >
>      > Thanks
>      >
>      
>      
> 


More information about the jtreg-use mailing list