Subject: Process hang on LFS (was: Re: Process hang in mv/unlink (LFS-related?))
To: None <current-users@netbsd.org>
From: Gary Duzan <gary@duzan.org>
List: current-users
Date: 01/28/2003 12:36:05
Ok, after rebooting into the new kernel I again get a process
hanging in "lfsresbu". So while I originally suspected some recent
SA-related process cleanup, I now suspect it is related to the
recent daddr_t changes.
Gary Duzan
In Message <200301281714.h0SHEhT26014@capo.xnet.duzan.org> ,
Gary Duzan <gary@duzan.org> wrote:
=> With a slightly older kernel it still hangs, but in a different
=>place, namely a mkstemp/open call. This time I noticed that top
=>shows it is stuck in a tsleep on "lfsresbuf", which would make
=>sense since the source and all the working directories live on an
=>LFS. I'll try the new kernel again and see if that is stuck on the
=>same tsleep.
=>
=> Gary Duzan
=>
=>
=>
=>In Message <200301281642.h0SGgK904664@capo.xnet.duzan.org> ,
=> Gary Duzan <gary@duzan.org> wrote:
=>
=>=> 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 e
ch
=>o "$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 > $TM
P;
=> 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
=>=>
=>=>