APAR status
Closed as program error.
Error description
Error Message: --> BUILD FAILED --> /apps/scala/scala-2.9.2-sources/build.xml:558: java.lang.RuntimeException: Compilation failed because of an internal compiler error; see the error output for details. . Stack Trace: --> <OSB>scalacfork<CSB> Exception in thread "main" java.lang.NullPointerException --> <OSB>scalacfork<CSB> at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptim ized.scala:58) --> <OSB>scalacfork<CSB> at scala.collection.immutable.List.foreach(List.scala:76) --> <OSB>scalacfork<CSB> at scala.collection.TraversableOnce$class.addString(TraversableOnce .scala:298) --> <OSB>scalacfork<CSB> at scala.collection.immutable.List.addString(List.scala:76) --> <OSB>scalacfork<CSB> at scala.collection.TraversableOnce$class.mkString(TraversableOnce. scala:263) --> <OSB>scalacfork<CSB> at scala.collection.immutable.List.mkString(List.scala:76) --> <OSB>scalacfork<CSB> at scala.collection.TraversableLike$class.toString(TraversableLike. scala:615) --> <OSB>scalacfork<CSB> at scala.collection.SeqLike$class.toString(SeqLike.scala:665) --> <OSB>scalacfork<CSB> at scala.collection.immutable.List.toString(List.scala:76) --> <OSB>scalacfork<CSB> at scala.MatchError.objString(MatchError.scala:28) --> <OSB>scalacfork<CSB> at scala.MatchError.getMessage(MatchError.scala:30) --> <OSB>scalacfork<CSB> at java.lang.Throwable.getLocalizedMessage(Throwable.java:184) --> <OSB>scalacfork<CSB> at java.lang.Throwable.toString(Throwable.java:316) --> <OSB>scalacfork<CSB> at java.lang.Throwable.printStackTrace(Throwable.java:480) --> <OSB>scalacfork<CSB> at java.lang.Throwable.printStackTrace(Throwable.java:299) --> <OSB>scalacfork<CSB> at scala.tools.nsc.util.package$$anonfun$stackTraceString$1.apply(p ackage.scala:61) --> <OSB>scalacfork<CSB> at scala.tools.nsc.util.package$$anonfun$stackTraceString$1.apply(p ackage.scala:61) --> <OSB>scalacfork<CSB> at scala.tools.nsc.util.package$.stringFromWriter(package.scala:50) --> <OSB>scalacfork<CSB> at scala.tools.nsc.util.package$.stackTraceString(package.scala:61) --> <OSB>scalacfork<CSB> at scala.tools.nsc.Global.throwableAsString(Global.scala:168) --> <OSB>scalacfork<CSB> at scala.tools.nsc.Global.logThrowable(Global.scala:165) . N/A ====================================== Under rare circumstances a variable may be initialized every time around a loop instead of once at the beginning. This could manifest as unexpected exceptions or incorrect output.
Local fix
Use -Xint to avoid using the JIT, or use -Xjit:disableEscapeAnalysis to disable the specific optimisation causing to the problem.
Problem summary
Building of scala fails with the following error: /home/geraintj/scala/scala-2.9.2-sources/build.xml:383: java.lang.RuntimeException: Compilation failed because of an internal compiler error; see the error output for details. at scala.sys.package$.error(package.scala:27) at scala.tools.ant.sabbus.ScalacFork.execute(ScalacFork.scala:117) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java: 291) at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod AccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:602) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtil s.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:392) at org.apache.tools.ant.Target.performTasks(Target.java:413) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1 399) at org.apache.tools.ant.Project.executeTarget(Project.java:1368) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(Defau ltExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.Main.runBuild(Main.java:811) at org.apache.tools.ant.Main.startAnt(Main.java:217) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Problem conclusion
This defect will be fixed in: 5.0.0 SR15 6.0.0 SR12 6.0.1 SR4 7.0.0 SR3 . Problem with Escape analysis optimization in the following method: scala/tools/nsc/backend/jvm/GenJVM$BytecodeGenerator.genBlocks$1 (Lscala/collection/immutable/List;Lch/epfl/lamp/fjbg/JExtendedCo de;Lscala/collection/mutable/HashMap;Lscala/collection/mutable/S et;Lscala/runtime/ObjectRef;)V
Temporary fix
Comments
APAR Information
APAR number
IV30060
Reported component name
JIT
Reported component ID
620700124
Reported release
260
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2012-10-12
Closed date
2012-10-12
Last modified date
2012-10-15
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
JIT
Fixed component ID
620700124
Applicable component levels
R260 PSY
UP
[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSC9HBA","label":"Just In Time (JIT) Compiler"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"260","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
15 October 2012