[BusyBox] Re: "rpm" fails with SIGSEGV

Rob Landley rob at landley.net
Wed Nov 12 20:45:18 UTC 2003


On Wednesday 12 November 2003 06:47, Glenn McGrath wrote:
> On Wed, 12 Nov 2003 05:58:09 -0600
>
> Rob Landley <rob at landley.net> wrote:
> > Is this the new "fork and use a pipe" code?  (Glenn said he saw a bug
> > like this.  I'm happy to try tracking it down if we can get a
> > reproducible test case.  This is on a standard intel setup?  What
> > kernel, what libc, etc...)
>
> The fork and pipe is only used in get_header_tar_bz2, i did a test and
> reverted get_header_tar_gz to use fork and pipe and it was embarasingly
> slow.

Possibly repeated cache flushing due to the context switch.  If it's 
outputting a byte at a time to the pipe, there may be a context switch 
between each byte.  It probably needs a bit of buffering...

> Im experimenting with custom streams, (i.e. fopencookie) at the moment,
> it looks good, its biggest disadvantage is its currently only supported
> by glibc and uclibc.

fopencookie?

No man page on it in rh9...

> Glenn

Rob



More information about the busybox mailing list