Bug 159 - Xft: SEGV in XftLockFace() when using mozilla-snapshot
Summary: Xft: SEGV in XftLockFace() when using mozilla-snapshot
Status: CLOSED NOTABUG
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xft (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: high major
Assignee: Keith Packard
QA Contact:
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-09 16:43 UTC by Branden Robinson
Modified: 2011-10-15 17:14 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Branden Robinson 2003-12-09 16:43:16 UTC
Please see <URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=187761 > for a
full description.

Here's the top of the stack trace:

Program received signal SIGSEGV, Segmentation fault.
XftLockFace (public=0x0) at xftfreetype.c:302
302     xftfreetype.c: No such file or directory.
        in xftfreetype.c
(gdb) bt
#0  XftLockFace (public=0x0) at xftfreetype.c:302
#1  0x41436a45 in nsFontMetricsXft::CacheFontMetrics() ()
   from /usr/lib/mozilla-firebird/components/libgfx_gtk.so
#2  0x414369f2 in nsFontMetricsXft::RealizeFont() ()
   from /usr/lib/mozilla-firebird/components/libgfx_gtk.so

(gdb) frame 0
#0  XftLockFace (public=0x0) at xftfreetype.c:302
302     in xftfreetype.c
(gdb) info locals
fi = (XftFontInfo *) 0x20
face = 0x833e958

Here's the code in question:

    295 FT_Face
    296 XftLockFace (XftFont *public)
    297 {
    298     XftFontInt  *font = (XftFontInt *) public;
    299     XftFontInfo *fi = &font->info;
    300     FT_Face     face;
    301
    302     face = _XftLockFile (fi->file);
    303     /*
    304      * Make sure the face is usable at the requested size
    305      */
    306     if (face && !_XftSetFace (fi->file, fi->xsize, fi->ysize, &fi->matrix))
    307     {
    308         _XftUnlockFile (fi->file);
    309         face = 0;
    310     }
    311     return face;
    312 }
Comment 1 Jungshik Shin 2003-12-28 10:50:38 UTC
FYI, Mozilla was fixed and it doesn't pass NULL pointer to XftLockFace() any more.
Comment 2 Keith Packard 2005-03-01 21:33:32 UTC
Ok, so this appears to not be a bug in Xft then.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.