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

Tar implimentation can't handle > 8GB and doesn't error out.

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      During archiving from a slave the untaring can fail with files > 8GB. This is because the tar creator makes a corrupt archive. I think it doesn't properly null terminate the size value when the file size is gets to the 12th digit - which is a violation of tar spec (from Wikipedia tar article: Numeric values are encoded in octal numbers using ASCII digits, with leading zeroes. For historical reasons, a final NUL or space character should be used. Thus although there are 12 bytes reserved for storing the file size, only 11 octal digits can be stored. This gives a maximum file size of 8 gigabytes on archived files.)
      Changing to gnutar might be nice to handle large files, or at least making the library error out when it hits large files rather than happily building corrupt archives.

      Error caused by this bug (due to reading the corrupt header):

      Archiving artifacts
      ERROR: Publisher hudson.tasks.ArtifactArchiver aborted due to exception
      java.lang.IllegalArgumentException: Negative time
      at java.io.File.setLastModified(File.java:1258)
      at hudson.FilePath.readFromTar(FilePath.java:1605)
      at hudson.FilePath.copyRecursiveTo(FilePath.java:1530)
      at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:117)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:649)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:625)
      at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:603)
      at hudson.model.Build$RunnerImpl.post2(Build.java:161)
      at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:572)
      at hudson.model.Run.run(Run.java:1386)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:145)
      Finished: FAILURE

        Attachments

          Issue Links

            Activity

            keibaker keith baker created issue -
            mindless Alan Harder made changes -
            Field Original Value New Value
            Component/s core [ 15593 ]
            Component/s copyartifact [ 15692 ]
            Assignee Alan Harder [ mindless ]
            danielbeck Daniel Beck made changes -
            Link This issue is duplicated by JENKINS-25006 [ JENKINS-25006 ]
            dannystaple Danny Staple made changes -
            Link This issue is related to JENKINS-21905 [ JENKINS-21905 ]
            olenz Olaf Lenz made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            olenz Olaf Lenz made changes -
            Assignee Olaf Lenz [ olenz ]
            oleg_nenashev Oleg Nenashev made changes -
            Status In Progress [ 3 ] Open [ 1 ]
            oleg_nenashev Oleg Nenashev made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            oleg_nenashev Oleg Nenashev made changes -
            Assignee Olaf Lenz [ olenz ] Oleg Nenashev [ oleg_nenashev ]
            oleg_nenashev Oleg Nenashev made changes -
            Labels lts-candidate
            danielbeck Daniel Beck made changes -
            Link This issue depends on JENKINS-28013 [ JENKINS-28013 ]
            danielbeck Daniel Beck made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Resolved [ 5 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue depends on JENKINS-28013 [ JENKINS-28013 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is related to JENKINS-28013 [ JENKINS-28013 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is related to JENKINS-28012 [ JENKINS-28012 ]
            integer Kanstantsin Shautsou made changes -
            Labels lts-candidate revert-candidate
            danielbeck Daniel Beck made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            danielbeck Daniel Beck made changes -
            Labels revert-candidate
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 1670 (Web Link)" [ 13132 ]
            jglick Jesse Glick made changes -
            Assignee Oleg Nenashev [ oleg_nenashev ] Kanstantsin Shautsou [ integer ]
            jglick Jesse Glick made changes -
            Status Reopened [ 4 ] Open [ 1 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Resolved [ 5 ]
            danielbeck Daniel Beck made changes -
            Labels lts-candidate
            olivergondza Oliver Gond┼ża made changes -
            Labels lts-candidate 1.625.2-fixed
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is duplicated by JENKINS-29140 [ JENKINS-29140 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 140823 ] JNJira + In-Review [ 189280 ]

              People

              Assignee:
              integer Kanstantsin Shautsou
              Reporter:
              keibaker keith baker
              Votes:
              6 Vote for this issue
              Watchers:
              26 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: