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

FATAL: Bounds exceeds available space : size=1048576, offset=1048577 java.lang.IndexOutOfBoundsException: Bounds exceeds available space

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • core
    • None
    • jenkins-lts java-16

      Running as SYSTEM
      [EnvInject] - Loading node environment variables.
      Building in workspace /Users/admin/.jenkins/workspace/Jenkins_Test
      [Jenkins_Test] $ /bin/sh -xe /var/folders/n6/kk704rf932j0yfx8phyrwrd80000gn/T/jenkins2404387466112032120.sh
      + echo $'\346\265\213\350\257\225'
      测试
      FATAL: Bounds exceeds available space : size=1048576, offset=1048577
      java.lang.IndexOutOfBoundsException: Bounds exceeds available space : size=1048576, offset=1048577
      at com.sun.jna.Memory.boundsCheck(Memory.java:221)
      at com.sun.jna.Memory.getByte(Memory.java:443)
      at hudson.util.ProcessTree$Darwin$DarwinProcess$1StringArrayMemory.skip0(ProcessTree.java:1741)
      at hudson.util.ProcessTree$Darwin$DarwinProcess.parse(ProcessTree.java:1795)
      at hudson.util.ProcessTree$Darwin$DarwinProcess.getEnvironmentVariables(ProcessTree.java:1683)
      at hudson.util.ProcessTree$OSProcess.hasMatchingEnvVars(ProcessTree.java:338)
      at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:732)
      at hudson.Launcher$LocalLauncher.kill(Launcher.java:1015)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:525)
      at hudson.model.Run.execute(Run.java:1907)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)
      Finished: FAILURE

          [JENKINS-65517] FATAL: Bounds exceeds available space : size=1048576, offset=1048577 java.lang.IndexOutOfBoundsException: Bounds exceeds available space

          Zhao added a comment -

          The same configuration does not fail on another host

          Zhao added a comment - The same configuration does not fail on another host

          Brent Duffy added a comment -

          Hi Zhao, I am also seeing this same "FATAL: Bounds exceeds available space" issue on a macOS Big Sur machine with the latest OS updates after upgrading to Xcode 12.5.  I'm not seeing the issue on another machine that has Xcode 12.4.

          Brent Duffy added a comment - Hi Zhao, I am also seeing this same "FATAL: Bounds exceeds available space" issue on a macOS Big Sur machine with the latest OS updates after upgrading to Xcode 12.5.  I'm not seeing the issue on another machine that has Xcode 12.4.

          Sebastian added a comment -

          Hello,

          we have been seeing this in our company as well, after updating mac to Big Sur.

          MacOS BigSur 11.3.1

          Jenkins 2.277.4

          XCode 12.5

          It's crashing on finish of some jobs after doing everything else. What is important, it's not happening always on same job - once it finishes fine, once with this error. Here's my error message and trace:

          FATAL: Bounds exceeds available space : size=1048576, offset=1048577
          java.lang.IndexOutOfBoundsException: Bounds exceeds available space : size=1048576, offset=1048577
          	at com.sun.jna.Memory.boundsCheck(Memory.java:221)
          	at com.sun.jna.Memory.getByte(Memory.java:443)
          	at hudson.util.ProcessTree$Darwin$DarwinProcess$1StringArrayMemory.readString(ProcessTree.java:1734)
          	at hudson.util.ProcessTree$Darwin$DarwinProcess.parse(ProcessTree.java:1806)
          	at hudson.util.ProcessTree$Darwin$DarwinProcess.getEnvironmentVariables(ProcessTree.java:1683)
          	at hudson.util.ProcessTree$OSProcess.hasMatchingEnvVars(ProcessTree.java:338)
          	at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:732)
          	at hudson.Launcher$LocalLauncher.kill(Launcher.java:1015)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:525)
          	at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:148)
          	at hudson.model.Run.execute(Run.java:1907)
          	at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:76)
          	at hudson.model.ResourceController.execute(ResourceController.java:97)
          	at hudson.model.Executor.run(Executor.java:429)
          Finished: FAILURE
          

          Sebastian added a comment - Hello, we have been seeing this in our company as well, after updating mac to Big Sur. MacOS BigSur 11.3.1 Jenkins 2.277.4 XCode 12.5 It's crashing on finish of some jobs after doing everything else. What is important, it's not happening always on same job - once it finishes fine, once with this error. Here's my error message and trace: FATAL: Bounds exceeds available space : size=1048576, offset=1048577 java.lang.IndexOutOfBoundsException: Bounds exceeds available space : size=1048576, offset=1048577 at com.sun.jna.Memory.boundsCheck(Memory.java:221) at com.sun.jna.Memory.getByte(Memory.java:443) at hudson.util.ProcessTree$Darwin$DarwinProcess$1StringArrayMemory.readString(ProcessTree.java:1734) at hudson.util.ProcessTree$Darwin$DarwinProcess.parse(ProcessTree.java:1806) at hudson.util.ProcessTree$Darwin$DarwinProcess.getEnvironmentVariables(ProcessTree.java:1683) at hudson.util.ProcessTree$OSProcess.hasMatchingEnvVars(ProcessTree.java:338) at hudson.util.ProcessTree$Unix.killAll(ProcessTree.java:732) at hudson.Launcher$LocalLauncher.kill(Launcher.java:1015) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:525) at com.tikal.jenkins.plugins.multijob.MultiJobBuild$MultiJobRunnerImpl.run(MultiJobBuild.java:148) at hudson.model.Run.execute(Run.java:1907) at com.tikal.jenkins.plugins.multijob.MultiJobBuild.run(MultiJobBuild.java:76) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) Finished: FAILURE

          Julius added a comment -

          This exact issue just started affecting one of our mac agents too.
          Builds fail at the end even though they've otherwise run a successful build.
          We're using the latest Big Sur, but XCode 12.0

          Julius added a comment - This exact issue just started affecting one of our mac agents too. Builds fail at the end even though they've otherwise run a successful build. We're using the latest Big Sur, but XCode 12.0

          John added a comment -

          I'm seeing the same problem. Only occuring on builds configured via the UI and not any jobs run from pipeline scripts.

          Affects each job approx. 40% of the time but i can't see a pattern to the failures

          Running on a macOS 11.3.1 agent with Xcode 12.5. Jenkins 2.258

          John added a comment - I'm seeing the same problem. Only occuring on builds configured via the UI and not any jobs run from pipeline scripts. Affects each job approx. 40% of the time but i can't see a pattern to the failures Running on a macOS 11.3.1 agent with Xcode 12.5. Jenkins 2.258

          Basil Crow added a comment -

          Duplicates JENKINS-64347. To work around the issue, set the -Dhudson.util.ProcessTreeKiller.disable=true Java property on the agent.

          Basil Crow added a comment - Duplicates JENKINS-64347 . To work around the issue, set the -Dhudson.util.ProcessTreeKiller.disable=true Java property on the agent.

            damon Zhao
            damon Zhao
            Votes:
            5 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: