A RuntimeException is thrown in SharedMemoryHashtable while running service framework and event service tests. Once the RTE occurs any repeated attempts to run apps using ITC will result in the same exception. The only fix we have found is to reboot the machine.
To reproduce:
Get the latest oj integration repo
cd oj/
make services_smoketests
The test will start failing after a 4 or 5 smoke test runs.
Source code for the smoketest can be found here
oj/services/framework/test or oj/services/events/test
Stacktrace:
mod-run-junit-legacy-with-args:
[exec] JUnit version 4.5
[exec] .register
[exec] .unregister
[exec] .lookup by interface
[exec] magic = 0xffff
[exec] E
[exec] Time: 0.054
[exec] There was 1 failure:
[exec] 1) com.sun.service.impl.InProcessRegistryTest
[exec] java.lang.RuntimeException: No entry at this location: 1950
[exec] at sun.shared.registry.SharedMemoryHashtable$Entry.<init>(SharedMemoryHashtable.java:660)
[exec] at sun.shared.registry.SharedMemoryHashtable$Entry.<init>(SharedMemoryHashtable.java:651)
[exec] at sun.shared.registry.SharedMemoryHashtable.rebuildBucket(SharedMemoryHashtable.java:386)
[exec] at sun.shared.registry.SharedMemoryHashtable.getBucketHead(SharedMemoryHashtable.java:367)
[exec] at sun.shared.registry.SharedMemoryHashtable.remove(SharedMemoryHashtable.java:581)
[exec] at sun.shared.CrossProcessRegistry.remove(CrossProcessRegistry.java:182)
[exec] at com.sun.shared.registry.SecureRegistry.remove(SecureRegistry.java:162)
[exec] at com.sun.service.TestSuite.staticInit(Unknown Source)
[exec] at com.sun.service.impl.InProcessRegistryTest.staticInit(Unknown Source)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[exec] at java.lang.reflect.Method.invoke(Method.java:613)
[exec] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
[exec] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
[exec] at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
[exec] at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
[exec] at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
[exec] at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
[exec] at org.junit.runners.Suite.runChild(Suite.java:115)
[exec] at org.junit.runners.Suite.runChild(Suite.java:23)
[exec] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
[exec] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
[exec] at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
[exec] at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
[exec] at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
[exec] at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
[exec] at org.junit.runners.Suite.runChild(Suite.java:115)
[exec] at org.junit.runners.Suite.runChild(Suite.java:23)
[exec] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
[exec] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
[exec] at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
[exec] at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
[exec] at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
[exec] at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
[exec] at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
[exec] at org.junit.runner.JUnitCore.run(JUnitCore.java:116)
[exec] at org.junit.runner.JUnitCore.run(JUnitCore.java:107)
[exec] at org.junit.runner.JUnitCore.runMain(JUnitCore.java:88)
[exec] at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:54)
[exec] at org.junit.runner.JUnitCore.main(JUnitCore.java:46)
[exec]
[exec] FAILURES!!!
[exec] Tests run: 3, Failures: 1
[exec]
To reproduce:
Get the latest oj integration repo
cd oj/
make services_smoketests
The test will start failing after a 4 or 5 smoke test runs.
Source code for the smoketest can be found here
oj/services/framework/test or oj/services/events/test
Stacktrace:
mod-run-junit-legacy-with-args:
[exec] JUnit version 4.5
[exec] .register
[exec] .unregister
[exec] .lookup by interface
[exec] magic = 0xffff
[exec] E
[exec] Time: 0.054
[exec] There was 1 failure:
[exec] 1) com.sun.service.impl.InProcessRegistryTest
[exec] java.lang.RuntimeException: No entry at this location: 1950
[exec] at sun.shared.registry.SharedMemoryHashtable$Entry.<init>(SharedMemoryHashtable.java:660)
[exec] at sun.shared.registry.SharedMemoryHashtable$Entry.<init>(SharedMemoryHashtable.java:651)
[exec] at sun.shared.registry.SharedMemoryHashtable.rebuildBucket(SharedMemoryHashtable.java:386)
[exec] at sun.shared.registry.SharedMemoryHashtable.getBucketHead(SharedMemoryHashtable.java:367)
[exec] at sun.shared.registry.SharedMemoryHashtable.remove(SharedMemoryHashtable.java:581)
[exec] at sun.shared.CrossProcessRegistry.remove(CrossProcessRegistry.java:182)
[exec] at com.sun.shared.registry.SecureRegistry.remove(SecureRegistry.java:162)
[exec] at com.sun.service.TestSuite.staticInit(Unknown Source)
[exec] at com.sun.service.impl.InProcessRegistryTest.staticInit(Unknown Source)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[exec] at java.lang.reflect.Method.invoke(Method.java:613)
[exec] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
[exec] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
[exec] at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
[exec] at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
[exec] at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
[exec] at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
[exec] at org.junit.runners.Suite.runChild(Suite.java:115)
[exec] at org.junit.runners.Suite.runChild(Suite.java:23)
[exec] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
[exec] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
[exec] at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
[exec] at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
[exec] at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
[exec] at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
[exec] at org.junit.runners.Suite.runChild(Suite.java:115)
[exec] at org.junit.runners.Suite.runChild(Suite.java:23)
[exec] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
[exec] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
[exec] at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
[exec] at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
[exec] at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
[exec] at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
[exec] at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
[exec] at org.junit.runner.JUnitCore.run(JUnitCore.java:116)
[exec] at org.junit.runner.JUnitCore.run(JUnitCore.java:107)
[exec] at org.junit.runner.JUnitCore.runMain(JUnitCore.java:88)
[exec] at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:54)
[exec] at org.junit.runner.JUnitCore.main(JUnitCore.java:46)
[exec]
[exec] FAILURES!!!
[exec] Tests run: 3, Failures: 1
[exec]
- duplicates
-
JDK-6957857 SharedRegistry fails on enumeration
-
- Closed
-