On Fri, Oct 20, 2006 at 11:38:58AM -0700, Ben Greear wrote:I'll give that a try, but shouldn't these locks clean themselves up when the
> I had a dead nfs server that was causing some programs to pause,
> in particular 'yum install foo' was paused. I kill -9'd the
> yum related processes.
> > I fixed up the nfs server and was able to un-mount the file system.
> I subsequently killed many backed up updatedb and similar processes.
> > Now, there are no rpm processes, but if I try 'rpm [anything]' it
> hangs trying to open a futex:
> > open("/var/lib/rpm/Packages", O_RDONLY|O_LARGEFILE) = 4
> fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
> fstat64(4, {st_mode=S_IFREG|0644, st_size=41390080, ...}) = 0
> futex(0xb7ba178c, FUTEX_WAIT, 1, NULL <unfinished ...>
> > Is there any way to figure out what is causing this futex-wait?
The dead rpm you killed left behind locks in its databases.
rm -f /var/lib/rpm/__db* and it should work again.
Dave