Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94409 - app-arch/pbzip2-0.8 coredumps on decompressing a huge archive.
Summary: app-arch/pbzip2-0.8 coredumps on decompressing a huge archive.
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo LiveCD Package Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-29 12:57 UTC by Jason McGuiness
Modified: 2006-01-04 07:15 UTC (History)
0 users

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 Jason McGuiness 2005-05-29 12:57:20 UTC
When decompressing a huge archive of a tarball of a dvd, on a dual processor 
machine, pbzip2 coredumps with a "std::bad_alloc" exception. This occurs for 
both debug & non-debug builds of pbzip2. The file successfully decompresses with 
"app-arch/bzip2-1.0.3".

Reproducible: Always
Steps to Reproduce:
1. pbzip2 -d the_warrior.tar.bz2

Actual Results:  
Coredump, see gdb information from debug build:

> pbzip2 -d the_warrior.tar.bz2
Parallel BZIP2 v0.8  -  by: Jeff Gilchrist <pbzip2@compression.ca>
[Sep. 6, 2004]              (uses libbzip2  by Julian Seward)

** This is a BETA version - Use at your own risk! **

         # CPUs: 2
     Input Name: the_warrior.tar.bz2
    Output Name: the_warrior.tar

  Original Size: 1011348 bytes
Analysing data...
Decompressing data...
terminate called after throwing an instance of 'std::bad_alloc'
  what():  St9bad_alloc
Aborted (core dumped)
> gdb co
co                  comm                complete_on
col                 command             composeglyphs
colcrt              compare             composite
collateindex.pl     compface            compress
colorcvs            compgen             conjure
colorgcc            compile_et          cont-en
colorize            complete            continue
colrm               complete_avail      convert
column              complete_installed
> gdb co
co                  comm                complete_on
col                 command             composeglyphs
colcrt              compare             composite
collateindex.pl     compface            compress
colorcvs            compgen             conjure
colorgcc            compile_et          cont-en
colorize            complete            continue
colrm               complete_avail      convert
column              complete_installed
> gdb pbzip2 core.25397
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...Using host libthread_db library "/lib/
libthread_db.so.1".

