* Hung processes/bug
@ 1999-03-13 5:00 Mike harrelson
0 siblings, 0 replies; only message in thread
From: Mike harrelson @ 1999-03-13 5:00 UTC (permalink / raw)
Has anyone seen this little NFS bug-let with DU 4.0?
$ mkdir -p parent/child
$ ./hangme
The process then hangs. Anything attempting to access this directory will
also hang in an uninterruptable state forever. We are running DU 4.0D with
the 3rd public release patch. The directories in question are on NFS. Local
disk (UFS) appears to work fine.
-------------------------------------------------
/*hangme.c*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
void main()
{
int st;
st=rename("parent/child","parent");
if (st<0) perror("rename");
}
A trace of the process:
execve("./hangme", ["hangme"], [/* 23 vars */]) = 0
getpagesize() = 0x2000
getpagesize() = 0x2000
getrlimit(RLIMIT_DATA, {rlim_cur=131072*1024, rlim_max=1048576*1024}) = 0
mmap(0x3ffc0002000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_ANONYMOUS|MAP_PRIV
ATE, -1, 0) = 0x3ffc0002000
getrlimit(RLIMIT_DATA, {rlim_cur=131072*1024, rlim_max=1048576*1024}) = 0
mmap(0x3ffc0004000, 16384, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_ANONYMOUS|MAP_PRI
VATE, -1, 0) = 0x3ffc0004000
getuid() = 100 (euid 0)
getgid() = 10 (egid 0)
getuid() = 100 (euid 0)
getgid() = 10 (egid 0)
read(3, "\203\1\21\0\340\252\0336\0@\0\0\0"..., 2664) = 2664
mmap(0x120000000, 8192, PROT_READ|PROT_EXEC, 0 /* MAP_??? */|MAP_PRIVATE|MAP_FIX
ED, 3, 0) = 0x120000000
mmap(0x140000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, 0 /* MAP_??? */|MAP_PRIV
ATE, 3, 0x2000) = 0x140000000
open("/usr/shlib/libc.so", O_RDONLY) = 4
read(4, "\203\1\23\0\225\27l6\0@\23\0\0\0"..., 2664) = 2664
mmap(0x3ff80080000, 1179648, PROT_READ|PROT_EXEC, 0 /* MAP_??? */|MAP_PRIVATE, 4
, 0) = 0x3ff80080000
mmap(0x3ffc0080000, 81920, PROT_READ|PROT_WRITE|PROT_EXEC, 0 /* MAP_??? */|MAP_PRIVATE, 4, 0x120000) = 0x3ffc0080000
mmap(0x3ffc0094000, 50192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0) = 0x3ffc0094000
close(4) = 0
stat("/usr/shlib/libc.so", {st_mode=S_IFREG|0644, st_size=1634400, ...}) = 0
set_program_attributes(0x120000000, 0x2000, 0x140000000, 0x1a0) = 0
close(3) = 0
getpagesize() = 0x2000
obreak(0x14000e1a0) = 0
rename("parent/child", "parent"
and it just sits there forever in a U state (uninterruptable/UN-killable).
A trace of the same procedure on local disk yields:
...
rename("parent/child", "parent") = -1 EEXIST (File exists)
...
and terminates normally with an error message.
-- mikeh AT mindspring.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-03-13 5:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-13 5:00 Hung processes/bug Mike harrelson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox