Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 332ba5f59ec83042b7aa9063215746ebb28ec671
Ticket: 1799273fffffffffffffffffffffffffffffffff
tktest segfaults with Xft
User & Date: kot on 2007-09-20 22:00:32
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Hello!
    
    I built tk-8.5a6 on Solaris-10 (with Xft enabled). My DISPLAY is set to the Linux desktop.
    
    In addition to a large number of test failures, tktest simply crashes. It happens right after it reports the failure of test font-17.5, so it must be in font-17.6.
    
    The crash is in tkUnixRFont.c:186:
    
      184   
      185       if (XftPatternGetString(ftFont->pattern, XFT_FAMILY, 0,
      186               &family) != XftResultMatch) {
      187           family = "Unknown";
      188       }
    
    The immediate cause of the crash is ftFont being NULL. The stack is:
    
    =>[1] InitFont(tkwin = 0x2ed68, pattern = 0xe96da8, fontPtr = 0xbfc930), line 186 in "tkUnixRFont.c"
      [2] TkpGetFontFromAttributes(tkFontPtr = (nil), tkwin = 0x2ed68, faPtr = 0xffbfa3c0), line 362 in "tkUnixRFont.c"
      [3] Tk_AllocFontFromObj(interp = 0x30958, tkwin = 0x2ed68, objPtr = 0xb680c0), line 1164 in "tkFont.c"
      [4] Tk_FontObjCmd(clientData = 0x2ed68, interp = 0x30958, objc = 4, objv = 0xffbfa8d8), line 590 in "tkFont.c"
      [5] TclEvalObjvInternal(0x30958, 0x4, 0xffbfa8d8, 0xbfad3c, 0x2a, 0xe8a31), at 0xfeeb0264 
      [6] TclEvalEx(0x30958, 0xc, 0xbfad66, 0xbfad5e, 0x2, 0xd), at 0xfeeb1594 
      [7] TclSubstTokens(0x30958, 0xffbfaaf8, 0x1, 0x0, 0x2, 0x14000), at 0xfef5819c 
      [8] TclEvalEx(0x30958, 0xbfad3b, 0x3, 0xbfad3a, 0x2, 0x1), at 0xfeeb10e0 
    [....]
    
    Please, advise.
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "kot"
  10. subsystem changed to: "None"
  11. title changed to: "tktest segfaults with Xft"
  12. type changed to: "Bug"