zsh-workers
 help / color / mirror / code / Atom feed
* Segfaulting script
@ 2006-06-13 23:15 Andrew Ruder
  2006-06-16 11:03 ` Frank Terbeck
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Ruder @ 2006-06-13 23:15 UTC (permalink / raw)
  To: zsh-workers

[-- 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..."



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-06-18  4:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-13 23:15 Segfaulting script Andrew Ruder
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

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).