Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 9.0.4
    • Fix Version/s: None
    • Component/s: hotspot
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      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.

        Attachments

          Activity

            People

            • Assignee:
              fmatte Fairoz Matte
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: