Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Re: Bug: Callback to widget set with `zle -Fw <widget>` shouldn't change $LASTWIDGET
- X-seq: zsh-workers 51947
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: dana <dana@xxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>, Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- Subject: Re: [PATCH] Re: Bug: Callback to widget set with `zle -Fw <widget>` shouldn't change $LASTWIDGET
- Date: Mon, 17 Jul 2023 08:17:12 -0700
- Archived-at: <https://zsh.org/workers/51947>
- In-reply-to: <974250f6-d143-4543-872e-05c72f67a98c@app.fastmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAHLkEDuuosi7udHsQ9uaBRcv5poEUU_i1iSRGgEXFbtBkzHQOQ@mail.gmail.com> <CAH+w=7Y4jT5kNNSkCXZMcFg7kzTew3LDfLgq8zPkr30D5=QSsA@mail.gmail.com> <422608219.9324398.1673947338127@mail.virginmedia.com> <CAH+w=7a4x+BDM=cxAtu5AsryF0Do9=nO5P+11uR2U2M3VcYeYQ@mail.gmail.com> <974250f6-d143-4543-872e-05c72f67a98c@app.fastmail.com>
On Sun, Jul 16, 2023 at 3:29 AM dana <dana@xxxxxxx> wrote:
>
> On Tue 17 Jan 2023, at 12:00, Bart Schaefer wrote:
> > My concern is that the Thingy pointer becomes invalid
>
> I think this was justified
>
> I've just tried running a new HEAD build for the first time in several months
> and found that back-spacing causes the shell to crash.
The patch from the start of this thread has never been committed, so
is not directly related. That is, if the Thingy is invalid, it's not
$LASTWIDGET that's making the bad reference here, so fixing
save/restore there probably will not resolve the problem.
In your backtrace I see
_zsh_autosuggest_widget_modify
and
_zsh_autosuggest_invoke_original_widget
followed by
_zsh_highlight_widget_orig-s0.0000030000-r21548-backward-delete-char
and finally
_zsh_highlight_call_widget
causes the actual crash below unrefthingy(), so I suspect this is a
reference-counting problem.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author