Repository navigation
Description
http://vmfarm.rtp.raleigh.ibm.com/job_output.php?id=115399317
[Linux S390 64bit] 80 Load_Level_2.abbs.5mins.Mode107
-Xgcpolicy:optthruput -Xdebug -Xrunjdwp:transport=dt_socket,address=8888,server=y,onthrow=no.pkg.foo,launch=echo -Xjit:count=0 -Xnocompressedrefs
50x grinder - failed 2/50
http://vmfarm.rtp.raleigh.ibm.com/job_output.php?id=115412348 which is different, see below
http://vmfarm.rtp.raleigh.ibm.com/job_output.php?id=115412371
75x grinder on previous build (104097) http://vmfarm.rtp.raleigh.ibm.com/build_info.php?build_id=104128- more failures
Working backwards
104068 http://vmfarm.rtp.raleigh.ibm.com/build_info.php?build_id=104131 - 1 failure
104059 containing eclipse-omr/omr#7962 http://vmfarm.rtp.raleigh.ibm.com/build_info.php?build_id=104135 - 4 failures
104021 containing #22548 http://vmfarm.rtp.raleigh.ibm.com/build_info.php?build_id=104138 - 2 x NegativeArraySizeException failure
103992 http://vmfarm.rtp.raleigh.ibm.com/build_info.php?build_id=104142 - passed
j> 08:47:27 Type=Segmentation error vmState=0x00000000
j> 08:47:27 J9Generic_Signal_Number=00000018 Signal_Number=0000000b Error_Value=00000000 Signal_Code=00000001
j> 08:47:27 Handler1=000003FF8E9D7EA0 Handler2=000003FF8E72AD48 InaccessibleAddress=0000040314150000
j> 08:47:27 gpr0=0000000000000000 gpr1=00000003FFFFFFFC gpr2=000003FF0C5D5A00 gpr3=000003FF3008FD00
j> 08:47:27 gpr4=0000000000000000 gpr5=00000000FFFFFFFF gpr6=000003FF14150E68 gpr7=0000000000000000
j> 08:47:27 gpr8=0000000000000001 gpr9=00000000FFFFFFFF gpr10=000003FF88043E00 gpr11=000003FF0C5D5A00
j> 08:47:27 gpr12=000003FF3008FD00 gpr13=000003FF8CEEC2E0 gpr14=000003FF8E9B5BE0 gpr15=000003FEE6B2C248
j> 08:47:27 psw=000003FF8E9B56C2 mask=0705200180000000 fpc=00080000 bea=000003FF8E9B5BDA
j> 08:47:27 fpr0=42c223f74ee6a582 (f: 1323738496.000000, d: 3.989136e+13)
j> 08:47:27 fpr1=3fe62e42fefa39ef (f: 4277811712.000000, d: 6.931472e-01)
j> 08:47:27 fpr2=4031b2b4f0fe7bca (f: 4043209728.000000, d: 1.769807e+01)
j> 08:47:27 fpr3=0000000000000007 (f: 7.000000, d: 3.458460e-323)
j> 08:47:27 fpr4=3f22ae1b3ee5a152 (f: 1055236416.000000, d: 1.425179e-04)
j> 08:47:27 fpr5=000003ff14017110 (f: 335638784.000000, d: 2.170968e-311)
j> 08:47:27 fpr6=bfdfbec61cb78ee7 (f: 481791712.000000, d: -4.960189e-01)
j> 08:47:27 fpr7=ae3867cc8eaef090 (f: 2393829632.000000, d: -4.907365e-86)
j> 08:47:27 fpr8=000003ff8e889208 (f: 2391314944.000000, d: 2.171983e-311)
j> 08:47:27 fpr9=0000000000000000 (f: 0.000000, d: 0.000000e+00)
j> 08:47:27 fpr10=000003ff0c5c6650 (f: 207382096.000000, d: 2.170904e-311)
j> 08:47:27 fpr11=000003ffff37df38 (f: 4281851648.000000, d: 2.172917e-311)
j> 08:47:27 fpr12=000003fee6b2d910 (f: 3870480640.000000, d: 2.170592e-311)
j> 08:47:27 fpr13=000002aa20fa8970 (f: 553290112.000000, d: 1.447474e-311)
j> 08:47:27 fpr14=0000000000041000 (f: 266240.000000, d: 1.315400e-318)
j> 08:47:27 fpr15=000003ffff37ce70 (f: 4281847296.000000, d: 2.172917e-311)
j> 08:47:27 Module=/j9vm/ascii/builds/bld_104112/sdk/xz6480/jre/lib/s390x/default/libj9vm29.so
j> 08:47:27 Module_base_address=000003FF8E900000
j> 08:47:27 Target=2_90_20251009_104112 (Linux 4.18.0-553.77.1.el8_10.s390x)
j> 08:47:27 CPU=s390x (4 logical CPUs) (0x1f6614000 RAM)
j> 08:47:27 ----------- Stack Backtrace -----------
j> 08:47:27 allocate_dimension+0x32 (0x000003FF8E9B56C2 [libj9vm29.so+0xb56c2])
j> 08:47:27 helperMultiANewArray+0x108 (0x000003FF8E9B5BE0 [libj9vm29.so+0xb5be0])
j> 08:47:27 old_slow_jitAMultiNewArray+0x130 (0x000003FF8D9E1700 [libj9jit29.so+0xae1700])
j> 08:47:27 jitAMultiNewArray+0x6e (0x000003FF8D9F814E [libj9jit29.so+0xaf814e])
j> 08:47:27 ---------------------------------------
j> 08:47:27 JVMDUMP039I Processing dump event "gpf", detail "" at 2025/10/09 08:47:27 - please wait.
j> 08:47:27 JVMDUMP032I JVM requested System dump using '/tmp/bld_104112/abbs.5mins/115399317/JLTF-jgrinder-abbs-mode107-20251009-0846/core.20251009.084727.1043628.0001.dmp' in response to an event
p> 20251009-08:47:27 Dump /tmp/bld_104112/abbs.5mins/115399317/JLTF-jgrinder-abbs-mode107-20251009-0846/core.1044011 spotted.
p> 20251009-08:47:27 Attempted to collect /proc/pid/maps and /proc/pid/smaps
j> 08:47:32 JVMDUMP010I System dump written to /tmp/bld_104112/abbs.5mins/115399317/JLTF-jgrinder-abbs-mode107-20251009-0846/core.20251009.084727.1043628.0001.dmp
j> 08:47:32 JVMDUMP032I JVM requested Java dump using '/tmp/bld_104112/abbs.5mins/115399317/JLTF-jgrinder-abbs-mode107-20251009-0846/javacore.20251009.084727.1043628.0002.txt' in response to an event
p> 20251009-08:47:32 Dump /tmp/bld_104112/abbs.5mins/115399317/JLTF-jgrinder-abbs-mode107-20251009-0846/core.20251009.084727.1043628.0001.dmp spotted.
p> 20251009-08:47:33 Attempted to collect /proc/pid/maps and /proc/pid/smaps
p> 20251009-08:47:33 Dump /tmp/bld_104112/abbs.5mins/115399317/JLTF-jgrinder-abbs-mode107-20251009-0846/javacore.20251009.084727.1043628.0002.txt spotted.
j> 08:47:36 20251009 08:47:35 <Primary|SimpleDriver|testcases.serialization.SerializationBasicHFS(dumponfailure)|544|Default Invocant> ERROR: JGrinder testcase failed.
j> 08:47:36 Testcase return code was 4
j> 08:47:36
j> 08:47:36 Throwable trace:
j> 08:47:36 java.io.IOException: Bad file descriptor
j> 08:47:36 at java.io.FileOutputStream.writeBytes(Native Method)
j> 08:47:36 at java.io.FileOutputStream.write(FileOutputStream.java:387)
j> 08:47:36 at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1944)
j> 08:47:36 at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1853)
j> 08:47:36 at java.io.ObjectOutputStream.<init>(ObjectOutputStream.java:264)
j> 08:47:36 at testcases.serialization.SerializationBasicHFS.run(SerializationBasicHFS.java:79)
http://vmfarm.rtp.raleigh.ibm.com/job_output.php?id=115412348
j> 16:51:39 20251009 16:51:39 Result Summary ERROR: Primary|SimpleDriver|testcases.benchmarks.jbytemark.jBYTEmark(nnet,dumponfailure)|407|Default Invocant reported failed with message: java.lang.NegativeArraySizeException: -66952648
j> 16:51:39 at testcases.benchmarks.jbytemark.NeuralNetTest.<init>(NeuralNetTest.java:177)
j> 16:51:39 at testcases.benchmarks.jbytemark.jBYTEmark.run(jBYTEmark.java:163)
Activity
pshipton commentedon Oct 9, 2025
@hzongaro @r30shah (not sure if it's restricted to Z) pls take a look at this regression.
r30shah commentedon Oct 9, 2025
@ehsankianifar Pls take a look at the failures.
r30shah commentedon Oct 9, 2025
This is most likely related to the mutianewarcay evaluator changes in #22548
@ehsankianifar Please confirm if it is related to the changes and if it is, pls investigate if it can be fixed soon, else we can backout the changes while we investigate.
ehsankianifar commentedon Oct 9, 2025
Probably related to recently merged amultinewarray evaluator changes I did. I am looking at it.
ehsankianifar commentedon Oct 9, 2025
The top Jit frame in the stack slots show that we failed inline allocation and jumped to the helper call (pc value is the helper call for multianewarray allocation):
R2 suppose to have the dimensions value in its lower 32 bits but the register map show 0! From the pc value I find the helper call code snippet and it show that the "Dimentions" parameter is not evaluated properly!
here is the helper call snippet in core dump that we expect the dimensions parameter in GPR2:
the inline evaluator code from core dump:
Since the dimension count is always 2 (otherwise we do not inline). We do not need to evaluate the dimensions child for the inline code. If the reference count of the child is 1, we do not even evaluate it and let the helper builder evaluate it. In this case though, it was not evaluated neither in inline evaluator nor in helper dispatch sequence.
I try to find what is happening.
ehsankianifar commentedon Oct 9, 2025
We have two or more multiANewArray trees. When we evaluate the nodes for all trees the reference count of the second child (dimsRegister) is more than 1 so we evaluate it. The dispatch call snippet properly bind it to the parameters. For the last tree that gets evaluated, the reference count is 1 so we don't evaluate it and the dispatch call sequence ignores that parameter since it was evaluated before! The expected parameter register however, doesn't have the correct value since it was originally evaluated in a non R2 register and the helper dispatch was not called in the previous trees to copy the register to the correct register (R2).
I think we must always evaluate all the children regardless of the reference count.
r30shah commentedon Oct 9, 2025
@ehsankianifar I do not agree with the analysis. Irrespective of the node being evaluated or not, I think performCall should evaluate all the children and use deps to assign appropriate regs before call. It should be investigated why it did not do it for the second time. So If the Ref count of node is 2 in first anewarray - We should have evaluated in mainline before ICF. When it reaches the second anewarray - perform call function should call evaluate on the dimensions node and use pre-deps to set it to proper reg before making the call.
Can you share the log file.
ehsankianifar commentedon Oct 10, 2025
The RA store and load the DimRegister inside the OOL dispatch code instead of the inline code. As a result the register would have the correct value only if the OOL of each alloc tree was executed. This is the last two alloc code snippets from the core file and as you can see, in the first snippet, R8 is the dims register. In the OOL dispatch of the first tree, R8 was saved in
0xe0(%r5)and in the OOL of the second tree it expect to have the dims value in the same location (0xe0(%r5)) but the actual value is zero since the dispatch sequence of the first tree was never executed:We need to all the dimsReg to the post dependency conditions of the evaluator so it gets the correct value in the inline code and in case of helper dispatch, the value is correct.
ehsankianifar commentedon Oct 10, 2025
I am still trying to get a failure with jit compilation log.
ehsankianifar commentedon Oct 10, 2025
I opened this PR to Fix this issue: #22763
Without having the dim register on the dependency conditions, what stops the RA to follow this path for dimReg allocation?
r30shah commentedon Oct 12, 2025
@ehsankianifar - We need to get the log file with traceRA to confirm. Are you suggesting that R8 was spilled in some spill-slot in first OOL before helper call and reverse spilled - but in second OOL it did not spill it, only generated reverse spill? I think it is better to look at the log file with traceRA and see what we have done to understand this. Just think, we have live registers throughout the generated code that spans multiple node, if we spill some register and then expect that slot to contains the same value throughout - it would not work with lot of code that has multiple ICF.
As I said, the fix you have with an addition to attach dimReg to dependency condition - even though it is not used in ICF is the conservative solution but I want to ensure that is tied to this failure, so please collect log file with additional
traceRAin addition totraceCGto take a look. You can omittraceFull- that can reduce the time spent in logging activity and increase the likelihood of producing failure.Re: #22757 (comment) - Is it question, please take a look at the OOL [1], Backward RA will start from Control-Flow End -> Fast Path Section -> Helper Code -> Instruction Before Start if ICF. How would RA work if We do not allocate inline fast path (That is what your diagram suggests). ,
Without taking a look at the log file as I said earlier - at least in this case, I am hesitant to attach PR you opened up fix with this failure, it may end up that we have some odd bug that the way your code uses OOL/dispatch is being triggered, We should understand the bug so that in future we can ensure that we make right decisions for ICF/OOL in our evaluators,
[1]. https://github.com/eclipse-omr/omr/blob/36622ffd848edb4d67712978b6eff6f014e16b02/compiler/codegen/OutOfLineCodeSection.hpp#L38
ehsankianifar commentedon Oct 14, 2025
I Was not able to get a compilation log file with RA and similar failure. I try to artificially add some register pressure and try again to see if i get better luck. I extracted the path that DimsReg has followed in the dump file and it seem we have a there is a lot of spill but all of it happened in the OOL code. You can see the change in this log file extracted from core dump:
tmp2.log
ehsankianifar commentedon Oct 16, 2025
#22763 was merged. It should resolve the bug mentioned in this issue.
Z: Fix multianewarray evaluator register dependency bug