Subject: Re: bug#52141: 29.0.50; Crash during redisplay

From: Daniel Martín <[email-masked]>
Date: Sat, 27 Nov 2021 16:59:16 +0100

Eli Zaretskii <[email-masked]> writes:

>> 
>> Its type is Lisp_Cons.  However, its address is invalid.  Running
>> `xcons' in gdb complains:
>> 
>> (gdb) xcons
>> $9 = (struct Lisp_Cons *) 0x1e753d0
>> Cannot access memory at address 0x1e753d0
>
> Hmm... and the address is very different from the one which caused the
> segfault.  Strange.
>
> Any ideas, anyone?

Is it possible to run that Emacs instance with some kind of memory
sanitizer enabled (ASAN, Valgrind...)?  That may help catch the
potential memory corruption at the point it happens, not at the point
the garbage collector wants to free it.