Core was generated by `pbzip2 -d the_warrior.tar.bz2'.
Program terminated with signal 6, Aborted.
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/lib/libbz2.so.1...done.
Loaded symbols for /usr/lib/libbz2.so.1
Reading symbols from /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.3/libstdc++.so.6...done.
Loaded symbols for /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/libstdc++.so.6
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.3/libgcc_s.so.1...done.
Loaded symbols for /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/libgcc_s.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
#0  0x00002aaaab2a3c49 in raise () from /lib/libc.so.6
(gdb) where
#0  0x00002aaaab2a3c49 in raise () from /lib/libc.so.6
#1  0x00002aaaab2a514e in abort () from /lib/libc.so.6
#2  0x00002aaaaaea3c38 in __gnu_cxx::__verbose_terminate_handler ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/libstdc++.so.6
#3  0x00002aaaaaea1e06 in __cxa_call_unexpected ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/libstdc++.so.6
#4  0x00002aaaaaea1e33 in std::terminate ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/libstdc++.so.6
#5  0x00002aaaaaea1f33 in __cxa_throw ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/libstdc++.so.6
#6  0x00002aaaaaea210d in operator new ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/libstdc++.so.6
#7  0x00002aaaaaea21a9 in operator new[] ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/libstdc++.so.6
#8  0x0000000000402144 in consumer_decompress (q=0x505090) at pbzip2.cpp:648
#9  0x00002aaaaabc70b1 in start_thread () from /lib/libpthread.so.0
#10 0x00002aaaab32b263 in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()
#12 0x0000000000000000 in ?? ()
#13 0x0000000000000000 in ?? ()
#14 0x0000000000000000 in ?? ()
#15 0x0000000000000000 in ?? ()
#16 0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#17 0x0000000000000000 in ?? ()
#18 0x0000000000000000 in ?? ()
#19 0x0000000000000000 in ?? ()
#20 0x0000000000000000 in ?? ()
#21 0x0000000000000000 in ?? ()
#22 0x0000000000000000 in ?? ()
#23 0x0000000000000000 in ?? ()
#24 0x0000000000000000 in ?? ()
#25 0x0000000000000000 in ?? ()
#26 0x0000000000000000 in ?? ()
#27 0x0000000000000000 in ?? ()
#28 0x0000000000000000 in ?? ()
#29 0x0000000000000000 in ?? ()
#30 0x0000000000000000 in ?? ()
#31 0x0000000000000000 in ?? ()
#32 0x0000000000000000 in ?? ()
#33 0x0000000000000000 in ?? ()
#34 0x0000000000000000 in ?? ()
#35 0x0000000000000000 in ?? ()
#36 0x0000000000000000 in ?? ()
#37 0x0000000000000000 in ?? ()
#38 0x0000000000000000 in ?? ()
#39 0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#40 0x0000000000000000 in ?? ()
#41 0x0000000000000000 in ?? ()
#42 0x0000000000000000 in ?? ()
#43 0x0000000000000000 in ?? ()
#44 0x0000000000000000 in ?? ()
#45 0x0000000000000000 in ?? ()
#46 0x0000000000000000 in ?? ()
#47 0x0000000000000000 in ?? ()
#48 0x0000000000000000 in ?? ()
#49 0x0000000000000000 in ?? ()
#50 0x0000000000000000 in ?? ()
#51 0x0000000000000000 in ?? ()
#52 0x0000000000000000 in ?? ()
#53 0x0000000000000000 in ?? ()
#54 0x0000000000000000 in ?? ()
#55 0x0000000000000000 in ?? ()
#56 0x0000000000000000 in ?? ()
#57 0x0000000000000000 in ?? ()
#58 0x0000000000000000 in ?? ()
#59 0x0000000000000000 in ?? ()
#60 0x0000000000000000 in ?? ()
#61 0x0000000000000000 in ?? ()
#62 0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#63 0x0000000000000000 in ?? ()
#64 0x0000000000000000 in ?? ()
#65 0x0000000000000000 in ?? ()
#66 0x0000000000000000 in ?? ()
#67 0x0000000000000000 in ?? ()
#68 0x0000000000000000 in ?? ()
#69 0x0000000000000000 in ?? ()
#70 0x0000000000000000 in ?? ()
#71 0x0000000000000000 in ?? ()
#72 0x0000000000000000 in ?? ()
#73 0x0000000000000000 in ?? ()
#74 0x0000000000000000 in ?? ()
#75 0x0000000000000000 in ?? ()
#76 0x0000000000000000 in ?? ()
#77 0x0000000000000000 in ?? ()
#78 0x0000000000000000 in ?? ()
#79 0x0000000000000000 in ?? ()
#80 0x0000000000000000 in ?? ()
#81 0x0000000000000000 in ?? ()
#82 0x0000000000000000 in ?? ()
#83 0x0000000000000000 in ?? ()
#84 0x0000000000000000 in ?? ()
#85 0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#86 0x0000000000000000 in ?? ()
#87 0x0000000000000000 in ?? ()
#88 0x0000000000000000 in ?? ()
#89 0x0000000000000000 in ?? ()
#90 0x0000000000000000 in ?? ()
#91 0x0000000000000000 in ?? ()
#92 0x0000000000000000 in ?? ()
#93 0x0000000000000000 in ?? ()
#94 0x0000000000000000 in ?? ()
#95 0x0000000000000000 in ?? ()
#96 0x0000000000000000 in ?? ()
#97 0x0000000000000000 in ?? ()
#98 0x0000000000000000 in ?? ()
#99 0x0000000000000000 in ?? ()
#100 0x0000000000000000 in ?? ()
#101 0x0000000000000000 in ?? ()
#102 0x0000000000000000 in ?? ()
#103 0x0000000000000000 in ?? ()
#104 0x0000000000000000 in ?? ()
#105 0x0000000000000000 in ?? ()
#106 0x0000000000000000 in ?? ()
#107 0x0000000000000000 in ?? ()
#108 0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#109 0x0000000000000000 in ?? ()
#110 0x0000000000000000 in ?? ()
#111 0x0000000000000000 in ?? ()
#112 0x0000000000000000 in ?? ()
#113 0x0000000000000000 in ?? ()
#114 0x0000000000000000 in ?? ()
#115 0x0000000000000000 in ?? ()
#116 0x0000000000000000 in ?? ()
#117 0x0000000000000000 in ?? ()
#118 0x0000000000000000 in ?? ()
#119 0x0000000000000000 in ?? ()
#120 0x0000000000000000 in ?? ()
#121 0x0000000000000000 in ?? ()
#122 0x0000000000000000 in ?? ()
#123 0x0000000000000000 in ?? ()
#124 0x0000000000000000 in ?? ()
#125 0x0000000000000000 in ?? ()
#126 0x0000000000000000 in ?? ()
#127 0x0000000000000000 in ?? ()
#128 0x0000000000000000 in ?? ()
#129 0x0000000000000000 in ?? ()
#130 0x0000000000000000 in ?? ()
#131 0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#132 0x0000000000000000 in ?? ()
#133 0x0000000000000000 in ?? ()
#134 0x0000000000000000 in ?? ()
#135 0x0000000000000000 in ?? ()
#136 0x0000000000000000 in ?? ()
#137 0x0000000000000000 in ?? ()
#138 0x0000000000000000 in ?? ()
#139 0x0000000000000000 in ?? ()
#140 0x0000000000000000 in ?? ()
#141 0x0000000000000000 in ?? ()
#142 0x0000000000000000 in ?? ()
#143 0x0000000000000000 in ?? ()
#144 0x0000000000000000 in ?? ()
#145 0x0000000000000000 in ?? ()
#146 0x0000000000000000 in ?? ()
#147 0x0000000000000000 in ?? ()
#148 0x0000000000000000 in ?? ()
#149 0x0000000000000000 in ?? ()
#150 0x0000000000000000 in ?? ()
#151 0x0000000000000000 in ?? ()
#152 0x0000000000000000 in ?? ()
#153 0x0000000000000000 in ?? ()
#154 0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#155 0x0000000000000000 in ?? ()
#156 0x0000000000000000 in ?? ()
#157 0x0000000000000000 in ?? ()
#158 0x0000000000000000 in ?? ()
#159 0x0000000000000000 in ?? ()
#160 0x0000000000000000 in ?? ()
#161 0x0000000000000000 in ?? ()
#162 0x0000000000000000 in ?? ()
#163 0x0000000000000000 in ?? ()
#164 0x0000000000000000 in ?? ()
#165 0x0000000000000000 in ?? ()
#166 0x0000000000000000 in ?? ()
#167 0x0000000000000000 in ?? ()
#168 0x0000000000000000 in ?? ()
#169 0x0000000000000000 in ?? ()
#170 0x0000000000000000 in ?? ()
#171 0x0000000000000000 in ?? ()
#172 0x0000000000000000 in ?? ()
#173 0x0000000000000000 in ?? ()
#174 0x0000000000000000 in ?? ()
#175 0x0000000000000000 in ?? ()
#176 0x0000000000000000 in ?? ()
#177 0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#178 0x0000000000000000 in ?? ()
#179 0x0000000000000000 in ?? ()
#180 0x0000000000000000 in ?? ()
#181 0x0000000000000000 in ?? ()
#182 0x0000000000000000 in ?? ()
#183 0x0000000000000000 in ?? ()
#184 0x0000000000000000 in ?? ()
#185 0x0000000000000000 in ?? ()
#186 0x0000000000000000 in ?? ()
#187 0x0000000000000000 in ?? ()
#188 0x0000000000000000 in ?? ()
#189 0x0000000000000000 in ?? ()
#190 0x0000000000000000 in ?? ()
#191 0x0000000000000000 in ?? ()
#192 0x0000000000000000 in ?? ()
#193 0x0000000000000000 in ?? ()
#194 0x0000000000000000 in ?? ()
#195 0x0000000000000000 in ?? ()
#196 0x0000000000000000 in ?? ()
#197 0x0000000000000000 in ?? ()
#198 0x0000000000000000 in ?? ()
#199 0x0000000000000000 in ?? ()
#200 0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#201 0x0000000000000000 in ?? ()
#202 0x0000000000000000 in ?? ()
#203 0x0000000000000000 in ?? ()
#204 0x0000000000000000 in ?? ()
#205 0x0000000000000000 in ?? ()
#206 0x0000000000000000 in ?? ()
#207 0x0000000000000000 in ?? ()
#208 0x0000000000000000 in ?? ()
#209 0x0000000000000000 in ?? ()
#210 0x0000000000000000 in ?? ()
#211 0x0000000000000000 in ?? ()
#212 0x0000000000000000 in ?? ()
#213 0x0000000000000000 in ?? ()
#214 0x0000000000000000 in ?? ()
#215 0x0000000000000000 in ?? ()
#216 0x0000000000000000 in ?? ()
#217 0x0000000000000000 in ?? ()
#218 0x0000000000000000 in ?? ()
#219 0x00002aaaab494560 in __check_rhosts_file () from /lib/libc.so.6
#220 0x00000000407ffdc0 in ?? ()
#221 0x000000000000000c in ?? ()
#222 0x0000000000000000 in ?? ()
#223 0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#224 0x0000000000000000 in ?? ()
#225 0x00002aac62c00020 in ?? ()
#226 0x0000000000000000 in ?? ()
#227 0x0000000000000000 in ?? ()
#228 0x0000000000000000 in ?? ()
#229 0x00000000407ff960 in ?? ()
#230 0x00000000005051f8 in ?? ()
#231 0x00000000407ff960 in ?? ()
#232 0x0000000000000001 in ?? ()
#233 0x0000000000000000 in ?? ()
#234 0x0000000000000000 in ?? ()
#235 0x0000000000000000 in ?? ()
#236 0x0000000000000000 in ?? ()
#237 0x0000000000000000 in ?? ()
#238 0x0000000000000000 in ?? ()
#239 0x0000000000000000 in ?? ()
#240 0x0000000000000000 in ?? ()
#241 0x0000000000000000 in ?? ()
#242 0x0000000000000000 in ?? ()
#243 0x0000000000000000 in ?? ()
#244 0x0000000000000000 in ?? ()
#245 0x00002aaaaacd1230 in stack_cache_maxsize () from /lib/libpthread.so.0
#246 0x0000000040fff9e0 in ?? ()
---Type <return> to continue, or q <return> to quit---
#247 0x0000633500006336 in ?? ()
#248 0x0000000000000000 in ?? ()
#249 0x00000000407ff200 in ?? ()
#250 0x0000000000000000 in ?? ()
#251 0x0000000000000001 in ?? ()
#252 0x00002aac62c00970 in ?? ()
#253 0x0000000000000000 in ?? ()
#254 0x0000000000000000 in ?? ()
#255 0x0000000000000000 in ?? ()
#256 0x0000000000000000 in ?? ()
#257 0x0000000000000000 in ?? ()
#258 0x0000000000000000 in ?? ()
#259 0x0000000000000000 in ?? ()
#260 0x0000000000000000 in ?? ()
#261 0x0000000000000000 in ?? ()
#262 0x0000000000000000 in ?? ()
#263 0x0000000000000000 in ?? ()
#264 0x0000000000000000 in ?? ()
#265 0x0000000000000000 in ?? ()
#266 0x0000000000000000 in ?? ()
#267 0x0000000000000000 in ?? ()
#268 0x0000000000000000 in ?? ()
#269 0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#270 0x0000000000000000 in ?? ()
#271 0x0000000000000000 in ?? ()
#272 0x0000000000000000 in ?? ()
#273 0x0000000000000000 in ?? ()
#274 0x0000000000000000 in ?? ()
#275 0x0000000000000000 in ?? ()
#276 0x0000000000000000 in ?? ()
#277 0x0000000000000000 in ?? ()
#278 0x0000000000000000 in ?? ()
#279 0x0000000000000000 in ?? ()
#280 0x0000000000000000 in ?? ()
#281 0x0000000000000000 in ?? ()
#282 0x0000000000000000 in ?? ()
#283 0x0000000000000000 in ?? ()
#284 0x0000000000000000 in ?? ()
#285 0x0000000000000000 in ?? ()
#286 0x0000000000000000 in ?? ()
#287 0x0000000000000000 in ?? ()
#288 0x0000000000000000 in ?? ()
#289 0x0000000000000000 in ?? ()
#290 0x0000000000000000 in ?? ()
#291 0x0000000000000000 in ?? ()
#292 0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#293 0x0000000000000000 in ?? ()
#294 0x0000000000000000 in ?? ()
#295 0x0000000000000000 in ?? ()
#296 0x0000000000000000 in ?? ()
#297 0x0000000000000000 in ?? ()
#298 0x0000000000000000 in ?? ()
#299 0x0000000000000000 in ?? ()
#300 0x0000000000000000 in ?? ()
#301 0x0000000000000000 in ?? ()
#302 0x0000000000000000 in ?? ()
#303 0x0000000000000000 in ?? ()
#304 0x0000000000000000 in ?? ()
#305 0x0000000000000000 in ?? ()
#306 0x0000000000000000 in ?? ()
#307 0x0000000000000000 in ?? ()
#308 0x0000000000000000 in ?? ()
#309 0x0000000000000000 in ?? ()
#310 0x0000000000000000 in ?? ()
#311 0x0000000000000000 in ?? ()
#312 0x0000000000000000 in ?? ()
#313 0x0000000000000000 in ?? ()
#314 0x0000000000000000 in ?? ()
#315 0x0000000000000001 in ?? ()
---Type <return> to continue, or q <return> to quit---
#316 0x00000000407ffa10 in ?? ()
#317 0x0000000000000000 in ?? ()
#318 0x0000000000000000 in ?? ()
#319 0x0000000000000000 in ?? ()
#320 0x0000000000000000 in ?? ()
#321 0x0000000000000000 in ?? ()
#322 0x0000000000000000 in ?? ()
#323 0x0000000000000000 in ?? ()
#324 0x0000000000000000 in ?? ()
#325 0x0000000000000000 in ?? ()
#326 0x0000000000000000 in ?? ()
#327 0x0000000000000000 in ?? ()
#328 0x0000000000000000 in ?? ()
#329 0x0000000000000000 in ?? ()
#330 0x0000000000000000 in ?? ()
#331 0x0000000000000000 in ?? ()
#332 0x0000000000000000 in ?? ()
#333 0x0000000000000000 in ?? ()
#334 0x0000000000000000 in ?? ()
#335 0x0000000000000000 in ?? ()
#336 0x0000000000000000 in ?? ()
#337 0x0000000000000000 in ?? ()
#338 0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
#339 0x0000000000000000 in ?? ()
#340 0x0000000000000000 in ?? ()
#341 0x0000000000000000 in ?? ()
#342 0x0000000000000000 in ?? ()
#343 0x0000000000000000 in ?? ()
#344 0x0000000000000000 in ?? ()
#345 0x0000000000000000 in ?? ()
#346 0x0000000000000000 in ?? ()
#347 0x0000000000000000 in ?? ()
#348 0x0000000000000000 in ?? ()
#349 0x000008e28f00be95 in ?? ()
#350 0x0000000000000000 in ?? ()
#351 0x0000000000000000 in ?? ()
#352 0x0000000000000000 in ?? ()
#353 0x0000000000000000 in ?? ()
#354 0x0000000000401f72 in producer_decompress () at pbzip2.cpp:559
(gdb)

Expected Results:  
The file should have been extracted.

> sudo emerge info
Password:
Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.11-
gentoo-r7 x86_64)
=================================================================
System uname: 2.6.11-gentoo-r7 x86_64 AMD Opteron(tm) Processor 250
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May 15 2005, 23:35:44)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6
sys-devel/automake:  1.9.5, 1.8.5-r3, 1.5, 1.7.9-r1, 1.6.3, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-march=opteron -O0 -pipe -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /
var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=opteron -O0 -pipe -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirror.sdv.fr http://ftp.easynet.nl/mirror/gentoo/ http://
www.gigaload.org/gentoo.org/ http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/
distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/dev/shm/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa amd64 bash-completion berkdb bitmap-fonts bzlib cdr crypt cups curl 
dvd dvdread exif fam flac font-server foomaticdb gdbm gif gpm gtk gtk2 imagemagick imlib 
ipv6 jp2 jpeg libwww lm_sensors lzw lzw-tiff mad motif mp3 ncurses network nls nptl 
nptlonly ogg oggvorbis opengl pam pda perl png ppds python qt qtmt readline rtc sdk spell 
ssl sysfs tcpd tetex threads tiff truetype truetype-fonts type1-fonts usb userlocales 
vorbis xfce4 xine xml xml2 xmms xpm xrandr xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2005-06-10 07:31:02 UTC
Can you try the 0.9.1 ebuild that I just added?
Comment 2 Jason McGuiness 2005-06-13 15:00:26 UTC
The 0.9.1 ebuild performs thus:

1. If I compress with pbzip2, then uncompress with pbzip2 I get no errors, but 
the compressed size is 445251 bytes.
2. If I compress with bzip2, then uncompress with pbzip2 I get a core dump, with 
"std::bad_alloc". The (bzip2) compressed size is 363610 bytes. pbzip2 seems less 
efficient at compressing archives than bzip2.

My apologies, it is late and I need to go to bed... I need to re-compile pbzip2 
and get a stack trace for you to help you debug this. I'll post it in a few 
days. Sorry for the frustrating delay.
Comment 3 Jason McGuiness 2005-07-03 03:14:20 UTC
Here's the long-awaited stack trace from gdb. Sorry for the delay!

> pbzip2 -d the\ warrior.tar.bz2
Parallel BZIP2 v0.9.1 - by: Jeff Gilchrist [http://compression.ca]
[Jan. 29, 2005]             (uses libbzip2  by Julian Seward)

** This is a BETA version - Use at your own risk! **

         # CPUs: 2
-------------------------------------------
         File #: 1 of 1
     Input Name: the warrior.tar.bz2
    Output Name: the warrior.tar

  Original Size: 363610 bytes
Analysing data...
Decompressing data...
terminate called after throwing an instance of 'std::bad_alloc'
  what():  St9bad_alloc
Aborted (core dumped)
> gdb pbzip2 core.2010
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu"...Using host libthread_db 
library "/lib/libthread_db.so.1".

Core was generated by `pbzip2 -d the warrior.tar.bz2'.
Program terminated with signal 6, Aborted.
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /usr/lib/libbz2.so.1...done.
Loaded symbols for /usr/lib/libbz2.so.1
Reading symbols from /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.3/libstdc++.so.6.
..done.
Loaded symbols for /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/libstdc++.so.6
Reading symbols from /lib/libm.so.6...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /usr/lib/gcc-lib/x86_64-pc-linux-gnu/3.4.3/libgcc_s.so.1...
done.
Loaded symbols for /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/libgcc_s.so.1
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux-x86-64.so.2...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
#0  0x00002aaaab2a3c49 in raise () from /lib/libc.so.6
(gdb) where
#0  0x00002aaaab2a3c49 in raise () from /lib/libc.so.6
#1  0x00002aaaab2a514e in abort () from /lib/libc.so.6
#2  0x00002aaaaaea3c38 in __gnu_cxx::__verbose_terminate_handler ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/libstdc++.so.6
#3  0x00002aaaaaea1e06 in __cxa_call_unexpected ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/libstdc++.so.6
#4  0x00002aaaaaea1e33 in std::terminate ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/libstdc++.so.6
#5  0x00002aaaaaea1f33 in __cxa_throw ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/libstdc++.so.6
#6  0x00002aaaaaea210d in operator new ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/libstdc++.so.6
#7  0x00002aaaaaea21a9 in operator new[] ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/libstdc++.so.6
#8  0x0000000000402799 in consumer_decompress (q=0x5070d0) at pbzip2.cpp:753
#9  0x00002aaaaabc70b1 in start_thread () from /lib/libpthread.so.0
#10 0x00002aaaab32b263 in clone () from /lib/libc.so.6
#11 0x0000000000000000 in ?? ()
#12 0x0000000000000000 in ?? ()
#13 0x0000000000000000 in ?? ()
#14 0x0000000000000000 in ?? ()
#15 0x0000000000000000 in ?? ()
#16 0x0000000000000000 in ?? ()
#17 0x0000000000000000 in ?? ()
#18 0x0000000000000000 in ?? ()
#19 0x0000000000000000 in ?? ()
#20 0x0000000000000000 in ?? ()
#21 0x0000000000000000 in ?? ()
#22 0x0000000000000000 in ?? ()
#23 0x0000000000000000 in ?? ()
#24 0x0000000000000000 in ?? ()
#25 0x0000000000000000 in ?? ()
#26 0x0000000000000000 in ?? ()
#27 0x0000000000000000 in ?? ()
#28 0x0000000000000000 in ?? ()
#29 0x0000000000000000 in ?? ()
#30 0x0000000000000000 in ?? ()
#31 0x0000000000000000 in ?? ()
#32 0x0000000000000000 in ?? ()
#33 0x0000000000000000 in ?? ()
#34 0x0000000000000000 in ?? ()
#35 0x0000000000000000 in ?? ()
#36 0x0000000000000000 in ?? ()
#37 0x0000000000000000 in ?? ()
#38 0x0000000000000000 in ?? ()
#39 0x0000000000000000 in ?? ()
#40 0x0000000000000000 in ?? ()
#41 0x0000000000000000 in ?? ()
#42 0x0000000000000000 in ?? ()
#43 0x0000000000000000 in ?? ()
#44 0x0000000000000000 in ?? ()
#45 0x0000000000000000 in ?? ()
#46 0x0000000000000000 in ?? ()
#47 0x0000000000000000 in ?? ()
#48 0x0000000000000000 in ?? ()
#49 0x0000000000000000 in ?? ()
#50 0x0000000000000000 in ?? ()
#51 0x0000000000000000 in ?? ()
#52 0x0000000000000000 in ?? ()
#53 0x0000000000000000 in ?? ()
#54 0x0000000000000000 in ?? ()
#55 0x0000000000000000 in ?? ()
#56 0x0000000000000000 in ?? ()
#57 0x0000000000000000 in ?? ()
#58 0x0000000000000000 in ?? ()
#59 0x0000000000000000 in ?? ()
#60 0x0000000000000000 in ?? ()
#61 0x0000000000000000 in ?? ()
#62 0x0000000000000000 in ?? ()
#63 0x0000000000000000 in ?? ()
#64 0x0000000000000000 in ?? ()
#65 0x0000000000000000 in ?? ()
#66 0x0000000000000000 in ?? ()
#67 0x0000000000000000 in ?? ()
#68 0x0000000000000000 in ?? ()
#69 0x0000000000000000 in ?? ()
#70 0x0000000000000000 in ?? ()
#71 0x0000000000000000 in ?? ()
#72 0x0000000000000000 in ?? ()
#73 0x0000000000000000 in ?? ()
#74 0x0000000000000000 in ?? ()
#75 0x0000000000000000 in ?? ()
#76 0x0000000000000000 in ?? ()
#77 0x0000000000000000 in ?? ()
#78 0x0000000000000000 in ?? ()
#79 0x0000000000000000 in ?? ()
#80 0x0000000000000000 in ?? ()
#81 0x0000000000000000 in ?? ()
#82 0x0000000000000000 in ?? ()
#83 0x0000000000000000 in ?? ()
#84 0x0000000000000000 in ?? ()
#85 0x0000000000000000 in ?? ()
#86 0x0000000000000000 in ?? ()
#87 0x0000000000000000 in ?? ()
#88 0x0000000000000000 in ?? ()
#89 0x0000000000000000 in ?? ()
#90 0x0000000000000000 in ?? ()
#91 0x0000000000000000 in ?? ()
#92 0x0000000000000000 in ?? ()
#93 0x0000000000000000 in ?? ()
#94 0x0000000000000000 in ?? ()
#95 0x0000000000000000 in ?? ()
#96 0x0000000000000000 in ?? ()
#97 0x0000000000000000 in ?? ()
#98 0x0000000000000000 in ?? ()
#99 0x0000000000000000 in ?? ()
#100 0x0000000000000000 in ?? ()
#101 0x0000000000000000 in ?? ()
#102 0x0000000000000000 in ?? ()
#103 0x0000000000000000 in ?? ()
#104 0x0000000000000000 in ?? ()
#105 0x0000000000000000 in ?? ()
#106 0x0000000000000000 in ?? ()
#107 0x0000000000000000 in ?? ()
#108 0x0000000000000000 in ?? ()
#109 0x0000000000000000 in ?? ()
#110 0x0000000000000000 in ?? ()
#111 0x0000000000000000 in ?? ()
#112 0x0000000000000000 in ?? ()
#113 0x0000000000000000 in ?? ()
#114 0x0000000000000000 in ?? ()
#115 0x0000000000000000 in ?? ()
#116 0x0000000000000000 in ?? ()
#117 0x0000000000000000 in ?? ()
#118 0x0000000000000000 in ?? ()
#119 0x0000000000000000 in ?? ()
#120 0x0000000000000000 in ?? ()
#121 0x0000000000000000 in ?? ()
#122 0x0000000000000000 in ?? ()
#123 0x0000000000000000 in ?? ()
#124 0x0000000000000000 in ?? ()
#125 0x0000000000000000 in ?? ()
#126 0x0000000000000000 in ?? ()
#127 0x0000000000000000 in ?? ()
#128 0x0000000000000000 in ?? ()
#129 0x0000000000000000 in ?? ()
#130 0x0000000000000000 in ?? ()
#131 0x0000000000000000 in ?? ()
#132 0x0000000000000000 in ?? ()
#133 0x0000000000000000 in ?? ()
#134 0x0000000000000000 in ?? ()
#135 0x0000000000000000 in ?? ()
#136 0x0000000000000000 in ?? ()
#137 0x0000000000000000 in ?? ()
#138 0x0000000000000000 in ?? ()
#139 0x0000000000000000 in ?? ()
#140 0x0000000000000000 in ?? ()
#141 0x0000000000000000 in ?? ()
#142 0x0000000000000000 in ?? ()
#143 0x0000000000000000 in ?? ()
#144 0x0000000000000000 in ?? ()
#145 0x0000000000000000 in ?? ()
#146 0x0000000000000000 in ?? ()
#147 0x0000000000000000 in ?? ()
#148 0x0000000000000000 in ?? ()
#149 0x0000000000000000 in ?? ()
#150 0x0000000000000000 in ?? ()
#151 0x0000000000000000 in ?? ()
#152 0x0000000000000000 in ?? ()
#153 0x0000000000000000 in ?? ()
#154 0x0000000000000000 in ?? ()
#155 0x0000000000000000 in ?? ()
#156 0x0000000000000000 in ?? ()
#157 0x0000000000000000 in ?? ()
#158 0x0000000000000000 in ?? ()
#159 0x0000000000000000 in ?? ()
#160 0x0000000000000000 in ?? ()
#161 0x0000000000000000 in ?? ()
#162 0x0000000000000000 in ?? ()
#163 0x0000000000000000 in ?? ()
#164 0x0000000000000000 in ?? ()
#165 0x0000000000000000 in ?? ()
#166 0x0000000000000000 in ?? ()
#167 0x0000000000000000 in ?? ()
#168 0x0000000000000000 in ?? ()
#169 0x0000000000000000 in ?? ()
#170 0x0000000000000000 in ?? ()
#171 0x0000000000000000 in ?? ()
#172 0x0000000000000000 in ?? ()
#173 0x0000000000000000 in ?? ()
#174 0x0000000000000000 in ?? ()
#175 0x0000000000000000 in ?? ()
#176 0x0000000000000000 in ?? ()
#177 0x0000000000000000 in ?? ()
#178 0x0000000000000000 in ?? ()
#179 0x0000000000000000 in ?? ()
#180 0x0000000000000000 in ?? ()
#181 0x0000000000000000 in ?? ()
#182 0x0000000000000000 in ?? ()
#183 0x0000000000000000 in ?? ()
#184 0x0000000000000000 in ?? ()
#185 0x0000000000000000 in ?? ()
#186 0x0000000000000000 in ?? ()
#187 0x0000000000000000 in ?? ()
#188 0x0000000000000000 in ?? ()
#189 0x0000000000000000 in ?? ()
#190 0x0000000000000000 in ?? ()
#191 0x0000000000000000 in ?? ()
#192 0x0000000000000000 in ?? ()
#193 0x0000000000000000 in ?? ()
#194 0x0000000000000000 in ?? ()
#195 0x0000000000000000 in ?? ()
#196 0x0000000000000000 in ?? ()
#197 0x0000000000000000 in ?? ()
#198 0x0000000000000000 in ?? ()
#199 0x0000000000000000 in ?? ()
#200 0x0000000000000000 in ?? ()
#201 0x0000000000000000 in ?? ()
#202 0x0000000000000000 in ?? ()
#203 0x0000000000000000 in ?? ()
#204 0x0000000000000000 in ?? ()
#205 0x0000000000000000 in ?? ()
#206 0x0000000000000000 in ?? ()
#207 0x0000000000000000 in ?? ()
#208 0x0000000000000000 in ?? ()
#209 0x0000000000000000 in ?? ()
#210 0x0000000000000000 in ?? ()
#211 0x0000000000000000 in ?? ()
#212 0x0000000000000000 in ?? ()
#213 0x0000000000000000 in ?? ()
#214 0x0000000000000000 in ?? ()
#215 0x0000000000000000 in ?? ()
#216 0x0000000000000000 in ?? ()
#217 0x0000000000000000 in ?? ()
#218 0x0000000000000000 in ?? ()
#219 0x00002aaaab494560 in __check_rhosts_file () from /lib/libc.so.6
#220 0x00000000407ffdc0 in ?? ()
#221 0x000000000000000c in ?? ()
#222 0x0000000000000000 in ?? ()
#223 0x0000000000000000 in ?? ()
#224 0x0000000000000000 in ?? ()
#225 0x00002aac62c00020 in ?? ()
#226 0x0000000000000000 in ?? ()
#227 0x0000000000000000 in ?? ()
#228 0x0000000000000000 in ?? ()
#229 0x00000000407ff960 in ?? ()
#230 0x0000000000507238 in ?? ()
#231 0x00000000407ff960 in ?? ()
#232 0x0000000000000001 in ?? ()
#233 0x0000000000000000 in ?? ()
#234 0x0000000000000000 in ?? ()
#235 0x0000000000000000 in ?? ()
#236 0x0000000000000000 in ?? ()
#237 0x0000000000000000 in ?? ()
#238 0x0000000000000000 in ?? ()
#239 0x0000000000000000 in ?? ()
#240 0x0000000000000000 in ?? ()
#241 0x0000000000000000 in ?? ()
#242 0x0000000000000000 in ?? ()
#243 0x0000000000000000 in ?? ()
#244 0x0000000000000000 in ?? ()
#245 0x00002aaaaacd1230 in stack_cache_maxsize () from /lib/libpthread.so.0
#246 0x0000000040fff9e0 in ?? ()
#247 0x000007da000007db in ?? ()
#248 0x0000000000000000 in ?? ()
#249 0x00000000407ff200 in ?? ()
#250 0x0000000000000000 in ?? ()
#251 0x0000000000000001 in ?? ()
#252 0x00002aac62c00970 in ?? ()
#253 0x0000000000000000 in ?? ()
#254 0x0000000000000000 in ?? ()
#255 0x0000000000000000 in ?? ()
#256 0x0000000000000000 in ?? ()
#257 0x0000000000000000 in ?? ()
#258 0x0000000000000000 in ?? ()
#259 0x0000000000000000 in ?? ()
#260 0x0000000000000000 in ?? ()
#261 0x0000000000000000 in ?? ()
#262 0x0000000000000000 in ?? ()
#263 0x0000000000000000 in ?? ()
#264 0x0000000000000000 in ?? ()
#265 0x0000000000000000 in ?? ()
#266 0x0000000000000000 in ?? ()
#267 0x0000000000000000 in ?? ()
#268 0x0000000000000000 in ?? ()
#269 0x0000000000000000 in ?? ()
#270 0x0000000000000000 in ?? ()
#271 0x0000000000000000 in ?? ()
#272 0x0000000000000000 in ?? ()
#273 0x0000000000000000 in ?? ()
#274 0x0000000000000000 in ?? ()
#275 0x0000000000000000 in ?? ()
#276 0x0000000000000000 in ?? ()
#277 0x0000000000000000 in ?? ()
#278 0x0000000000000000 in ?? ()
#279 0x0000000000000000 in ?? ()
#280 0x0000000000000000 in ?? ()
#281 0x0000000000000000 in ?? ()
#282 0x0000000000000000 in ?? ()
#283 0x0000000000000000 in ?? ()
#284 0x0000000000000000 in ?? ()
#285 0x0000000000000000 in ?? ()
#286 0x0000000000000000 in ?? ()
#287 0x0000000000000000 in ?? ()
#288 0x0000000000000000 in ?? ()
#289 0x0000000000000000 in ?? ()
#290 0x0000000000000000 in ?? ()
#291 0x0000000000000000 in ?? ()
#292 0x0000000000000000 in ?? ()
#293 0x0000000000000000 in ?? ()
#294 0x0000000000000000 in ?? ()
#295 0x0000000000000000 in ?? ()
#296 0x0000000000000000 in ?? ()
#297 0x0000000000000000 in ?? ()
#298 0x0000000000000000 in ?? ()
#299 0x0000000000000000 in ?? ()
#300 0x0000000000000000 in ?? ()
#301 0x0000000000000000 in ?? ()
#302 0x0000000000000000 in ?? ()
#303 0x0000000000000000 in ?? ()
#304 0x0000000000000000 in ?? ()
#305 0x0000000000000000 in ?? ()
#306 0x0000000000000000 in ?? ()
#307 0x0000000000000000 in ?? ()
#308 0x0000000000000000 in ?? ()
#309 0x0000000000000000 in ?? ()
#310 0x0000000000000000 in ?? ()
#311 0x0000000000000000 in ?? ()
#312 0x0000000000000000 in ?? ()
#313 0x0000000000000000 in ?? ()
#314 0x0000000000000000 in ?? ()
#315 0x0000000000000001 in ?? ()
#316 0x00000000407ffa10 in ?? ()
#317 0x0000000000000000 in ?? ()
#318 0x0000000000000000 in ?? ()
#319 0x0000000000000000 in ?? ()
#320 0x0000000000000000 in ?? ()
#321 0x0000000000000000 in ?? ()
#322 0x0000000000000000 in ?? ()
#323 0x0000000000000000 in ?? ()
#324 0x0000000000000000 in ?? ()
#325 0x0000000000000000 in ?? ()
#326 0x0000000000000000 in ?? ()
#327 0x0000000000000000 in ?? ()
#328 0x0000000000000000 in ?? ()
#329 0x0000000000000000 in ?? ()
#330 0x0000000000000000 in ?? ()
#331 0x0000000000000000 in ?? ()
#332 0x0000000000000000 in ?? ()
#333 0x0000000000000000 in ?? ()
#334 0x0000000000000000 in ?? ()
#335 0x0000000000000000 in ?? ()
#336 0x0000000000000000 in ?? ()
#337 0x0000000000000000 in ?? ()
#338 0x0000000000000000 in ?? ()
#339 0x0000000000000000 in ?? ()
#340 0x0000000000000000 in ?? ()
#341 0x0000000000000000 in ?? ()
#342 0x0000000000000000 in ?? ()
#343 0x0000000000000000 in ?? ()
#344 0x0000000000000000 in ?? ()
#345 0x0000000000000000 in ?? ()
#346 0x0000000000000000 in ?? ()
#347 0x0000000000000000 in ?? ()
#348 0x0000000000000000 in ?? ()
#349 0x0000053c78e2ba6a in ?? ()
#350 0x0000000000000000 in ?? ()
#351 0x0000000000000000 in ?? ()
#352 0x0000000000000000 in ?? ()
#353 0x0000000000000000 in ?? ()
#354 0x0000000000402582 in producer_decompress () at pbzip2.cpp:661
(gdb) q
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2005-08-30 12:41:41 UTC
OK.  I know that it has been a while and I apologize.  Real life caught up with
me for a bit.

Anyway, can you try out the brand-spankin' new 0.94 ebuild I just added to
portage.  If this doesn't work, I'll be sure to get the author involved.  He is
actually the person that informed me of the new version and says it fixes
"several major bugs" so I'm hoping that this is one of them.
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2006-01-04 07:15:05 UTC
No response and several versions of the ebuild have been added to portage since.