Subject: Process hang in mv/unlink
To: None <current-users@netbsd.org>
From: Gary Duzan <gary@duzan.org>
List: current-users
Date: 01/28/2003 11:42:20
While building a current distribution with a current kernel,
the "mv" process hangs. Here are the build processes:
===========================================================================
3671 p8 S 0:00.01 sh ./build.sh -D /usr2/current/i386/build -M /usr2/current/i386/obj -R /usr2/current/i386/release -u -o distribution install=/
4563 p8 S 0:00.02 /usr/local/tools/bin/nbmake distribution
4578 p8 S 0:00.00 /bin/sh -ec (cd /usr2/current/src && /usr/local/tools/bin/nbmake NOPOSTINSTALL=1 build)
4579 p8 S 0:00.02 /usr/local/tools/bin/nbmake NOPOSTINSTALL 1
4595 p8 S 0:00.00 /bin/sh -ec (cd /usr2/current/src && /usr/local/tools/bin/nbmake do-tools)
4596 p8 S 0:00.02 /usr/local/tools/bin/nbmake do-tools
4603 p8 S 0:00.00 /bin/sh -ec (cd /usr2/current/src/tools && /usr/local/tools/bin/nbmake dependall)
4604 p8 S 0:00.05 /usr/local/tools/bin/nbmake dependall
4620 p8 S 0:00.00 /bin/sh -ec targ=dependall;dir=compat;\t\t case "$dir" in /*)\t\t\t\t\t\t echo "$targ ===> $dir";\t\t\t\t cd "$dir";\t\t\t\t\t\t /usr/local/tools/bin/nbmake "_THISDIR_=$dir/" $targ;\t\t\t ;;\t\t\t\t\t\t\t *)\t\t\t\t\t\t\t\t echo "$targ ===> $dir";\t\t\t cd "/usr2/current/src/tools/$dir";\t\t\t\t\t /usr/local/tools/bin/nbmake "_THISDIR_=$dir/" $targ;\t\t ;;\t\t\t\t\t\t\t esac
4621 p8 S 0:00.06 /usr/local/tools/bin/nbmake _THISDIR_ compat/
4622 p8 S 0:00.06 /bin/sh -ec (TMP=/tmp/_depend$$; sed -e 's/^\134([^\134.]*\134).o[ ]*:/\1341.lo:/' < .depend > $TMP; mv $TMP .depend)
4623 p8 S 0:38.15 mv /tmp/_depend4622 .depend
===========================================================================
and here is the stack trace from mv:
===========================================================================
#0 0x480daea3 in unlink () from /lib/libc.so.12
#1 0x80496cc in dladdr ()
#2 0x80492d8 in dladdr ()
#3 0x8048e3c in close ()
===========================================================================
I've had this happen a couple times exactly the same way.
Gary Duzan