Subject: mkfontscale segfaults
To: None <tech-x11@NetBSD.org>
From: Krister Walfridsson <cato@df.lth.se>
List: tech-x11
Date: 03/13/2004 00:13:47
mkfontscale segfaults for me when I try to build a release with MKX11=yes
on i386 1.6.

gdb claims it fails in
  Program received signal SIGSEGV, Segmentation fault.
  0x0806a283 in inflate_codes (s=0x80af000, z=0x80ac00c, r=0)
      at /usr/local/tmp/nbsd040312/src/../xsrc/xfree/xc/extras/freetype2/src/gzip/infcodes.c:199
  199           while (f < s->window)             /* modulo window size-"while" instead */

which is a bit strange, since s seems to be readable, but gcc may
have played tricks with the debugging info...


Compiling ftgzip.c without optimization makes mkfontscale succeed.


Should I dig any deeper, or should we just hope it is a bug in
the gcc shipped in 1.6? [I have not tested to build on 1.6.2 yet.
Will do that later.]

   /Krister