From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23006 invoked from network); 23 May 2008 13:24:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 May 2008 13:24:27 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 43272 invoked from network); 23 May 2008 13:24:19 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 May 2008 13:24:19 -0000 Received: (qmail 24849 invoked by alias); 23 May 2008 13:24:15 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25083 Received: (qmail 24836 invoked from network); 23 May 2008 13:24:15 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 23 May 2008 13:24:15 -0000 Received: from cork.scru.org (cork.scru.org [209.20.67.2]) by bifrost.dotsrc.org (Postfix) with ESMTP id 7B0D580589A4 for ; Fri, 23 May 2008 15:24:11 +0200 (CEST) Received: by cork.scru.org (Postfix, from userid 1000) id D71AC1040D7; Fri, 23 May 2008 13:24:08 +0000 (UTC) Date: Fri, 23 May 2008 13:24:08 +0000 From: Clint Adams To: martin f krafft , 482525@bugs.debian.org Cc: zsh-workers@sunsite.dk Subject: Re: Bug#482525: failure to fcntl-lock history file, takes ages to create interactive session Message-ID: <20080523132408.GA8806@scru.org> Mail-Followup-To: martin f krafft , 482525@bugs.debian.org, zsh-workers@sunsite.dk References: <20080523094636.GA3814@piper.oerlikon.madduck.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080523094636.GA3814@piper.oerlikon.madduck.net> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Virus-Scanned: ClamAV 0.91.2/7221/Fri May 23 13:56:17 2008 on bifrost X-Virus-Status: Clean On Fri, May 23, 2008 at 11:46:36AM +0200, martin f krafft wrote: > When I log in to a machine where my ~ is NFS-mounted (lockd is in > use), with hist_fcntl_lock set, it takes several minutes to get an > interactive prompt. The reason is that the locking seems to fail, > according to strace: > > open("/home/madduck/.var/zsh/history-diamond", O_RDWR|O_NOCTTY) = 3 > fcntl64(3, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = -1 EIO (Input/output error) > rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 > rt_sigaction(SIGCHLD, NULL, {0x80a88a0, [], SA_INTERRUPT}, 8) = 0 > rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 > nanosleep({1, 0}, {1, 0}) = 0 > > This repeats a number of times before it finally moves on. Complete > strace is attached. Search for "EIO". Out of curiosity, does the same thing happen if you use -o nolock on the client?