zsh-workers
 help / color / mirror / code / Atom feed
From: Andrew Ruder <andy@aeruder.net>
To: zsh-workers@sunsite.dk
Subject: Segfaulting script
Date: Tue, 13 Jun 2006 18:15:06 -0500	[thread overview]
Message-ID: <20060613231505.GA23239@goomba.ruder> (raw)

[-- Attachment #1: Type: text/plain, Size: 650 bytes --]

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]\$ <TAB>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 <andy@aeruder.net>
http://www.aeruder.net

[-- Attachment #2: test.zsh --]
[-- Type: text/plain, Size: 152 bytes --]

#!/bin/zsh

autoload -U compinit
compinit

function testfunc { 
	local flag_strings=()
	local anything 
}

testfunc

echo "Ok, try tab completion..."



             reply	other threads:[~2006-06-13 23:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-13 23:15 Andrew Ruder [this message]
2006-06-16 11:03 ` Frank Terbeck
2006-06-17 17:11   ` Bart Schaefer
2006-06-17 18:14     ` Frank Terbeck
2006-06-18  4:47       ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060613231505.GA23239@goomba.ruder \
    --to=andy@aeruder.net \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).