Scala Programming Language
  1. Scala Programming Language
  2. SI-6547

NegativeArraySizeException during code gen compiling a large project

    Details

      Description

      (actually RC1, but that's not an option in jira yet.)

      The breeze-math code base crashes when compiling against 2.10.0-RC1.

      (Branch here: https://github.com/dlwh/breeze/tree/scala-2.10.0RC1, sbt clean compile should do it.)

      The error is:

      java.lang.NegativeArraySizeException
              at scala.tools.asm.Frame.merge(Unknown Source)
              at scala.tools.asm.MethodWriter.visitMaxs(Unknown Source)
              at scala.tools.nsc.backend.jvm.GenASM$JPlainBuilder.genMethod(GenASM.scala:1633)
              at scala.tools.nsc.backend.jvm.GenASM$JPlainBuilder$$anonfun$genClass$5.apply(GenASM.scala:1466)
              at scala.tools.nsc.backend.jvm.GenASM$JPlainBuilder$$anonfun$genClass$5.apply(GenASM.scala:1466)
              at scala.collection.immutable.List.foreach(List.scala:309)
              at scala.tools.nsc.backend.jvm.GenASM$JPlainBuilder.genClass(GenASM.scala:1466)
              at scala.tools.nsc.backend.jvm.GenASM$AsmPhase.run(GenASM.scala:182)
              at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1574)
              at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1548)
              at scala.tools.nsc.Global$Run.compileSources(Global.scala:1544)
              at scala.tools.nsc.Global$Run.compile(Global.scala:1654)
      

      It claims it's in the file math/src/main/scala/breeze/util/Terminal.scala, but that file compiles fine on its own in its own project. Also, significant changes to the file don't seem to matter.

      NB, with specialization disabled breeze-math compiles fine. There are other miscellaneous compile errors if you get passed this project, but nothing that generates compiler stack traces.

        Issue Links

          Activity

          Hide
          Miguel Garcia added a comment -

          Apparently duplicate of SI-6248

          Show
          Miguel Garcia added a comment - Apparently duplicate of SI-6248
          Hide
          Miguel Garcia added a comment -

          Pull request closed by Grzegorz Kossakowski so the fix won't show up in 2.10.

          Show
          Miguel Garcia added a comment - Pull request closed by Grzegorz Kossakowski so the fix won't show up in 2.10.
          Hide
          Adriaan Moors added a comment - - edited

          "won't show up in 2.10_.0_" – it should go into 2.10.1, the RC1 of which is planned for Feb 11

          Show
          Adriaan Moors added a comment - - edited "won't show up in 2.10_.0_" – it should go into 2.10.1, the RC1 of which is planned for Feb 11
          Hide
          Jason Zaugg added a comment -
          Show
          Jason Zaugg added a comment - 2.10.x PR: https://github.com/scala/scala/pull/1692
          Show
          Adriaan Moors added a comment - https://github.com/scala/scala/pull/1692

            People

            • Assignee:
              Miguel Garcia
              Reporter:
              david hall
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development