Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-15733

Mercurial plugin crashes when polling repository

    Details

    • Similar Issues:

      Description

      I upgraded Jenkins and the MercurialSCM plugin yesterday to version 1.41 and now it crashes when trying to poll our repository.

      Started on 2012-nov-06 10:06:07
      ERROR: Failed to record SCM polling for hudson.model.FreeStyleProject@114d662[everything_but_bundle]
      java.lang.ArrayIndexOutOfBoundsException: 1
      at hudson.Launcher$2.launch(Launcher.java:712)
      at hudson.Launcher$ProcStarter.start(Launcher.java:346)
      at hudson.plugins.mercurial.MercurialSCM.joinWithPossibleTimeout(MercurialSCM.java:309)
      at hudson.plugins.mercurial.MercurialSCM.pull(MercurialSCM.java:303)
      at hudson.plugins.mercurial.MercurialSCM.compareRemoteRevisionWith(MercurialSCM.java:252)
      at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
      at hudson.scm.SCM.poll(SCM.java:373)
      at hudson.model.AbstractProject._poll(AbstractProject.java:1471)
      at hudson.model.AbstractProject.poll(AbstractProject.java:1404)
      at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:420)
      at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:449)
      at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            Well this code was introduced in https://github.com/jenkinsci/jenkins/commit/f5cebdc843d2f86642b63f41a2b94f892e9de50a but still unsure what causes it.

            Show
            jglick Jesse Glick added a comment - Well this code was introduced in https://github.com/jenkinsci/jenkins/commit/f5cebdc843d2f86642b63f41a2b94f892e9de50a but still unsure what causes it.
            Hide
            jglick Jesse Glick added a comment -

            Can reproduce by setting /project/parent/version to 1.491-SNAPSHOT and running mvn -Dtest=hudson.plugins.mercurial.MercurialSCMTest#testPollingLimitedToModules2 test-compile surefire:test.

            Show
            jglick Jesse Glick added a comment - Can reproduce by setting /project/parent/version to 1.491-SNAPSHOT and running mvn -Dtest=hudson.plugins.mercurial.MercurialSCMTest#testPollingLimitedToModules2 test-compile surefire:test .
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            changelog.html
            core/src/main/java/hudson/Launcher.java
            core/src/test/java/hudson/LauncherTest.java
            http://jenkins-ci.org/commit/jenkins/58484bb80ca0d6bca745d9962c79b06c536f3266
            Log:
            [FIXED JENKINS-15733] ArrayIndexOutOfBoundsException from Launcher due to misinterpretation of ProcStarter.envs in f5cebdc.
            (Should this field be made a [LinkedHash]Map<String,String> or even EnvVars?
            It is protected in a final class, so effectively package-private, thus not a b/w compat issue.)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html core/src/main/java/hudson/Launcher.java core/src/test/java/hudson/LauncherTest.java http://jenkins-ci.org/commit/jenkins/58484bb80ca0d6bca745d9962c79b06c536f3266 Log: [FIXED JENKINS-15733] ArrayIndexOutOfBoundsException from Launcher due to misinterpretation of ProcStarter.envs in f5cebdc. (Should this field be made a [LinkedHash] Map<String,String> or even EnvVars? It is protected in a final class, so effectively package-private, thus not a b/w compat issue.)
            Hide
            jglick Jesse Glick added a comment -

            Should be fixed in 1.491. I would not use 1.489 due to this. Maybe the fix will be backported to 1.490.

            Show
            jglick Jesse Glick added a comment - Should be fixed in 1.491. I would not use 1.489 due to this. Maybe the fix will be backported to 1.490.
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #2058
            [FIXED JENKINS-15733] ArrayIndexOutOfBoundsException from Launcher due to misinterpretation of ProcStarter.envs in f5cebdc. (Revision 58484bb80ca0d6bca745d9962c79b06c536f3266)

            Result = SUCCESS
            Jesse Glick : 58484bb80ca0d6bca745d9962c79b06c536f3266
            Files :

            • core/src/main/java/hudson/Launcher.java
            • changelog.html
            • core/src/test/java/hudson/LauncherTest.java
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2058 [FIXED JENKINS-15733] ArrayIndexOutOfBoundsException from Launcher due to misinterpretation of ProcStarter.envs in f5cebdc. (Revision 58484bb80ca0d6bca745d9962c79b06c536f3266) Result = SUCCESS Jesse Glick : 58484bb80ca0d6bca745d9962c79b06c536f3266 Files : core/src/main/java/hudson/Launcher.java changelog.html core/src/test/java/hudson/LauncherTest.java

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                karl_werf Karl Werf
              • Votes:
                2 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: