2004-06-22 20:28:00

by Maciej Żenczykowski

[permalink] [raw]
Subject: 2.4.27-rc1 pipes - file -z hangs on some gzip files

Hi!
I'm investigating a weird hang of file -z (both newest version from Fedora
Core 1 [4.02] and from Fedora Core 2 [4.07]) on a 2.4.27-rc1 kernel.

file -z reiserfs.o.gz hangs, strace -f file -z reiserfs.o.gz shows the
following end fragment.
The same file binary [the 4.07 one] works on this file on a 2.6 kernel
(the current default from FC2) but on a different system.

The problem appears to be pipe related.

[the data is correctly compressed, decompressed correctly, and I have two
compressed files that behave this way]

[pid 1033 is the file command, pid 1034 is gzip -cdq subprocess, piped
i/o]

[pid 1033] close(4) = 0
[pid 1033] close(7) = 0
[pid 1033] write(5,
"\37\213\10\10_\207\330@\2\3reiserfs.o\0\314\375\v|T\325"..., 65536
<unfinished ...>
[pid 1034] <... read resumed>
"\37\213\10\10_\207\330@\2\3reiserfs.o\0\314\375\v|T\325"..., 32768)
= 32768
[pid 1034] brk(0) = 0x80a6f70
[pid 1034] brk(0x80c7f70) = 0x80c7f70
[pid 1034] brk(0) = 0x80c7f70
[pid 1034] brk(0x80c8000) = 0x80c8000
[pid 1034] brk(0) = 0x80c8000
[pid 1034] brk(0) = 0x80c8000
[pid 1034] brk(0x80c7000) = 0x80c7000
[pid 1034] brk(0) = 0x80c7000
[pid 1034] write(1,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\1\0\3\0\1\0\0\0\0\0\0\0"..., 32768

is this a kernel problem? shared library problem (libz?), any ideas?

Thanks,
MaZe.