[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs-27 41232e6: Avoid crashes due to bidi cache being reset during
From: |
Eli Zaretskii |
Subject: |
Re: emacs-27 41232e6: Avoid crashes due to bidi cache being reset during redisplay |
Date: |
Sun, 31 May 2020 18:46:25 +0300 |
> From: Pip Cet <pipcet@gmail.com>
> Date: Sun, 31 May 2020 15:36:22 +0000
> Cc: emacs-devel@gnu.org, emacs-diffs@gnu.org
>
> > xmalloc calls memory_full if that happens.
>
> Sorry, should have been more explicit: if we run out of memory,
> memory_full will signal an error, after freeing some "spare" memory.
> The error handler will call echo_display_area_1. If the bidi iterator
> is in use, the cache size is much larger than the spare memory we
> freed, so the allocation will also fail, and I'm not sure we ever
> recover from that.
Yes, our code is full of such places. It would be good to improve the
recovery in these cases.