Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Segfault on completion with interactive mode
- X-seq: zsh-workers 37942
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Óscar García Amor <ogarcia@xxxxxxxxxxxxxxx>
- Subject: Re: Segfault on completion with interactive mode
- Date: Wed, 10 Feb 2016 12:03:55 -0800
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/CcYlIYGf4xmOFd3NxOtohsaVBDlNQAEqMwi0TgMDew=; b=Q1Q6MOSHiLX7nKWyRH1c7k7eWCEuhKCP5UBfO+TStQwbDvAZ1sMDynuMXAb99p/MCp iJbN2V+AmSPJx1XA83ZNzq7gqVawQNoC8HV5pyK+voCfqwOcceqlAfCUr91fNelFYy1Q M26vJ8UCdovFJWET7kvLMuFMotvNnB4WullstOz4gW3XY5aozrJodH98wFjo2yRUMmho 3CdwoBaAEdDyTB/UfzsA/OqARaa3CFriRmFdRS17hTMzPGbpSqIRRVyKRXoZhvGJI2hA pKDRMQyM9wgG2ShpmbO5JSC7bWwFQPODJRxTUCoIwPcT9oNiUzZwbWz2LhhutNO8gxVl wC6g==
- In-reply-to: <CAPdr91afVtwZnv3o9FKqfgMeYg_1Tz9R-ujTVhJUwu4ErNtFng@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAPdr91afVtwZnv3o9FKqfgMeYg_1Tz9R-ujTVhJUwu4ErNtFng@mail.gmail.com>
On Feb 10, 2016 8:40 AM, "Óscar García Amor" <ogarcia@xxxxxxxxxxxxxxx>
wrote:
>
> 4. Press tab to show options (interactive mode appears)
> 5. Write a letter that not mach with any option (to generate a completion
> warning)
> 6. Press backspace
>
> Tachan! zsh: segmentation fault (core dumped)
Hmm. So, complistmatches() is called with an empty list of completions to
cause the message to be displayed. It's then called again on backspace to
erase the message and draw a new list, but it chokes on the empty listing.
I can stop the coredump by doing nothing when the list is empty, but then
the message isn't displayed either.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author