Details
-
Bug
-
Status: Closed
-
P4
-
Resolution: Not an Issue
-
9.0.4
-
None
-
x86_64
-
generic
Description
FULL PRODUCT VERSION :
java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
FULL OS VERSION :
Linux xtiger 4.10.0-42-generic #46~16.04.1-Ubuntu SMP Mon Dec 4 15:57:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
The program (see the link to google drive) can trigger a mis-compilation of AOT.
Attached program:
https://drive.google.com/open?id=17jN-4KFrs-apHlr2jkcDmP4OdA0ophWN
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Steps:
Run the attached program with 3 mode:
1&2. Default & XComp
java C0
or
java -Xcomp C0
Output:
exit code is 0
3. AOT
jaotc --output C0.so C0.class
java -XX:AOTLibrary=./C0.so C0
Output:
Exception in thread "main" java.lang.NegativeArraySizeException
at C0.main(Unknown Source)
EXPECTED VERSUS ACTUAL BEHAVIOR :
Different execution modes should have the same output.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
Exception in thread "main" java.lang.NegativeArraySizeException
at C0.main(Unknown Source)
REPRODUCIBILITY :
This bug can be reproduced always.
java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
FULL OS VERSION :
Linux xtiger 4.10.0-42-generic #46~16.04.1-Ubuntu SMP Mon Dec 4 15:57:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
The program (see the link to google drive) can trigger a mis-compilation of AOT.
Attached program:
https://drive.google.com/open?id=17jN-4KFrs-apHlr2jkcDmP4OdA0ophWN
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Steps:
Run the attached program with 3 mode:
1&2. Default & XComp
java C0
or
java -Xcomp C0
Output:
exit code is 0
3. AOT
jaotc --output C0.so C0.class
java -XX:AOTLibrary=./C0.so C0
Output:
Exception in thread "main" java.lang.NegativeArraySizeException
at C0.main(Unknown Source)
EXPECTED VERSUS ACTUAL BEHAVIOR :
Different execution modes should have the same output.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
Exception in thread "main" java.lang.NegativeArraySizeException
at C0.main(Unknown Source)
REPRODUCIBILITY :
This bug can be reproduced always.