Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8062952

Occasionally javac fails with java.lang.StackOverflowError

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • tbd
    • 8u11
    • tools
    • x86_64
    • linux

      FULL PRODUCT VERSION :
      java version "1.8.0_11"
      Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
      Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Linux rei-wt 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      Sometimes when Maven invokes javac, javac fails with the following error:

      java.lang.StackOverflowError
       at com.sun.tools.javac.code.Type.map(Type.java:205)
       at com.sun.tools.javac.code.Type.map(Type.java:205)
       at com.sun.tools.javac.code.Type.map(Type.java:205)
       at com.sun.tools.javac.code.Type.map(Type.java:205)
       at com.sun.tools.javac.code.Type.map(Type.java:205)
       at com.sun.tools.javac.code.Type.map(Type.java:205)
       at com.sun.tools.javac.code.Type.map(Type.java:205)
      ... etc

      I can not discover the cause of this issue, as it occurs randomly. Mostly the code compiles okay, but sometimes compilation of the very same code fails with the abovementioned exception. Workaround is to run the compilation process again - often the compiler succeeds. This problem is also present in java 8 update 05, I haven't tried other java 8 releases.

      ADDITIONAL REGRESSION INFORMATION:
      java version "1.8.0_11"
      Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
      Java HotSpot(TM) 64-Bit Server VM (build 25.11-b03, mixed mode)


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      I cannot reproduce the bug reliably, sometimes it simply fails.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The compilation succeeds.
      ACTUAL -
      The compilation fails with the abovementioned stacktrace.

      REPRODUCIBILITY :
      This bug can be reproduced occasionally.

      CUSTOMER SUBMITTED WORKAROUND :
      Just run the compiler again :)

            vromero Vicente Arturo Romero Zaldivar
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: