>>>> "N" == Norbert Koch <nk(a)LF.net>
writes:
N> Hi!
N> On FreeBSD 4.2-RELEASE (no problems on FreeBSD 3.3-RELEASE), after
N> applying the 21.1.13-21.1.14.patch and reconfiguring with
...
N> temacs dumps core. Anything you want me to investigate in?
I have such a system. No problems seen here with similar compiler
flags. Dynarr_resize is very stable code. I can only imagine a
compiler bug with double to integer conversions.
Are you using gcc 2.95.2, which I believe is the standard compiler here?
It's very hard to believe any change in 21.1 could have caused your
backtrace. Nevertheless, you could try isolating the change, or try
changing `multiplier' in Dynarr_resize to be an int, and
unconditionally initialize it to 2.
Or try this patch, to avoid confusing the compiler:
Index: dynarr.c
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/src/dynarr.c,v
retrieving revision 1.3
diff -u -w -r1.3 dynarr.c
--- dynarr.c 1998/03/31 20:11:34 1.3
+++ dynarr.c 2001/02/06 07:18:16
@@ -128,7 +128,7 @@
Dynarr *dy = (Dynarr *) d;
if (dy->max <= 8)
- multiplier = 2;
+ multiplier = 2.0;
else
multiplier = 1.5;