From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18987 invoked from network); 3 Oct 2005 18:48:06 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 3 Oct 2005 18:48:06 -0000 Received: (qmail 56120 invoked from network); 3 Oct 2005 18:48:00 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 3 Oct 2005 18:48:00 -0000 Received: (qmail 21406 invoked by alias); 3 Oct 2005 18:47:58 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21817 Received: (qmail 21395 invoked from network); 3 Oct 2005 18:47:57 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 3 Oct 2005 18:47:57 -0000 Received: (qmail 55830 invoked from network); 3 Oct 2005 18:47:57 -0000 Received: from ns9.hostinglmi.net (213.194.149.146) by a.mx.sunsite.dk with SMTP; 3 Oct 2005 18:47:55 -0000 Received: from 212.red-80-35-44.staticip.rima-tde.net ([80.35.44.212] helo=localhost) by ns9.hostinglmi.net with esmtpa (Exim 4.52) id 1EMVLu-0000L5-6E; Mon, 03 Oct 2005 20:47:54 +0200 Date: Mon, 3 Oct 2005 20:48:22 +0200 From: DervishD To: Andrey Borzenkov Cc: Zsh Workers Subject: Re: Bug? in complist when filenames are longer than the screen Message-ID: <20051003184822.GA3240@DervishD> Mail-Followup-To: Andrey Borzenkov , Zsh Workers References: <20051003144536.GA3179@DervishD> <200510032145.07748.arvidjaar@newmail.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200510032145.07748.arvidjaar@newmail.ru> User-Agent: Mutt/1.4.2.1i Organization: DervishD X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ns9.hostinglmi.net X-AntiAbuse: Original Domain - sunsite.dk X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - dervishd.net X-Source: X-Source-Args: X-Source-Dir: X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) 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.0.4 Hi Andrey :) * Andrey Borzenkov dixit: > On Monday 03 October 2005 18:45, DervishD wrote: > > Hi all :) > > > > I'm not sure if this is a bug or if I'm doing anything wrong, but > > I can reproduce it even without reading RC's (neither /etc/zshenv > > nor /etc/zshrc exist, and I run zsh with "-f"). > > > > $ print $ZSH_VERSION > > 4.2.5 > > $ touch a b c filename1 filename2 d e > > $ zmodload zsh/complist > > $ COLUMNS=3 > > $ ls > > > > The screen messes up and, depending on the filenames, zsh > > sometimes segfaults or hangs. > It would be nice to have exact recipe how to reproduce a crash preferably > starting with zsh -f. I have screen corruption but not (OK I am not sure what > sensibly can be done on 3 column width :) The above, when run after "zsh -f" and making sure you don't have any /etc/zshenv not protected by "[[ -o rcs ]]", causes a hangup (not a crash) in my system. Unfortunately the crash happens randomly, and seldom. The common case is a hangup, with zsh eating lots of CPU, but from time to time it crashes. With 3 column width you can call "ls" if your PS1 is short enough XDDDD. BTW, this has happened to me with COLUMNS=100 and a very long file name, that's why I discovered it. First zsh messed up the screen, and when I hit the shell crashed. I haven't been able to reproduce the crash with that particular example, zsh always hangs now, but I have had crashes and hangs with the example I provide above. > Jokes aside, I do confirm screen corruption during normal completion under > konsole and linux console. This happens with long filenames Exactly. Any filename whose name length is greater or equal to $COLUMNS seems to cause the problem. Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 | http://www.dervishd.net http://www.pleyades.net & http://www.gotesdelluna.net It's my PC and I'll cry if I want to...