Uploaded image for project: 'Scala Programming Language'
  1. Scala Programming Language
  2. SI-10239

2.11/2.12 StackOverflowError in SpecializeTypes.specializedTypeVars

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Scala 2.11.0, Scala 2.11.1, Scala 2.11.2, Scala 2.11.3, Scala 2.11.4, Scala 2.11.5, Scala 2.11.6, Scala 2.11.7, Scala 2.11.8, Scala 2.12.1
    • Fix Version/s: None
    • Component/s: Compiler Backend
    • Labels:
      None

      Description

      We're upgrading a project from scala 2.10.4 to 2.11.8 and we're getting a StackOverflowError out of the compiler. Unfortunately, there's zero additional debug or context provided, but when I build with Gradle 3.4.1 (though it happens on every gradle version I've tried), zinc 0.3.13 (though it fails on every zinc I'm tried, too), and Scala 2.11.0 – 2.12.1, I get the following:

      FAILURE: Build failed with an exception.
       
      * What went wrong:
      Execution failed for task ':core:compileScala'.
      > java.lang.StackOverflowError (no error message)
       
      * Try:
      Run with --info or --debug option to get more log output.
       
      * Exception is:
      org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':core:compileScala'.
              at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:84)
              at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:55)
              at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
              at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
              at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)
              at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:46)
              at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)
              at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
              at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
              at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
              at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.execute(DefaultTaskGraphExecuter.java:236)
              at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.execute(DefaultTaskGraphExecuter.java:228)
              at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
              at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
              at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:61)
              at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:228)
              at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:215)
              at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:77)
              at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:58)
              at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
              at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:46)
      Caused by: java.lang.StackOverflowError
              at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1524)
              at scala.reflect.internal.Types$TypeRef.initializedTypeParams(Types.scala:2195)
              at scala.reflect.internal.Types$TypeRef.typeParamsMatchArgs(Types.scala:2196)
              at scala.reflect.internal.Types$AliasTypeRef$class.dealias(Types.scala:2014)
              at scala.reflect.internal.Types$AliasNoArgsTypeRef.dealias(Types.scala:2329)
              at scala.reflect.internal.Types$Type.dealiasWiden(Types.scala:526)
              at scala.tools.nsc.transform.SpecializeTypes.specializedTypeVars(SpecializeTypes.scala:447)
              at scala.tools.nsc.transform.SpecializeTypes.specializedTypeVars(SpecializeTypes.scala:447)
              at scala.tools.nsc.transform.SpecializeTypes.specializedTypeVars(SpecializeTypes.scala:447)
              at scala.tools.nsc.transform.SpecializeTypes.specializedTypeVars(SpecializeTypes.scala:447)
              at scala.tools.nsc.transform.SpecializeTypes.specializedTypeVars(SpecializeTypes.scala:447)
              at scala.tools.nsc.transform.SpecializeTypes.specializedTypeVars(SpecializeTypes.scala:447)
              at scala.tools.nsc.transform.SpecializeTypes.specializedTypeVars(SpecializeTypes.scala:447)
              at scala.tools.nsc.transform.SpecializeTypes.specializedTypeVars(SpecializeTypes.scala:447)
              at scala.tools.nsc.transform.SpecializeTypes.specializedTypeVars(SpecializeTypes.scala:447)
              at scala.tools.nsc.transform.SpecializeTypes.specializedTypeVars(SpecializeTypes.scala:447)
              at scala.tools.nsc.transform.SpecializeTypes.specializedTypeVars(SpecializeTypes.scala:447)
      ... repeated ...
      

        Attachments

          Activity

            People

            • Assignee:
              rytz Lukas Rytz
              Reporter:
              mschrag Mike Schrag
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: