[BusyBox] bug#1073: BusyBox] bug#1073: busybox gzip: Memory Fault

David Douthitt ssrat at mailbag.com
Wed Nov 8 17:51:54 UTC 2000


On 9 Nov 2000, at 1:02, Glenn McGrath wrote:

> I succesfully gziped the kernel source.tar, can you give any more
> details about the file you are trying to compress, or confirm the
> problem isnt specific to your machine. 

It sounds like it's fixed - but anyway...

I'm running a highly modified version of LRP 2.9.7 with the 
Eigerstein VPN+Masquerade Linux 2.2.16 kernel.

In the second case, it is stdin that is being compressed.  In the 
first, it was a file created in the same way as stdin was created in 
the second instance.

> David Douthitt wrote:
> 
> > Package: busybox
> > Version: 0.48pre
> > 
> > Compiled: 2000.11.07-14:34+0000
> > 
> > gzip fails after reading so many bytes.  I did:
> > 
> > strace gzip foo.tar
> > 
> > and it said...
> > 
> > read(3, "................" ..., 65536) = 65536
> > read(3, "................" ..., 32768) = 32768
> > read(3, "................" ..., 32768) = 32768
> > --- SIGSEGV (Segmentation Fault) ---
> > +++ killed by SIGSEGV +++
> > 
> > I did:
> > 
> > ctar /usr/bin/* | strace gzip -c - > foo.tar.gz
> > 
> > and it did:
> > 
> > read(0, "....................." ..., 28672) = 4096
> > read(0, "....................." ..., 24576) = 4096
> > read(0, "....................." ..., 20480) = 4096
> > --- SIGSEGV (Segmentation Fault) ---
> > +++ killed by SIGSEGV +++
> > 
> > ...the "....." contained arbitrary data from the data stream
> > apparently.
> > 
> 

-- 
David Douthitt
UNIX Systems Administrator
HP-UX, Linux, Unixware
ddouthitt at mennonite.minister.net






More information about the busybox mailing list