zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: "Óscar García Amor" <ogarcia@connectical.com>
Cc: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: Segfault on completion with interactive mode
Date: Wed, 10 Feb 2016 12:03:55 -0800	[thread overview]
Message-ID: <CAH+w=7bHKAOiYgC_7mjhovu552TSRa+rZHxO+vLVEwWJaq2pVw@mail.gmail.com> (raw)
In-Reply-To: <CAPdr91afVtwZnv3o9FKqfgMeYg_1Tz9R-ujTVhJUwu4ErNtFng@mail.gmail.com>

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

On Feb 10, 2016 8:40 AM, "Óscar García Amor" <ogarcia@connectical.com>
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.

  reply	other threads:[~2016-02-10 20:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-10 16:40 Óscar García Amor
2016-02-10 20:03 ` Bart Schaefer [this message]
2016-02-11  4:01 ` Bart Schaefer
2016-02-11 12:49   ` Peter Stephenson
2016-02-12 10:17     ` Bart Schaefer
2016-02-13 22:28 ` 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='CAH+w=7bHKAOiYgC_7mjhovu552TSRa+rZHxO+vLVEwWJaq2pVw@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=ogarcia@connectical.com \
    --cc=zsh-workers@zsh.org \
    /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).