[klibc] Bug#486557: cpio segfault

maximilian attems max at stro.at
Tue Jun 17 06:26:15 PDT 2008


On Mon, 16 Jun 2008, Joey Hess wrote:

> klibc cpio segfaults extracting various cpio files. It seems to work for
> small files, but fail for larger ones, including the d-i root floppy
> image.
> For example:
> joey at kodama:/tmp/empty>wget http://people.debian.org/~joeyh/d-i/images/20080401-09:01/floppy/root.img
> joey at kodama:/tmp/empty>zcat root.img | sudo /usr/lib/klibc/bin/cpio -i
> zsh: broken pipe         zcat root.img | 
> zsh: segmentation fault  sudo /usr/lib/klibc/bin/cpio -i

right easy testcase.
> Or:
> joey at kodama:/bin>find . | cpio --quiet -o -H newc >|~/bin.cpio
> joey at kodama:/bin>cd /tmp/empty 
> joey at kodama:/tmp/empty>sudo /usr/lib/klibc/bin/cpio -i < ~/bin.cpio 
> zsh: segmentation fault  sudo /usr/lib/klibc/bin/cpio -i < ~/bin.cpio
> Version 1.5.9-2 does not have this problem. 

it has just verified, recompiled it and it has the same problem.
recompiled 1.5.9 and HEAD with gcc-4.2 and problem was gone.
didn't see an obvious gcc-4.3 warning while compiling cpio.
> I am not familiar with klibc enough to get a backtrace, but I hope this
> can easily be reproduced so you can..

will look into it later today after france italy match.
> Since this breaks d-i boot floppies, I've marked this RC, to avoid the
> broken one getting into testing. (However, d-i builds images using the
> version in unstable, so blocking it won't help entirely.)

hmm it migrated already afais,
as soon as a fix is known i'll upload it together with 1.5.11


More information about the klibc mailing list