[Bug: 21.5-b18+xft] dumps core starting in X

Stephen J. Turnbull stephen at xemacs.org
Tue Mar 8 06:40:33 EST 2005


>>>>> "giacomo" == giacomo boffi <giacomo.boffi at polimi.it> writes:

    giacomo> #5  0x08254ede in truename_via_XListFonts (dpy=0x881a538, 
    giacomo>     font_name=0x1f <Address 0x1f out of bounds>) at objects-x.c:636

Thanks for the report, I've now seen the same thing.  What is
happening here is that a "Lisp_Font_Instance" that contains garbage in
the XFontStruct member is getting passed to one of the truename
functions, and the garbage name member is getting extracted and passed
to X, which as always crashes.

I'm not sure why this happens now and not before, but I'm in the
process of going through the code and making sure the
Lisp_Font_Instance is properly initialized (ie, the XFontStruct is
NULL if an Xft font was found) and that accesses to that XFontStruct
are checked for NULL before use.  Patch in a day or so.

For me a workaround was to specify only the default face's font, but I
think that's pretty random, YMMV.

-- 
Institute of Policy and Planning Sciences     http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
               Ask not how you can "do" free software business;
              ask what your business can "do for" free software.



More information about the XEmacs-Beta mailing list