Errors running tests

60 views
Skip to first unread message

Sebastian Meßmer

unread,
Oct 11, 2012, 6:22:11 AM10/11/12
to scala-l...@googlegroups.com
Hello,

I ran the tests from the 2.10.x branch and got the appended two error
messages. I think this is due to my local configuration. So what do I have to
do to make the test cases working?

Sebastian
-------------------------------------


[partest] testing: [...]/files/specialized/test.scala
[ OK ]
[partest] Running instrumented files
[partest] Exception in thread "main"
[partest] java.lang.reflect.InvocationTargetException
[partest] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[partest] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[partest] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[partest] at java.lang.reflect.Method.invoke(Method.java:601)
[partest] at
sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382)
[partest] at
sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:397)
[partest] Caused by: java.lang.UnsupportedOperationException: adding
retransformable transformers is not supported in this environment
[partest] at
sun.instrument.InstrumentationImpl.addTransformer(InstrumentationImpl.java:88)
[partest] at scala.tools.partest.javaagent.ProfilingAgent.premain(Unknown
Source)
[partest] ... 6 more
[partest] testing: [...]/files/instrumented/InstrumentationTest.scala
[FAILED]
[partest] FATAL ERROR in native method: processing of -javaagent failed
[partest] Exception in thread "main"
[partest] java.lang.reflect.InvocationTargetException
[partest] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[partest] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[partest] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[partest]
[partest] at java.lang.reflect.Method.invoke(Method.java:601)
[partest] at
sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382)
[partest] at
sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:397)
[partest] Caused by: java.lang.UnsupportedOperationException: adding
retransformable transformers is not supported in this environment
[partest]
[partest] at
sun.instrument.InstrumentationImpl.addTransformer(InstrumentationImpl.java:88)
[partest] at scala.tools.partest.javaagent.ProfilingAgent.premain(Unknown
Source)
[partest]
[partest] ... 6 more
[partest] testing: [...]/files/instrumented/inline-in-constructors
[FAILED]
[partest] FATAL ERROR in native method: processing of -javaagent failed
[partest] Running presentation compiler test files
[partest] testing: [...]/files/presentation/ide-bug-1000469
[ OK ]

[...]

[partest] testing: [...]/files/presentation/memory-leaks
[ OK ]

BUILD FAILED
/home/heinzi/scala-lang/scala/build.xml:2650: java.lang.RuntimeException: Test
suite finished with 2 cases failing:
/home/heinzi/scala-lang/scala/test/files/instrumented/inline-in-constructors
[FAILED]
/home/heinzi/scala-lang/scala/test/files/instrumented/InstrumentationTest.scala
[FAILED]
at scala.sys.package$.error(package.scala:27)
at
scala.tools.partest.PartestTask$$anonfun$f$1$1.apply(PartestTask.scala:420)
at
scala.tools.partest.PartestTask$$anonfun$f$1$1.apply(PartestTask.scala:420)
at scala.tools.partest.PartestTask.execute(PartestTask.scala:429)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
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)

Paul Phillips

unread,
Oct 11, 2012, 8:52:19 AM10/11/12
to scala-l...@googlegroups.com
Use java 6. 

Sebastian Meßmer

unread,
Oct 14, 2012, 11:19:03 AM10/14/12
to scala-l...@googlegroups.com, Paul Phillips

Thanks, with Java 6 I now don't get exceptions any more.

But now the compiler tests seem to lack memory. I'm getting a lot of

 

[partest] Log file '/home/heinzi/scala-lang/scala/test/files/scalacheck/treemap-scalacheck.log':

[partest] Possible compiler crash during test of: /home/heinzi/scala-lang/scala/test/files/scalacheck/treemap.scala

[partest] java.lang.OutOfMemoryError: PermGen space

 

I tried to increase the JVM heap space but it didn't help. How can I tell ant to use more memory?

 

Sebastian

Paul Phillips

unread,
Oct 14, 2012, 11:37:30 AM10/14/12
to Sebastian Meßmer, scala-l...@googlegroups.com


On Sun, Oct 14, 2012 at 8:19 AM, Sebastian Meßmer <ma...@smessmer.de> wrote:

I tried to increase the JVM heap space but it didn't help. How can I tell ant to use more memory?


export ANT_OPTS="-Xmx3g -Xms3g -Xss2m -XX:MaxPermSize=384m -XX:+UseParallelGC"

...or whatever ANT_OPTS you like, that's what I use - it's overkill on the memory side.  (I'm not sure why we still have defaults which can't build.)

Reply all
Reply to author
Forward
0 new messages