From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,a155333c123cb9ea,start X-Google-Attributes: gidfee84,public From: mikeh@aslan.eng.mindspring.net (Mike harrelson) Subject: Hung processes/bug Date: 1999/03/13 Message-ID: <7ccdrg$69p$1@camel18.mindspring.com>#1/1 X-Deja-AN: 454399814 Organization: MindSpring Enterprises, Atlanta Newsgroups: comp.unix.osf.osf1 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 #include #include 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