Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Crash on tab completion
- X-seq: zsh-workers 39184
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Crash on tab completion
- Date: Mon, 5 Sep 2016 10:18:57 -0700
- Cc: Patrick Hilhorst <patrickhilhorst97@xxxxxxxxx>
- 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:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Ikpt0fZ8RLcEs8G7AREjatXYP0qp5jMO4fwFkJFMvcw=; b=Cm64ma8Y4qfzLXklDkWJvJKAFbx+wbNyMmqFkiJ1G6kMCrw47WvEq7swlo9WDKwJ3R g0oMPf/vbVtZ6/GmmtVD0U0SrMktb914Fv9KvyC5GfEMxY6CAXIYpdcJW2ojlWBE8Y11 t3A+F+lLAe+ypQoP2yJRfhraHJ5LJnaf/gsrVpjAJ+2GTCTeloWp5kybU3RhfbfdcH2g vXFhYhA4eFGPj+eIBXlYSCC2NPkLdvvHdYlrj27V/af3PxysDxKa3Tuid1dVPFy/Ch2x bSp/J++ypT+RF0bq3vPTraNXkPC4Jt+TfuN6PVww9139j1i0CNEjw/enr9B3Y9iuACKs ekRQ==
- In-reply-to: <CAKivzQRFOpZpvtc3UnF9QM8JL74kiLrQDs0qQQdxBYJNG=iBwg@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: <CAKivzQRFOpZpvtc3UnF9QM8JL74kiLrQDs0qQQdxBYJNG=iBwg@mail.gmail.com>
On Mon, Sep 5, 2016 at 3:42 AM, Patrick Hilhorst
<patrickhilhorst97@xxxxxxxxx> wrote:
> Hello all,
>
> I recently made a typo in my .zshrc that caused tab complete to crash zsh:
>
> alias cpp_check="clang-tidy
> -checks=\"-*,cppcoreguidelines-*,clang-analyzer-*,misc-*,modernize-*,performance-*,readability-*"
>
> I presume this is because it tries to expand all asterisks. If any more
> documentation is required, you can reach me at this address, since I’m not
> subscribed to this mailing list.
% cpp_check zle_tricky.c:658: BUG: 0 <= wb (-86) <= zlemetacs (9) <=
we (9) is not true!
BUG: substring ends in the middle of a metachar in ztrsub()
The "BUG: substring ..." line repeats 16 times and then zsh crashes.
Happens with the latest build from the repository. Doesn't have
anything to do with the glob characters, it's all because of the
un-terminated double-quote in the expansion of the alias. Also
crashes when compsys is NOT loaded, but without ever printing the
second BUG: line. Seems to be because wb is computed with the alias
expanded, but then the alias is unwound before trying to update the
command line.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author