Open wks opened 2 days ago
What failure rate are you seeing? I just ran ~200~ 1100 invocations and saw no failures.
My initial tests were on JDK 17.
I've now moved to JDK 11 and I can see occasional failures (8/1484). It's interesting that I saw zero failures under JDK 17. I'll do more extensive testing with JDK 17 to see whether the failure eventually surfaces.
When running the
pmd
benchmark indacapo-23.11-chopin.jar
, there is a chance that the digest verification will fail. The generated "pmd-report.txt" differs from the expected output.It can be reproduced by simply running the following command repeatedly.
The MMTk project uses DaCapo to test its OpenJDK binding in the CI, and it often produces error when running
pmd
. See: https://github.com/mmtk/mmtk-openjdk/actions/runs/11064388662/job/30742621309?pr=289I collected three bad
pmd-report.txt
outputs.Output 1 (run with MMTk-OpenJDK with OpenJDK 11.0.19):
Output 2: (run with MMTk-OpenJDK with OpenJDK 11.0.19)
Output 3: (run with openjdk 22.0.2.u9-1 from ArchLinux)
What's common in the three runs is that the line number is not printed, and it shows
NullPointerException
where a lint error message should be printed.The two erroneous outputs (1 and 2) from MMTk showed
null
as the message of the exception. That may be related to memory management details of MMTk or OpenJDK 11.0.19.Output 3 showed the exception message
Cannot read field "visibility" because "sig" is null
. It should be caused by an expressionsig.visibility
wheresig
isnull
. Such expression occurs twice in PMD 6.55.0. I still don't know why this happens, yet, but I think it is either a bug in PMD 6.55.0 itself or the test harness. It should be possible to find the reason by printing the stack trace at theNullPointerException
.