[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: Bzip2 and bunzip2 applets in busybox 1.20.2 abort while decompressing data
From:       g.esp () free ! fr
Date:       2012-08-19 20:25:51
Message-ID: 513980920.128656591.1345407951801.JavaMail.root () zimbra33-e6 ! priv ! proxad ! net
[Download RAW message or body]



----- Mail original -----
> De: "J. B. K'berg" <jbkberg@gmail.com>
> À: busybox@busybox.net
> Envoyé: Dimanche 19 Août 2012 18:57:52
> Objet: Bzip2 and bunzip2 applets in busybox 1.20.2 abort while decompressing data
> 
> Hello,
> 
> The bzip2 and bunzip2 applets abort with error -5 when attempting to
> decompress a particular file, perl-5.16.1.tar.bz2.
> The file is available at
> http://www.cpan.org/src/5.0/perl-5.16.1.tar.bz2 and is 12.9M.
> I have verified the checksum to be correct using
> http://www.cpan.org/src/5.0/perl-5.16.1.tar.bz2.sha1.txt .
> The bzip2 program from bzip.org decompresses the file without any
> problems.
> 
> The bzip2 and bunzip2 applets are invoked as following:
> bunzip2 perl-5.16.1.tar.bz2
> bzip2 -d perl-5.16.1.tar.bz2
> 
> I am executing it from an i386 chroot on an amd64 host; the chroot's libc
> is uclibc, and my platform is linux.
> 
> The same binary decompresses other bzip2 data without problems.
> 
> Output of "file perl-5.16.1.tar.bz2" :
> perl-5.16.1.tar.bz2: bzip2 compressed data, block size = 900k
> 
> Output of "ld -v" :
> GNU ld (GNU Binutils) 2.22
> 
> Output of "gcc -v" :
> Using built-in specs.
> COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-unknown-linux-uclibc/4.6.3/lto-wrapper
> Target: i686-unknown-linux-uclibc
> Configured with:
> /root/buildroot-2012.05/output/toolchain/gcc-4.6.3/configure
> --prefix=/usr
> --build=x86_64-unknown-linux-gnu --host=i686-unknown-linux-uclibc
> --target=i686-unknown-linux-uclibc --enable-languages=c
> --with-gxx-include-dir=/usr/include/c++ --disable-__cxa_atexit
> --enable-target-optspace --enable-libgomp --with-gnu-ld
> --disable-libssp
> --disable-multilib --disable-tls --enable-shared --disable-nls
> --enable-threads --disable-decimal-float --with-arch=i686
> --with-tune=i686
> --with-pkgversion='Buildroot 2012.05'
> --with-bugurl=http://bugs.buildroot.net/
> Thread model: posix
> gcc version 4.6.3 (Buildroot 2012.05)
> 
> If I need to supply any more information, please let me know.
> Thank you.
> --

I could confirm the same failure with same file and busybox-1.19.4, glibc-2.11, \
gcc-4.4.5, binutils-2.22 on a i486 target.

strace log show after more than 5000 lines on read/write
read(0, "\3113\330yu\351\273\303+\303\207\32\30\"di\211*&\r^d\34d\24--\262'\357\217Q"..., \
4096) = 4096 read(0, \
"\2201#\244\17M\231\211hZ\ns}\201hI\244\24\200\360_[\200\367>}\36\7\207\3127\356"..., \
4096) = 4096 read(0, \
"\240\331\370B\37\322\203\270\205h\266\246R\3\260\357\7[:\312\335wz\2579\177\t\26V\216\377^"..., \
4096) = 4096 read(0, \
"\315%\5\v\23T\321\376\270\325{\330\241+\357\215'\2712\313\22\375\316\300P\3042/u+\250<"..., \
4096) = 4096 write(2, "bunzip2: bunzip error -5\n", 25bunzip2: bunzip error -5) = 25
munmap(0xb73b3000, 3600384)             = 0
close(1)                                = 0
unlink("/tmp/perl-5.16.1.tar")          = 0
exit_group(1)                           = ?

Gilles
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic