On one of our virtualized servers, building jcstress fails, because the test case LinuxSysfsTopologyTest errors out with:
Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.479 sec <<< FAILURE! - in org.openjdk.jcstress.os.topology.LinuxSysfsTopologyTest
test_Current(org.openjdk.jcstress.os.topology.LinuxSysfsTopologyTest) Time elapsed: 0.037 sec <<< ERROR!
org.openjdk.jcstress.os.topology.TopologyParseException: org.openjdk.jcstress.os.topology.TopologyParseException: Core belongs to different packages: 3
at org.openjdk.jcstress.os.topology.LinuxSysfsTopology.<init>(LinuxSysfsTopology.java:128)
at org.openjdk.jcstress.os.topology.LinuxSysfsTopology.<init>(LinuxSysfsTopology.java:60)
at org.openjdk.jcstress.os.topology.LinuxSysfsTopologyTest.test_Current(LinuxSysfsTopologyTest.java:27)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Caused by: org.openjdk.jcstress.os.topology.TopologyParseException: Core belongs to different packages: 3
at org.openjdk.jcstress.os.topology.AbstractTopology.add(AbstractTopology.java:75)
at org.openjdk.jcstress.os.topology.LinuxSysfsTopology.<init>(LinuxSysfsTopology.java:120)
... 29 more
Please see the attached sysfs-7.txt files, which describes the topology present on the server, like the other files present in jcstress-core/src/test/resources/topology. I created the file with the following command:
$ for x in /sys/devices/system/cpu/cpu*/topology/* ; do printf '%s: ' "${x:24}"; cat "$x" ; done
Tested with current master:
$ git describe
0.5-111-ge962c1b
Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.479 sec <<< FAILURE! - in org.openjdk.jcstress.os.topology.LinuxSysfsTopologyTest
test_Current(org.openjdk.jcstress.os.topology.LinuxSysfsTopologyTest) Time elapsed: 0.037 sec <<< ERROR!
org.openjdk.jcstress.os.topology.TopologyParseException: org.openjdk.jcstress.os.topology.TopologyParseException: Core belongs to different packages: 3
at org.openjdk.jcstress.os.topology.LinuxSysfsTopology.<init>(LinuxSysfsTopology.java:128)
at org.openjdk.jcstress.os.topology.LinuxSysfsTopology.<init>(LinuxSysfsTopology.java:60)
at org.openjdk.jcstress.os.topology.LinuxSysfsTopologyTest.test_Current(LinuxSysfsTopologyTest.java:27)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Caused by: org.openjdk.jcstress.os.topology.TopologyParseException: Core belongs to different packages: 3
at org.openjdk.jcstress.os.topology.AbstractTopology.add(AbstractTopology.java:75)
at org.openjdk.jcstress.os.topology.LinuxSysfsTopology.<init>(LinuxSysfsTopology.java:120)
... 29 more
Please see the attached sysfs-7.txt files, which describes the topology present on the server, like the other files present in jcstress-core/src/test/resources/topology. I created the file with the following command:
$ for x in /sys/devices/system/cpu/cpu*/topology/* ; do printf '%s: ' "${x:24}"; cat "$x" ; done
Tested with current master:
$ git describe
0.5-111-ge962c1b
- links to
-
Review openjdk/jcstress/47