zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Akitoshi MORISHIMA <ohm@rcac.tdi.co.jp>, zsh-workers@sunsite.dk
Subject: Re: [bug report] 4.0.2 / 4.0.4 dumps core
Date: Mon, 12 Nov 2001 09:10:31 +0000	[thread overview]
Message-ID: <1011112091032.ZM18280@candle.brasslantern.com> (raw)
In-Reply-To: <20011112113910O.ohm@rcac.tdi.co.jp>

On Nov 12, 11:39am, Akitoshi MORISHIMA wrote:
}
} Condition:
} 	put only the following line
} 
} 	setopt extendedglob globcomplete
} 
} 	in .zshrc, and inactivate(remove) every other startup files,
} 	and invoke zsh
} 
} Type:
} 	!^ then [TAB]
} 
} then zsh dumps core...
} 
} I guess "!^" accesses to "previous command line", which is expectd to
} be always present even without history-related settings, but this
} isn't true in this "special" case...

This is a mis-diagnosis.

Zsh is attempting to complete reserved words (in this case, the word "!").
The reswords table contains static strings, but the completion code tries
to poke '\0' byte in at the end of the word, resulting in a segfault on any
platform where static strings aren't writable.

The combination of extendedglob and globcomplete (which makes "^" mean
something), plus lack of history, tickles the bug, but is not the reason
for it:

schaefer[524] Src/zsh -f
zagzig% setopt extendedglob globcomplete nobanghist
zagzig% !^<TAB>zsh: segmentation fault (core dumped)  Src/zsh -f


-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


  reply	other threads:[~2001-11-12  9:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-12  2:39 Akitoshi MORISHIMA
2001-11-12  9:10 ` Bart Schaefer [this message]
2001-11-14  9:03 Wischnowsky, Sven
2001-11-15  8:16 Wischnowsky, Sven
2001-11-21 18:35 ` Bart Schaefer
2001-11-22  8:09 Wischnowsky, Sven
2001-11-22 17:56 ` Bart Schaefer
2001-11-23  8:13 Wischnowsky, Sven

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=1011112091032.ZM18280@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=ohm@rcac.tdi.co.jp \
    --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).