Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Probabilistic crash on zsh 5.9 on x86_64



On 4/14/23, Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
> Instead, here's a simple local fix-up which seems to keep valgrind quiet.
> It's not the most elegant thing I can imagine.
>
> diff --git a/Src/exec.c b/Src/exec.c
> index 3b3d1235e..274800b10 100644
> --- a/Src/exec.c
> +++ b/Src/exec.c
> @@ -5779,12 +5779,25 @@ doshfunc(Shfunc shfunc, LinkList doshargs, int
...
>      queue_signals();	/* Lots of memory and global state changes coming */
> +    /*
> +     * In case this is a special function such as a trap, mark it
> +     * is in use right now, so it doesn't get freed early.  The

"mark it as in use"

-- 
Mikael Magnusson




Messages sorted by: Reverse Date, Date, Thread, Author