[Pkg-tcltk-devel] Bug#465462: Bug#465462: Bug#465462: Bug#465462: Bug#465462:/usr/bin/wish8.5: segfault for wish
Techentin, Robert
techentin.robert at mayo.edu
Thu Feb 14 18:48:01 UTC 2008
> For me it looks very strange that tkFontPtr is NULL in #2 and
> fontPtr is not NULL in #1. The relevant code is:
Gcc isn't my usual tool chain, but I can make a guess.
#2: It looks like TkpGetFontFromAttributes calls InitFont with
fontPtr=0.
#1: Inside InitFont, the first thing it does is check fontPtr==0, then
call ckAlloc(). So now fontPtr is non-zero, which you see as the stack
unwinds.
It look like the real problem is in InitFont, where it calls GetFont()
which is returning a zero for ftFont. When GetTkFontAttributes tries to
dereference it, you get the segfault. Just like the bug report (Joe
referenced) says. I don't know enough about the code to create an
elegant recovery mechanism.
Bob
--
Bob Techentin techentin.robert at mayo.edu
Mayo Foundation (507) 538-5495
200 First St. SW FAX (507) 284-9171
Rochester MN, 55901 USA http://www.mayo.edu/sppdg/
More information about the Pkg-tcltk-devel
mailing list