I am just copying over from downstream report:
Something in a certain QEMU raw image seems to upset lbzip2-2.2. Other images are okay but I could not test another NTFS file system image. The error happens with a small part of the image so I will attach it.
Earlier versions of lbzip2 seem to be unaffected.
Steps to Reproduce:
1. lbzip2 -c hpwin.img >/dev/null
lbzip2: /var/tmp/portage/app-arch/lbzip2-2.2/work/lbzip2-2.2/src/encode.c:794: generate_initial_trees: Assertion `a < b' failed.
I confirm this bug. It will be fixed in the next release.
Fix assertion failure, closes #8
src/encode.c (generate_initial_trees): Rewrite from scratch.
Add patch fixing upstream bug #8