[KLUG Members] gunzip uncompresses file to zero bytes

bill bill at billtron.com
Wed Mar 8 23:08:35 EST 2006


On Wed, 2006-03-08 at 22:37, Adam Tauno Williams wrote:
> >> > I ran 
> >> > gunzip filename
> >> > to a file.  It worked away for a while and when it was done, left me
> >> > with a file of zero bytes.
> >> > What happened?
> >> It didn't display any warning messages?  
> >No, just returned the command prompt.
> 
> Wierd,  run "strace gunzip ...." and look at the tail end of the output.

O.k., running

strace gunzip 

gives me stuff that makes no sense to me, but here is the tail end...

rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x804cd90, [INT], SA_RESTORER|SA_RESTART,
0x40047cf8}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTERM, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x804cd90, [TERM], SA_RESTORER|SA_RESTART,
0x40047cf8}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGHUP, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGHUP, {0x804cd90, [HUP], SA_RESTORER|SA_RESTART,
0x40047cf8}, {SIG_IGN}, 8) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE, {B38400 opost isig icanon echo ...}) = 0
write(2, "gunzip: compressed data not read"..., 81gunzip: compressed
data not read from a terminal. Use -f to force decompression.
) = 81
write(2, "For help, type: gunzip -h\n", 26For help, type: gunzip -h
) = 26
exit_group(1)                           = ?



-- 
PGP/GPG Public Key: https://billtronservices.com/key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.kalamazoolinux.org/pipermail/members/attachments/20060308/a0f90fe2/attachment.bin


More information about the Members mailing list