Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 390743 - Portage binpkg uncompressing with pbzip2 hangs/bad exit
Summary: Portage binpkg uncompressing with pbzip2 hangs/bad exit
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Dror Levin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-16 17:00 UTC by Robin Johnson
Modified: 2012-08-06 23:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-11-16 17:00:01 UTC
$ pbzip2 -d -v -c db-4.7.25_p4.tbz2 >/dev/null
Parallel BZIP2 v1.1.6 - by: Jeff Gilchrist [http://compression.ca]
[Oct. 30, 2011]               (uses libbzip2 by Julian Seward)
Major contributions: Yavor Nikolov <nikolov.javor+pbzip2@gmail.com>

         # CPUs: 8
 Maximum Memory: 100 MB
 Ignore Trailing Garbage: off
-------------------------------------------
         File #: 1 of 1
     Input Name: db-4.7.25_p4.tbz2
    Output Name: <stdout>

 BWT Block Size: 900k
     Input Size: 6627684 bytes
Decompressing data...
pbzip2: *ERROR during BZ2_bzDecompress - trailing garbage: ret=4; block=1; seq=0; isLastInSeq=1; avail_in=1628
    Output Size: 0 bytes
Terminator thread: premature exit requested - quitting...
$ exit $?
1

$ pbunzip2 -k db-4.7.25_p4.tbz2 
pbzip2: *ERROR during BZ2_bzDecompress - trailing garbage: ret=4; block=1; seq=0; isLastInSeq=1; avail_in=1628
pbzip2: *ERROR: system call failed with errno=[2: No such file or directory]!
pbzip2: *ERROR: system call failed with errno=[2: No such file or directory]!
Terminator thread: premature exit requested - quitting...
pbzip2:  *INFO: Deletion of output file succeeded.

$ bzcat  db-4.7.25_p4.tbz2 >/dev/null ; echo $?
bzcat: db-4.7.25_p4.tbz2: trailing garbage after EOF ignored
0

Portage 2.2.0_alpha74 (default/linux/amd64/10.0/server, gcc-4.4.6, glibc-2.13-r4, 2.6.32.6-inf x86_64)
=================================================================
System uname: Linux-2.6.32.6-inf-x86_64-Intel-R-_Xeon-R-_CPU_L5410_@_2.33GHz-with-gentoo-2.1
Timestamp of tree: Tue, 15 Nov 2011 20:15:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.7-r2, 2.7.2-r3
dev-util/cmake:           2.8.6-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.3.6-r1, 4.4.6-r1
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo isohunt-overlay
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -g -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/nfsroot/distfiles"
EMERGE_DEFAULT_OPTS="--binpkg-respect-use=y"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.ds.karen.hj.se/gentoo/ http://mirror.mdfnet.se/mirror/gentoo ftp://ftp.ds.karen.hj.se/gentoo/ http://ftp.ing.umu.se/linux/gentoo/ http://ftp.klid.dk/ftp/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j10"
PKGDIR="/nfsroot/packages/infra-xeon_yorkfield"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/dev/shm"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://beta01/local-portage"
USE="acl amd64 async authdaemond authlib bash-completion berkdb bzip2 bzlib cap caps cdb chroot ck-server cli cracklib crypt curl curlwrappers cxx dba dbm dbx device-mapper dio dri erandom exif extensions f2c fam fastcgi flatfile gd-external gdbm geoip gnutls hpn iconv idn imap innodb ipv6 jpeg libevent lids lm_sensors logrotate memlimit mmx modules mpi mudflap multilib mysql mysqli ncurses nethack network-cron nfs nls no-htdocs nptl nptlonly offensive openmp pam pcre perl png posix postgres pppd qmail readline reiserfs romio rrdtool session sftp sftplogging sharedext snmp soap sockets sqlite sse sse2 ssl symlink sysfs sysvipc tcpd threads truetype unicode urandom v8 vhosts vim-syntax vpopmail xattr xml xmlrpc xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias cgi cgid log_forensic version authn_alias" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset dav empty_gif fastcgi geo geoip gzip gzip_static limit_req limit_zone proxy realip referer rewrite stub_status" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Tim Harder gentoo-dev 2012-08-06 23:35:09 UTC
I think this should be fixed in >=pbzip2-1.1.7 when using the "--ignore-trailing-garbage=1" option.