Zsh Mailing List Archive
Messages sorted by:
zsh/lldb (was: Re: [BUG] Zsh crashes when using autocomplete because of memory unsafety (double free))
- X-seq: zsh-workers 46125
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- Subject: zsh/lldb (was: Re: [BUG] Zsh crashes when using autocomplete because of memory unsafety (double free))
- Date: Fri, 26 Jun 2020 17:17:35 +0000
- Cc: Petr Šťastný <petr@xxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- In-reply-to: <CAN=4vMq-H5YtQUUB21iSu0_V84eW-JbhRJqBGSAvFcWeNa+Remail@example.com>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:email@example.com>
- List-unsubscribe: <mailto:firstname.lastname@example.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <email@example.com> <firstname.lastname@example.org> <CAN=4vMq-H5YtQUUB21iSu0_V84eW-JbhRJqBGSAvFcWeNa+Remail@example.com>
- Sender: zsh-workers@xxxxxxx
Roman Perepelitsa wrote on Fri, 26 Jun 2020 18:32 +0200:
> On Fri, Jun 26, 2020 at 6:24 PM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> > % alias a='""'<Left><Left><Left><TAB>
> > 16: ./Src/Zle/compcore.c:1678: expecting 'x' at offset -1 of "x"""
> Does lldb start automatically when zsh crashes on you machine?
No, it doesn't. I ran «lldb /srv/zsh/bin/zsh» and typed «r» to launch
zsh, and trimmed that part of the output before posting. I also trimmed
the value of $abs_srcdir and a few other things.
And in any case, the message above is a DPUTS(); it has nothing to do
with whether zsh was run under a debugger or not.
Although, come to think of it, I'm not sure where that "16:" at the
start of the line is from.
> How did you configure it this way?
P.S. Double digression: How do I invoke lldb in a way that'll cause it
to run the target automatically? I'm looking for something along the
lines of «lldb --foo r -- /path/to/zsh», where «r» is the lldb command
for starting the target. I've tried -o and -s and they do start zsh,
but the tty settings are wrong (^D doesn't work, for example).
Messages sorted by: