Last active
August 29, 2015 13:56
-
-
Save dstu/8838521 to your computer and use it in GitHub Desktop.
scalac/sbt crash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sbt compile | |
Loading /usr/share/sbt/bin/sbt-launch-lib.bash | |
[info] Loading project definition from /home/stu/projects/scala-trees/project | |
[info] Set current project to PCFG parsing (in build file:/home/stu/projects/scala-trees/) | |
[info] Updating {file:/home/stu/projects/scala-trees/}scala-trees... | |
[info] Resolving org.scala-lang#scala-library;2.10.3 ... | |
[info] Resolving org.scalatest#scalatest_2.10;2.0 ... | |
[info] Resolving org.scala-lang#scala-reflect;2.10.0 ... | |
[info] Resolving org.scala-lang#scala-compiler;2.10.3 ... | |
[info] Resolving org.scala-lang#scala-reflect;2.10.3 ... | |
[info] Resolving org.scala-lang#jline;2.10.3 ... | |
[info] Resolving org.fusesource.jansi#jansi;1.4 ... | |
[info] Done updating. | |
[info] Compiling 7 Scala sources to /home/stu/projects/scala-trees/target/scala-2.10/classes... | |
[error] | |
[error] while compiling: /home/stu/projects/scala-trees/src/main/scala/dstu/nlp/parsing/Production.scala | |
[error] during phase: jvm | |
[error] library version: version 2.10.3 | |
[error] compiler version: version 2.10.3 | |
[error] reconstructed args: -classpath /home/stu/projects/scala-trees/target/scala-2.10/classes -deprecation -unchecked -bootclasspath /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/resources.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jsse.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/netx.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/plugin.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rhino.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/jfr.jar:/usr/lib/jvm/java-7-openjdk-amd64/jre/classes:/home/stu/.sbt/boot/scala-2.10.3/lib/scala-library.jar | |
[error] | |
[error] last tree to typer: Literal(Constant(collection.mutable.HashMap)) | |
[error] symbol: null | |
[error] symbol definition: null | |
[error] tpe: Class(classOf[scala.collection.mutable.HashMap]) | |
[error] symbol owners: | |
[error] context owners: anonymous class anonfun$5 -> package parsing | |
[error] | |
[error] == Enclosing template or block == | |
[error] | |
[error] Template( // val <local $anonfun>: <notype>, tree.tpe=dstu.nlp.parsing.ProductionIndex#anonfun$5 | |
[error] "scala.runtime.AbstractFunction1$mcIJ$sp", "scala.Serializable" // parents | |
[error] ValDef( | |
[error] private | |
[error] "_" | |
[error] <tpt> | |
[error] <empty> | |
[error] ) | |
[error] // 5 statements | |
[error] DefDef( // final def apply(l: Long): Int | |
[error] <method> final <triedcooking> | |
[error] "apply" | |
[error] [] | |
[error] // 1 parameter list | |
[error] ValDef( // l: Long | |
[error] <param> <triedcooking> | |
[error] "l" | |
[error] <tpt> // tree.tpe=Long | |
[error] <empty> | |
[error] ) | |
[error] <tpt> // tree.tpe=Int | |
[error] Apply( // def apply$mcIJ$sp(l: Long): Int, tree.tpe=Int | |
[error] ProductionIndex$$anonfun$5.this."apply$mcIJ$sp" // def apply$mcIJ$sp(l: Long): Int, tree.tpe=(l: Long)Int | |
[error] "l" // l: Long, tree.tpe=Long | |
[error] ) | |
[error] ) | |
[error] DefDef( // def apply$mcIJ$sp(l: Long): Int | |
[error] <method> <specialized> <triedcooking> | |
[error] "apply$mcIJ$sp" | |
[error] [] | |
[error] // 1 parameter list | |
[error] ValDef( // l: Long | |
[error] <param> <triedcooking> | |
[error] "l" | |
[error] <tpt> // tree.tpe=Long | |
[error] <empty> | |
[error] ) | |
[error] <tpt> // tree.tpe=Int | |
[error] Apply( // def toInt(): Int in class Long, tree.tpe=Int | |
[error] scala.math.`package`.signum(ProductionIndex$$anonfun$5.this.child$3.-(Production.CHILDREN_MASK().&(l)))."toInt" // def toInt(): Int in class Long, tree.tpe=()Int | |
[error] Nil | |
[error] ) | |
[error] ) | |
[error] DefDef( // final def apply(v1: Object): Object | |
[error] <method> final <bridge> | |
[error] "apply" | |
[error] [] | |
[error] // 1 parameter list | |
[error] ValDef( // v1: Object | |
[error] <param> <triedcooking> | |
[error] "v1" | |
[error] <tpt> // tree.tpe=Object | |
[error] <empty> | |
[error] ) | |
[error] <tpt> // tree.tpe=Object | |
[error] Apply( // def box(x: Int): Integer in object Int, tree.tpe=Object | |
[error] "scala"."Int"."box" // def box(x: Int): Integer in object Int, tree.tpe=(x: Int)Integer | |
[error] Apply( // final def apply(l: Long): Int, tree.tpe=Int | |
[error] ProductionIndex$$anonfun$5.this."apply" // final def apply(l: Long): Int, tree.tpe=(l: Long)Int | |
[error] Apply( // def unbox(x: Object): Long in object Long, tree.tpe=Long | |
[error] "scala"."Long"."unbox" // def unbox(x: Object): Long in object Long, tree.tpe=(x: Object)Long | |
[error] "v1" // v1: Object, tree.tpe=Object | |
[error] ) | |
[error] ) | |
[error] ) | |
[error] ) | |
[error] ValDef( // private[this] val child$3: Long | |
[error] private <local> <synthetic> <paramaccessor> <triedcooking> | |
[error] "child$3" | |
[error] <tpt> // tree.tpe=Long | |
[error] <empty> | |
[error] ) | |
[error] DefDef( // def <init>(arg$outer: dstu.nlp.parsing.ProductionIndex,child$3: Long): dstu.nlp.parsing.ProductionIndex#anonfun$5 | |
[error] <method> <triedcooking> | |
[error] "<init>" | |
[error] [] | |
[error] // 1 parameter list | |
[error] ValDef( // $outer: dstu.nlp.parsing.ProductionIndex | |
[error] <param> | |
[error] "$outer" | |
[error] <tpt> // tree.tpe=dstu.nlp.parsing.ProductionIndex | |
[error] <empty> | |
[error] ) | |
[error] ValDef( // child$3: Long | |
[error] <param> <synthetic> <triedcooking> | |
[error] "child$3" | |
[error] <tpt> // tree.tpe=Long | |
[error] <empty> | |
[error] ) | |
[error] <tpt> // tree.tpe=dstu.nlp.parsing.ProductionIndex#anonfun$5 | |
[error] Block( // tree.tpe=Unit | |
[error] // 2 statements | |
[error] Assign( // tree.tpe=Unit | |
[error] ProductionIndex$$anonfun$5.this."child$3" // private[this] val child$3: Long, tree.tpe=Long | |
[error] "child$3" // child$3: Long, tree.tpe=Long | |
[error] ) | |
[error] Apply( // def <init>(): scala.runtime.AbstractFunction1$mcIJ$sp in class AbstractFunction1$mcIJ$sp, tree.tpe=scala.runtime.AbstractFunction1$mcIJ$sp | |
[error] ProductionIndex$$anonfun$5.super."<init>" // def <init>(): scala.runtime.AbstractFunction1$mcIJ$sp in class AbstractFunction1$mcIJ$sp, tree.tpe=()scala.runtime.AbstractFunction1$mcIJ$sp | |
[error] Nil | |
[error] ) | |
[error] () | |
[error] ) | |
[error] ) | |
[error] ) | |
[error] | |
[error] == Expanded type of tree == | |
[error] | |
[error] ConstantType(value = Constant(collection.mutable.HashMap)) | |
[error] | |
[error] uncaught exception during compilation: java.lang.NegativeArraySizeException | |
java.lang.NegativeArraySizeException | |
at scala.tools.asm.Frame.merge(Frame.java:1326) | |
at scala.tools.asm.MethodWriter.visitMaxs(MethodWriter.java:1353) | |
at scala.tools.nsc.backend.jvm.GenASM$JPlainBuilder.genMethod(GenASM.scala:1565) | |
at scala.tools.nsc.backend.jvm.GenASM$JPlainBuilder.genClass(GenASM.scala:1398) | |
at scala.tools.nsc.backend.jvm.GenASM$AsmPhase.run(GenASM.scala:119) | |
at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1583) | |
at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1557) | |
at scala.tools.nsc.Global$Run.compileSources(Global.scala:1553) | |
at scala.tools.nsc.Global$Run.compile(Global.scala:1662) | |
at xsbt.CachedCompiler0.run(CompilerInterface.scala:123) | |
at xsbt.CachedCompiler0.run(CompilerInterface.scala:99) | |
at xsbt.CompilerInterface.run(CompilerInterface.scala:27) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:102) | |
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:48) | |
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41) | |
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply$mcV$sp(AggressiveCompile.scala:98) | |
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:98) | |
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:98) | |
at sbt.compiler.AggressiveCompile.sbt$compiler$AggressiveCompile$$timed(AggressiveCompile.scala:159) | |
at sbt.compiler.AggressiveCompile$$anonfun$3.compileScala$1(AggressiveCompile.scala:97) | |
at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:142) | |
at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:86) | |
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:38) | |
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:36) | |
at sbt.inc.Incremental$.cycle(Incremental.scala:73) | |
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:33) | |
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:32) | |
at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:41) | |
at sbt.inc.Incremental$.compile(Incremental.scala:32) | |
at sbt.inc.IncrementalCompile$.apply(Compile.scala:26) | |
at sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:150) | |
at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:70) | |
at sbt.compiler.AggressiveCompile.apply(AggressiveCompile.scala:45) | |
at sbt.Compiler$.apply(Compiler.scala:70) | |
at sbt.Defaults$.sbt$Defaults$$compileTaskImpl(Defaults.scala:736) | |
at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:730) | |
at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:730) | |
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) | |
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42) | |
at sbt.std.Transform$$anon$4.work(System.scala:64) | |
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) | |
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237) | |
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18) | |
at sbt.Execute.work(Execute.scala:244) | |
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) | |
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237) | |
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160) | |
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30) | |
at java.util.concurrent.FutureTask.run(FutureTask.java:262) | |
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) | |
at java.util.concurrent.FutureTask.run(FutureTask.java:262) | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) | |
at java.lang.Thread.run(Thread.java:744) | |
[error] (compile:compile) java.lang.NegativeArraySizeException |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment