emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: xnrealloc: How and when to properly use it.


From: Paul Eggert
Subject: Re: xnrealloc: How and when to properly use it.
Date: Sat, 27 Apr 2019 18:51:51 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

Keith David Bershatsky wrote:
On a W32 build of Emacs (built with MinGW_32 and ezwinports downloaded a few 
years ago), my usage of xnrealloc (more often than not) causes Emacs to crash 
when_not_  running under gdb.

Try the GDB command 'set disable-randomization off'. Of course this makes debugging more ... interesting.

+              /* Decrease the size of the array to a bare minimum. */
+              xnrealloc (w->mc_elts.caches, 1, sizeof *w->mc_elts.caches);

That can't be right; at the very least you need to assign the returned value of xnrealloc back to w->mc_elts.caches.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]