New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.10: with -target:jvm-1.5-asm, java.util.NoSuchElementException in GenASM.popScope #6049
Comments
Imported From: https://issues.scala-lang.org/browse/SI-6049?orig=1 |
@SethTisue said: I was able to cut my codebase down from over 100K lines to about 20K lines, and the crash still happens, but cutting it any further than that is going to be difficult. (the crash goes away if I remove the two topmost classes from the source tree, but these two classes depend on a ton of other stuff.) so my question is: are there enough clues already in the stack trace and debugging output? or should I work further on minimizing this? |
@magarciaEPFL said (edited on Jul 10, 2012 5:17:48 PM UTC): Please give it a try, the information thus gained will help in
|
@magarciaEPFL said:
Proposed fix: Looks like Comments from @dragos are welcome:
|
@SethTisue said:
I'm not absolutely certain this is minimal, but it must be close. |
@magarciaEPFL said (edited on Jul 11, 2012 9:22:23 AM UTC):
The linearization of basic blocks (shown below) results in one block (
|
@SethTisue said: |
@magarciaEPFL said: |
@SethTisue said: for now, I was able to get my real codebase compiling on M5 by hoisting a few try/catch blocks into helper methods. |
@SethTisue said: |
@magarciaEPFL said: A ticket could be opened for that, yes. |
@SethTisue said: |
@adriaanm said: [echo] build time: 2 April 2013, 09:02:53
[echo] java version: Java HotSpot(TM) 64-Bit Server VM 1.6.0_43 (1.6)
[echo] java args: -Xmx3g -Xms3g -XX:+TieredCompilation -XX:ReservedCodeCacheSize=256m -XX:MaxPermSize=384m -XX:+UseNUMA -XX:+UseParallelGC
[echo] javac args:
[echo] scalac args: -optimise
[echo] scalac quick args: -optimise
[echo] git date: 20130402-090234
[echo] git hash: c7a0057213
[echo] maven version: 2.11.0-SNAPSHOT
[echo] OSGi version: 2.11.0.v20130402-090234-c7a0057213
[echo] canonical version: 2.11.0-20130402-090234-c7a0057213
asm.done:
[mkdir] Created dir: /Users/adriaan/git/scala/build/asm/classes
[javac] Compiling 77 source files to /Users/adriaan/git/scala/build/asm/classes
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[stopwatch] [asm.timer: 1.021 sec]
[mkdir] Created dir: /Users/adriaan/git/scala/build/libs
forkjoin.done:
[mkdir] Created dir: /Users/adriaan/git/scala/build/libs/classes/forkjoin
[javac] Compiling 10 source files to /Users/adriaan/git/scala/build/libs/classes/forkjoin
[javac] Creating empty /Users/adriaan/git/scala/build/libs/classes/forkjoin/scala/concurrent/forkjoin/package-info.class
[jar] Building jar: /Users/adriaan/git/scala/build/libs/forkjoin.jar
[stopwatch] [forkjoin.timer: 0.252 sec]
locker.start:
locker.lib:
[mkdir] Created dir: /Users/adriaan/git/scala/build/locker/classes/library
[javac] Compiling 32 source files to /Users/adriaan/git/scala/build/locker/classes/library
[javac] Note: /Users/adriaan/git/scala/src/library/scala/collection/concurrent/MainNode.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[locker.library] Compiling 704 files to /Users/adriaan/git/scala/build/locker/classes/library
[locker.library] /Users/adriaan/git/scala/src/library/scala/SerialVersionUID.scala:15: warning: Implementation restriction: subclassing Classfile does not
[locker.library] make your annotation visible at runtime. If that is what
[locker.library] you want, you must write the annotation class in Java.
[locker.library] class SerialVersionUID(value: Long) extends scala.annotation.ClassfileAnnotation
[locker.library] ^
[locker.library] warning: there were 128 deprecation warnings; re-run with -deprecation for details
[locker.library] warning: there were 5 feature warnings; re-run with -feature for details
[locker.library] warning: there were 348 inliner warnings; re-run with -Yinline-warnings for details
[locker.library] four warnings found
[propertyfile] Creating new property file: /Users/adriaan/git/scala/build/locker/classes/library/library.properties
[stopwatch] [locker.library.timer: 1:31.011 sec]
locker.reflect:
[mkdir] Created dir: /Users/adriaan/git/scala/build/locker/classes/reflect
[locker.reflect] Compiling 137 files to /Users/adriaan/git/scala/build/locker/classes/reflect
[locker.reflect] warning: there were 27 deprecation warnings; re-run with -deprecation for details
[locker.reflect] warning: there were 1 unchecked warnings; re-run with -unchecked for details
[locker.reflect] warning: there were 6 feature warnings; re-run with -feature for details
[locker.reflect] warning: there were 61 inliner warnings; re-run with -Yinline-warnings for details
[locker.reflect] four warnings found
[propertyfile] Creating new property file: /Users/adriaan/git/scala/build/locker/classes/reflect/reflect.properties
[stopwatch] [locker.reflect.timer: 55.369 sec]
locker.comp:
[mkdir] Created dir: /Users/adriaan/git/scala/build/locker/classes/compiler
[locker.compiler] Compiling 276 files to /Users/adriaan/git/scala/build/locker/classes/compiler
[locker.compiler] /Users/adriaan/git/scala/src/compiler/scala/tools/nsc/backend/jvm/GenASM.scala:133: warning: Visited SCOPE_EXIT before visiting corresponding SCOPE_ENTER. SI-6049
[locker.compiler] classes -= c.symbol // GC opportunity
[locker.compiler] ^ |
I'm testing -target:jvm-1.5-asm with M4 and my large mixed Scala/Java codebase and I'm getting the following compiler crash.
The text was updated successfully, but these errors were encountered: