Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#247556: zsh build gets stuck running tests.



On Wed, May 05, 2004 at 06:32:37PM -0400, Clint Adams wrote:
> > Why would it be a kernel bug if all other packages build fine?
> 
> Why would it be a zsh bug if it builds fine outside of sbuild?
> Why would it be an sbuild bug if it builds fine under sbuild on all
> architectures bug sparc and amd64?

Anyway, I'm using kernel version 2.6.5.  I doubt many other
people using sbuild on 2.6.x.

What is the test that triggers it (B04read.ztst) doing that other
tests aren't doing?  It would be nice if reduce it to something
we can easily reproduce.

I ran:
strace -f -F zsh +Z -f Test/B04read.ztst

and got:
[...]
open("/bin", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
getdents64(3, /* 96 entries */, 4096)   = 2736
getdents64(3, /* 0 entries */, 4096)    = 0
close(3)                                = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
pipe([3, 4])                            = 0
fork(Process 24898 attached
)                                  = 24898
[pid 24894] close(4 <unfinished ...>
[pid 24898] close(3 <unfinished ...>
[pid 24894] <... close resumed> )       = 0
[pid 24894] read(3,  <unfinished ...>
[pid 24898] <... close resumed> )       = 0
[pid 24898] close(11)                   = 0
[pid 24898] rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_IGN}, 8) = 0
[pid 24898] times({tms_utime=0, tms_stime=0, tms_cutime=0,
tms_cstime=0}) = 551580957
[pid 24898] close(4)                    = 0
[pid 24894] <... read resumed> "", 1)   = 0
[pid 24894] close(3)                    = 0
[pid 24894] rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
[pid 24894] rt_sigsuspend(~[HUP CHLD] <unfinished ...>
[pid 24898] open("world", O_WRONLY|O_CREAT|O_TRUNC|O_NOCTTY,
0666) = 3
[pid 24898] dup2(3, 1)                  = 1
[pid 24898] close(3)                    = 0
[pid 24898] close(10)                   = 0
[pid 24898] close(4294967295)           = -1 EBADF (Bad file
descriptor)
[pid 24898] close(4294967295)           = -1 EBADF (Bad file
descriptor)
[pid 24898] rt_sigprocmask(SIG_UNBLOCK, [CHLD], [CHLD], 8) = 0
[pid 24898] execve("/bin/cat", ["cat"], [/* 13 vars */]) = 0
[pid 24898] uname({sys="Linux", node="debian", ...}) = 0
[pid 24898] brk(0)                      = 0x505000
[pid 24898] mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a95569000
[pid 24898] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No
such file or directory)
[pid 24898] open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No
such file or directory)
[pid 24898] open("/etc/ld.so.cache", O_RDONLY) = 3
[pid 24898] fstat(3, {st_mode=S_IFREG|0644, st_size=52453, ...})
= 0
[pid 24898] mmap(NULL, 52453, PROT_READ, MAP_PRIVATE, 3, 0) =
0x2a9556a000
[pid 24898] close(3)                    = 0
[pid 24898] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No
such file or directory)
[pid 24898] open("/lib/libc.so.6", O_RDONLY) = 3
[pid 24898] read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\331"..., 640)
= 640
[pid 24898] fstat(3, {st_mode=S_IFREG|0644, st_size=1268960,
...}) = 0
[pid 24898] mmap(NULL, 2329544, PROT_READ|PROT_EXEC, MAP_PRIVATE,
3, 0) = 0x2a9566b000
[pid 24898] mprotect(0x2a95785000, 1174472, PROT_NONE) = 0
[pid 24898] mmap(0x2a9586b000, 217088, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0x100000) = 0x2a9586b000
[pid 24898] mmap(0x2a958a0000, 15304, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2a958a0000
[pid 24898] close(3)                    = 0
[pid 24898] mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a958a4000
[pid 24898] munmap(0x2a9556a000, 52453) = 0
[pid 24898] brk(0)                      = 0x505000
[pid 24898] brk(0x526000)               = 0x526000
[pid 24898] brk(0)                      = 0x526000
[pid 24898] fstat(1, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
[pid 24898] fstat(0, {st_mode=S_IFCHR|0600, st_rdev=makedev(136,
1), ...}) = 0
[pid 24898] read(0,  <unfinished ...>


And there it hangs reading from stdin and nobody seems to be
writing.


Kurt



Messages sorted by: Reverse Date, Date, Thread, Author