Issue Type: Bug Bug
Assignee: Unassigned
Attachments: env.txt
Components: core
Created: 15/Jul/13 11:53 AM
Description:

We're experiencing failures in all our builds with the below error in console output. I've been looking at the source code of both Jenkins and Treemap itself and I can't explain how Treemap.putAll would ever generate a NoSuchElementException.

For some reason this problem is 100% reproducible and dependent on (at least) the content of our junitResult.xml files in the build directories of our jobs. At the end of my debugging session I could modify the <className> element of one test case of one build of one job and make the problem either occur or go away.

However I doubt that it has anything to do with the className element per se.I think that in this case it just happened to be the classname element of this particular build and job.

I'm more inclined to believe it has to do with unsynchronized access from multiple threads. Otherwise I can't explain the exception that is thrown.

We first ran into this problem with Jenkins 1.517, but we just upgraded to 1.522 and it still occurs.

Am I correct in my understanding that Treemap.putAll should never generate this exception? Is this a bug?

FATAL: null
java.util.NoSuchElementException
at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1098)
at java.util.TreeMap$EntryIterator.next(TreeMap.java:1136)
at java.util.TreeMap$EntryIterator.next(TreeMap.java:1131)
at java.util.TreeMap.buildFromSorted(TreeMap.java:2372)
at java.util.TreeMap.buildFromSorted(TreeMap.java:2396)
at java.util.TreeMap.buildFromSorted(TreeMap.java:2396)
at java.util.TreeMap.buildFromSorted(TreeMap.java:2396)
at java.util.TreeMap.buildFromSorted(TreeMap.java:2396)
at java.util.TreeMap.buildFromSorted(TreeMap.java:2396)
at java.util.TreeMap.buildFromSorted(TreeMap.java:2396)
at java.util.TreeMap.buildFromSorted(TreeMap.java:2322)
at java.util.TreeMap.putAll(TreeMap.java:296)
at hudson.EnvVars.<init>(EnvVars.java:82)
at hudson.EnvVars$GetEnvVars.call(EnvVars.java:217)
at hudson.EnvVars$GetEnvVars.call(EnvVars.java:215)
at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
at hudson.EnvVars.getRemote(EnvVars.java:212)
at hudson.model.Computer.getEnvironment(Computer.java:907)
at jenkins.model.CoreEnvironmentContributor.buildEnvironmentFor(CoreEnvironmentContributor.java:28)
at hudson.model.Run.getEnvironment(Run.java:2046)
at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:933)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:84)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:60)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
at hudson.model.Build$BuildExecution.build(Build.java:199)
at hudson.model.Build$BuildExecution.doRun(Build.java:160)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)
at hudson.model.Run.execute(Run.java:1576)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:241)

Environment: SunOS ws200491 5.10 Generic_147440-12 sun4v sparc sun4v

Running jenkins as: java -jar jenkins.war

The system properties from systemInfo are attached. If more is needed let me know.
Project: Jenkins
Priority: Blocker Blocker
Reporter: Maurice van der Pot
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to