Closed timja closed 4 years ago
I suspect it is a regression after https://github.com/jenkinsci/jenkins/pull/4254 in 2.112, CC jsoref. I am working on it
In my case the JVM just hangs when I try to reproduce this issue. Not sure why, it should not happen in this way
I was able to reproduce this just by starting Jenkins (master) on a fresh home dir, installing suggested plugins, making a trivial Pipeline job, and running it. Root cause:
java.lang.NullPointerException at org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.StaticWhitelist.loadBlacklist(StaticWhitelist.java:317) at org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.StaticWhitelist.(StaticWhitelist.java:323)
pointing here and suggesting a resource loading problem.
Verified that #4254 is responsible by bisecting using WorkflowPluginTest.linearFlow. So far I have not found a mistake by code inspection.
jglick my theory is a race condition in the collection. The code changed from thread-safe Vector implementation to unsafe Array list. I did review the code before merging and it did not seem to be a problem, but this is my best bet at the moment
Could we maybe add a simple test in ATH SmokeTest set or so that would have caught this? Thanks
Tracked the problem down to a bad refactoring of a loop (took me a long time to notice this in the diff!). Will try to verify the fix using JTH.
batmat regarding ATH @SmokeTest’s I think the issue is that they only include tests which do not use any plugins. Adding plugins to the mix would make the test run nondeterministic unless we also pinned versions rather than using the latest from the UC.
Ah and the problem only affects plugins which include some sort of library (i.e., non-hpi dependency).
Is there a timeline for the release of 2.213?
The release it out. It may take a while for mirrors, Docker packages and the website to be updated, but it is possible to download the WAR file from https://repo.jenkins-ci.org/webapp/#/artifacts/browse/tree/General/releases/org/jenkins-ci/main/jenkins-war/2.213/jenkins-war-2.213.war
Changelog update: https://github.com/jenkins-infra/jenkins.io/pull/2743
kpop:
Many thanks for the quick response and new release. It's working fine on my installation.
[Originally duplicated by: JENKINS-60641]
[Originally duplicated by: JENKINS-60648]
Originally reported by kpop, imported from: Jenkins resource loading issue in AntClassloader. scriptsecurity.sandbox.whitelists.StaticWhitelist NoClassDefFoundError