From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Roman Perepelitsa <roman.perepelitsa@gmail.com>
Cc: "Petr Šťastný" <petr@soptik.tech>,
"Zsh hackers list" <zsh-workers@zsh.org>
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 [thread overview]
Message-ID: <20200626171735.13aa91c4@tarpaulin.shahaf.local2> (raw)
In-Reply-To: <CAN=4vMq-H5YtQUUB21iSu0_V84eW-JbhRJqBGSAvFcWeNa+R=w@mail.gmail.com>
Roman Perepelitsa wrote on Fri, 26 Jun 2020 18:32 +0200:
> On Fri, Jun 26, 2020 at 6:24 PM Daniel Shahaf <d.s@daniel.shahaf.name> wrote:
> >
> > % alias a='""'<Left><Left><Left><TAB>
> > 16: ./Src/Zle/compcore.c:1678: expecting 'x' at offset -1 of "x"""
>
> (digression)
>
> 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?
Cheers,
Daniel
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).
next prev parent reply other threads:[~2020-06-26 17:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-26 15:03 [BUG] Zsh crashes when using autocomplete because of memory unsafety (double free) Petr Šťastný
2020-06-26 16:24 ` Daniel Shahaf
2020-06-26 16:32 ` Roman Perepelitsa
2020-06-26 17:17 ` Daniel Shahaf [this message]
2020-06-28 7:09 ` Bart Schaefer
2020-06-28 19:27 ` Bart Schaefer
2020-06-28 19:35 ` Bart Schaefer
2020-06-29 3:48 ` Bart Schaefer
2020-07-04 20:20 ` 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=20200626171735.13aa91c4@tarpaulin.shahaf.local2 \
--to=d.s@daniel.shahaf.name \
--cc=petr@soptik.tech \
--cc=roman.perepelitsa@gmail.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).