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

Mercurial plugin crashes when polling repository

      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)

          [JENKINS-15733] Mercurial plugin crashes when polling repository

          hello,

          The same happened to me. I upgraded the Jenkins and after two or three polling the same error popped up.

          Barbara Schael added a comment - hello, The same happened to me. I upgraded the Jenkins and after two or three polling the same error popped up.

          Jesse Glick added a comment -

          What Jenkins version? This looks like a core bug from what I can see so far.

          Jesse Glick added a comment - What Jenkins version? This looks like a core bug from what I can see so far.

          jessebs added a comment -

          Happens for me on 1.489

          jessebs added a comment - Happens for me on 1.489

          Karl Werf added a comment -

          Jenkins 1.489

          Karl Werf added a comment - Jenkins 1.489

          Anton B added a comment -

          Same problem for me when upgrading to Jenkins 1.489 with Jenkins Mercurial plugin 1.41.

          Anton B added a comment - Same problem for me when upgrading to Jenkins 1.489 with Jenkins Mercurial plugin 1.41.

          Jesse Glick added a comment -

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

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

          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.

          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 .

          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.)

          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.)

          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.

          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.

          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

          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

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

              Created:
              Updated:
              Resolved: