Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-06-19
09:20 • Closed ticket [1799273fff]: tktest segfaults with Xft plus 6 other changes artifact: fc36e090ad user: sf-robot
2008-06-04
09:27 • Pending ticket [1799273fff]. artifact: e375b464f7 user: jenglish
2007-10-13
09:27 • Ticket [1799273fff]: 4 changes artifact: b94825a529 user: jenglish
2007-10-01
07:50 • Ticket [1799273fff]: 2 changes artifact: 2366a76c0e user: jenglish
2007-09-21
05:08 • Ticket [1799273fff]: 4 changes artifact: 8bd955adfd user: kot
2007-09-20
22:00 • New ticket [1799273fff]. artifact: 332ba5f59e user: kot

tktest segfaults with Xft

Closed / Out of Date1799273fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 18 years ago
Descriptionplain2007-09-20 22:00:32
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.
kotplain2007-09-21 05:08:50
Logged In: YES 
user_id=173641
Originator: YES

Before you ask, yes, reconfiguring with ``--disable-xft'' works around the problem.
jenglish Ticket [1799273fff]: 2 changes [History diff]2007-10-01 07:50:09
jenglishplain2007-10-13 09:27:46
Logged In: YES 
user_id=68433
Originator: NO

This condition has been reported a couple times before (see #1090382, #1440417).  Rebuilding the fontconfig font cache (by running `fc-cache -fv` as root) seems to fix the problem.
jenglishplain2008-06-04 09:27:37
Logged In: YES 
user_id=68433
Originator: NO

Believed to be fixed in CVS (2008-03-12).
sf-robotplain2008-06-19 09:20:04
Logged In: YES 
user_id=1312539
Originator: NO

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
Log in (anonymous is fine) to add a comment.