Date: Sun, 6 Oct 2002 04:00:24 -0700 (PDT) From: Arne Woerner <woerner@mediabase-gmbh.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/43739: cannot open file without obvious reason Message-ID: <20021006110024.43CD243E3B@mx1.FreeBSD.org>
next in thread | raw e-mail | index | archive | help
>Number: 43739
>Category: kern
>Synopsis: cannot open file without obvious reason
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Oct 06 04:10:04 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Arne Woerner
>Release: FreeBSD 5.0-CURRENT-20020917-JPSNAP i386
>Organization:
mediaBase GmbH, MUC, BY, FRG
>Environment:
System: FreeBSD actionman.local.mediabase-gmbh.de 5.0-CURRENT-20020917-JPSNAP Fr
eeBSD 5.0-CURRENT-20020917-JPSNAP #1: Sat Sep 28 09:44:55 GMT 2002 aw@houston.lo
cal.mediabase-gmbh.de:/usr/src/sys/i386/compile/RIDDICK i386
>Description:
I connected from a FreeBSD box to another FreeBSD box X via ssh
and used some 'cat', 'lockf', 'tail', 'date' and 'mv' calls
and did the same locally on the box X.
After some time (75 cycles (local/remote initiated cycles))
both sides have problems with opening files (error messages:
1. /usr/libexec/ld-elf.so.1: Cannot open "/usr/lib/libc.so.5"
2. ./ICanDo.sh: Pipe call failed: Too many open files in system
3. cat: num: Too many open files in system
4. lockf: cannot open gaga: Too many open files in system
'netstat' and 'ps' do not show something special (at most 2 lockf)...
Not many tcp connections:
tcp4 0 0 localhost.x11-ssh *.*
LISTEN
tcp4 0 64 newark.ssh gargano.19859
ESTABLISHED
udp4 0 0 localhost.ntp *.*
udp4 0 0 newark.ntp *.*
The problem remains for at least 10 minutes.
This looks a little bit funny... :)
>How-To-Repeat:
The script is called ICanDo.sh and contains the following lines:
#!/bin/sh
script is called ICanDo.sh and contains the following lines:
#!/bin/sh
# $Id$
if [ "$1" = "" ] ;then
lockf gaga $0 DoIt $2
exit 0
fi
if [ "$2" != "" ] ;then
sleep 5
fi
num=`cat num`
if [ "$num" = "" ] ;then
num=0
fi
num=`expr $num + 1`
echo $num > num
echo ${SSH_CLIENT}: ${num}: `date +%Y%m%d%H%M%S` >> dada2
tail -100000 < dada2 > dada2.tmp
mv dada2.tmp dada2
The command line on the remote box was:
( repeat 1000000000 ssh cyclops ./ICanDo.sh ) < /dev/null &
The command line on the box X was:
( repeat 1000000000 ./ICanDo.sh "" gaga ) &
>Fix:
rebooting helps...
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021006110024.43CD243E3B>
