From owner-freebsd-bugs Sun Oct 6 4:10:24 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2F3B37B406 for ; Sun, 6 Oct 2002 04:10:06 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4352643E9E for ; Sun, 6 Oct 2002 04:10:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g96BA5Co045855 for ; Sun, 6 Oct 2002 04:10:05 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g96BA5nu045854; Sun, 6 Oct 2002 04:10:05 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C36937B401 for ; Sun, 6 Oct 2002 04:01:16 -0700 (PDT) Received: from mailx.mediabase-gmbh.de (pD9E969A3.dip.t-dialin.net [217.233.105.163]) by mx1.FreeBSD.org (Postfix) with SMTP id 43CD243E3B for ; Sun, 6 Oct 2002 04:00:24 -0700 (PDT) (envelope-from woerner@mediabase-gmbh.de) Message-Id: <20021006110024.43CD243E3B@mx1.FreeBSD.org> Date: Sun, 6 Oct 2002 04:00:24 -0700 (PDT) From: Arne Woerner To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/43739: cannot open file without obvious reason Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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