From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1206 invoked from network); 13 Jun 2006 23:13:08 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO, URIBL_SBL autolearn=no version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 13 Jun 2006 23:13:08 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 93925 invoked from network); 13 Jun 2006 23:13:00 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 13 Jun 2006 23:13:00 -0000 Received: (qmail 14883 invoked by alias); 13 Jun 2006 23:12:57 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22490 Received: (qmail 14872 invoked from network); 13 Jun 2006 23:12:56 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 13 Jun 2006 23:12:56 -0000 Received: (qmail 93602 invoked from network); 13 Jun 2006 23:12:56 -0000 Received: from www.aeruder.net (HELO aeruder.net) (65.254.53.245) by a.mx.sunsite.dk with SMTP; 13 Jun 2006 23:12:54 -0000 Received: from aeruder.net (localhost [127.0.0.1]) by aeruder.net (Postfix) with ESMTP id 46C6F3FDE5 for ; Tue, 13 Jun 2006 18:12:51 -0500 (CDT) Date: Tue, 13 Jun 2006 18:15:06 -0500 From: Andrew Ruder To: zsh-workers@sunsite.dk Subject: Segfaulting script Message-ID: <20060613231505.GA23239@goomba.ruder> Mail-Followup-To: zsh-workers@sunsite.dk Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="82I3+IH0IqGh5yIs" Content-Disposition: inline User-Agent: Mutt/1.5.11 --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hey all, I was writing a script today and was getting a segfault (on what turned out to be a very incorrect line), but nonetheless... The attached script when sourced into a running shell causes future tab completion to die. I have verified this against 4.2.6 and 4.3.2. Looking at a backtrace seems to show that it is hitting infinite recursion. % zsh -f [\u@\h \W]\$ . ./test.zsh Ok, try tab completion... [\u@\h \W]\$ zsh: segmentation fault (core dumped) zsh -f Thanks, Andrew Ruder P.S. You don't have to tell me how wrong/stupid/etc.. the script in question is... :) -- Andrew Ruder http://www.aeruder.net --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="test.zsh" #!/bin/zsh autoload -U compinit compinit function testfunc { local flag_strings=() local anything } testfunc echo "Ok, try tab completion..." --82I3+IH0IqGh5yIs--