CyanogenMod
  1. CyanogenMod
  2. CYAN-1896

bunzip2 is broken (on some archives)

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Normal Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: BusyBox
    • Labels:
    • Instructions:
      I have read these instructions

      Description

      The busybox builtin bzip2 fails to properly extract a bzip2 compressed file. The following session is from cm-10.1.2-otter.zip (md5sum: 2ec3dbfdf46f33b3e2303e070e2e4e2) on the Kindle Fire (first generation):

      root@android:/data/local # cd /data/local
      root@android:/data/local # wget http://gentoo.osuosl.org/releases/arm/autobuilds/20130209/20130209/armv7a-root@android:/data/local # hardfloat-linux-gnueabi/stage3-armv7a_hardfp-20130209.tar.bz2
      root@android:/data/local # mkdir gentoo
      root@android:/data/local # tar -xf stage3-armv7a_hardfp-20130209.tar.bz2 -C gentoo/
      tar: bunzip error -5
      tar: short read

      It is quite probable that other stage3 tarballs will exhibit the same problem, but I did not test that. It would be best for anyone working on this to make a local copy of stage3-armv7a_hardfp-20130209.tar.bz2 because it will not be hosted indefinitely.

      This issue was originally misfiled with the Android project:

      https://code.google.com/p/android/issues/detail?id=57843

        Activity

        Hide
        Jorge Ruesga added a comment -

        Please, check that you have enough memory to process a 140 MB file. Look at this memory status while uncompress (i9100)

        shell@android:/ $ watch -n 1 cat /proc/meminfo | grep MemFree
        MemFree: 120328 kB
        MemFree: 120328 kB
        MemFree: 120328 kB
        MemFree: 120328 kB
        MemFree: 120328 kB
        MemFree: 120328 kB
        MemFree: 120328 kB
        MemFree: 120328 kB
        MemFree: 120328 kB
        MemFree: 120328 kB
        MemFree: 120328 kB
        MemFree: 120208 kB
        MemFree: 120208 kB
        MemFree: 120208 kB
        MemFree: 120216 kB
        MemFree: 120216 kB
        MemFree: 120216 kB
        MemFree: 120208 kB
        MemFree: 120208 kB
        MemFree: 120208 kB
        MemFree: 120208 kB
        MemFree: 120208 kB
        MemFree: 120208 kB
        MemFree: 120208 kB
        MemFree: 120208 kB
        MemFree: 120208 kB
        MemFree: 120208 kB
        MemFree: 120208 kB
        MemFree: 122172 kB
        MemFree: 118004 kB
        MemFree: 115152 kB
        MemFree: 114244 kB
        MemFree: 110780 kB
        MemFree: 109432 kB
        MemFree: 100764 kB
        MemFree: 92788 kB
        MemFree: 86188 kB
        MemFree: 80960 kB
        MemFree: 74808 kB
        MemFree: 67616 kB
        MemFree: 61700 kB
        MemFree: 55672 kB
        MemFree: 48024 kB
        MemFree: 39220 kB
        MemFree: 36800 kB
        MemFree: 35664 kB
        MemFree: 30796 kB
        MemFree: 24860 kB
        MemFree: 16380 kB
        MemFree: 16780 kB <<<< Bunzip2 crash
        MemFree: 42572 kB
        MemFree: 119720 kB
        MemFree: 119720 kB
        MemFree: 119720 kB
        MemFree: 119720 kB
        MemFree: 119720 kB
        MemFree: 119696 kB
        MemFree: 119720 kB
        MemFree: 119720 kB
        MemFree: 119720 kB
        MemFree: 119720 kB

        Show
        Jorge Ruesga added a comment - Please, check that you have enough memory to process a 140 MB file. Look at this memory status while uncompress (i9100) shell@android:/ $ watch -n 1 cat /proc/meminfo | grep MemFree MemFree: 120328 kB MemFree: 120328 kB MemFree: 120328 kB MemFree: 120328 kB MemFree: 120328 kB MemFree: 120328 kB MemFree: 120328 kB MemFree: 120328 kB MemFree: 120328 kB MemFree: 120328 kB MemFree: 120328 kB MemFree: 120208 kB MemFree: 120208 kB MemFree: 120208 kB MemFree: 120216 kB MemFree: 120216 kB MemFree: 120216 kB MemFree: 120208 kB MemFree: 120208 kB MemFree: 120208 kB MemFree: 120208 kB MemFree: 120208 kB MemFree: 120208 kB MemFree: 120208 kB MemFree: 120208 kB MemFree: 120208 kB MemFree: 120208 kB MemFree: 120208 kB MemFree: 122172 kB MemFree: 118004 kB MemFree: 115152 kB MemFree: 114244 kB MemFree: 110780 kB MemFree: 109432 kB MemFree: 100764 kB MemFree: 92788 kB MemFree: 86188 kB MemFree: 80960 kB MemFree: 74808 kB MemFree: 67616 kB MemFree: 61700 kB MemFree: 55672 kB MemFree: 48024 kB MemFree: 39220 kB MemFree: 36800 kB MemFree: 35664 kB MemFree: 30796 kB MemFree: 24860 kB MemFree: 16380 kB MemFree: 16780 kB <<<< Bunzip2 crash MemFree: 42572 kB MemFree: 119720 kB MemFree: 119720 kB MemFree: 119720 kB MemFree: 119720 kB MemFree: 119720 kB MemFree: 119696 kB MemFree: 119720 kB MemFree: 119720 kB MemFree: 119720 kB MemFree: 119720 kB
        Hide
        Tanguy Pruvot added a comment -

        i can reproduce this problem which is not a memory issue :
        file can be found here : http://gentoo.osuosl.org/releases/arm/autobuilds/20130209/armv7a-hardfloat-linux-gnueabi/

        This affect also the official busybox on my PC
        and is not fixed in current 1.22 dev branch

        I will forward this bug to the busybox mailing list...

        Show
        Tanguy Pruvot added a comment - i can reproduce this problem which is not a memory issue : file can be found here : http://gentoo.osuosl.org/releases/arm/autobuilds/20130209/armv7a-hardfloat-linux-gnueabi/ This affect also the official busybox on my PC and is not fixed in current 1.22 dev branch I will forward this bug to the busybox mailing list...
        Show
        Tanguy Pruvot added a comment - http://git.busybox.net/busybox/commit/?id=932e233a491b6a5b9293ace04ef74667a95d739c
        Hide
        Tanguy Pruvot added a comment -

        merged in cm-10.1 branch, will be in 10.2 soon

        Show
        Tanguy Pruvot added a comment - merged in cm-10.1 branch, will be in 10.2 soon

          People

          • Assignee:
            Tanguy Pruvot
            Reporter:
            Richard Yao
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: