logo       
Google Custom Search
    AddThis Social Bookmark Button

RE: ANNOUNCE: Tk-804.027-p3.patch.gz: msg#00038

Subject: RE: ANNOUNCE: Tk-804.027-p3.patch.gz
Congratulations Slaven, the new p4 patch fixes all my segfaults
on Solaris 8 / gcc-4.0.3 / perl-5.8.8 / fontconfig-2.4.1!

Just two errors in the t/font.t test:

ok 20 - Expected -descent value
not ok 21 - Expected -ascent value
#   Failed test 'Expected -ascent value'
#   at t/font.t line 139.
#          got: '18'
#     expected: '16'
ok 22 - Expected -size value
not ok 23 - Expected -linespace value
#   Failed test 'Expected -linespace value'
#   at t/font.t line 139.
#          got: '23'
#     expected: '21'
ok 24 - Core dump check (especially for XFT)

Let me know if you need additional info on this...

Cheers,

Marek


-----Original Message-----
From: eserte@xxxxxxxxxxxxxxxxx [mailto:eserte@xxxxxxxxxxxxxxxxx] On
Behalf Of Slaven Rezic
Sent: Sunday, November 26, 2006 10:45 PM
To: Rouchal Marek (IFAG COM BTS DF R2G); ptk@xxxxxxxxxxxxxxxxxx
Subject: Re: ANNOUNCE: Tk-804.027-p3.patch.gz

Slaven Rezic <slaven@xxxxxxxx> writes:

> <marek.rouchal@xxxxxxxxxxxx> writes:
> 
> > Hi Slaven,
> > 
> > thank you very much for the useful hint! Yes this was the major
> > problem: my libfontconfig.so did not know a single font!
> > I recompiled fontconfig-2.4.1 with some sensible paths to fonts,
> > and now your one-liner works, as well as several of the tests.
> > But many others still fail with segfault:
> > 
> > Failed Test   Stat Wstat Total Fail  Failed  List of Failed
> > -----------------------------------------------------------
> > t/JP.t           0   139   294    0   0.00%  ??
> > t/KR.t           0   139   271    0   0.00%  ??
> > t/create.t       0   139   573 1046 182.55%  51-573
> > t/entry.t        0   139   336  524 155.95%  75-336
> > t/fbox.t         0   139     6    6 100.00%  4-6
> > t/fileevent.t    0   139     1    0   0.00%  ??
> > t/font.t         0   139    14    2  14.29%  14
> > t/geomgr.t       0   139    19    6  31.58%  17-19
> > t/list.t         0   139     6    0   0.00%  ??
> > t/listbox.t      0   139   537  996 185.47%  40-537
> > t/msgbox.t       0   139    13   20 153.85%  4-13
> > t/text.t         0   139   119    0   0.00%  ??
> > t/unicode.t      0   139     7    4  57.14%  6-7
> > t/wm-tcl.t       0   139   315  348 110.48%  142-315
> > 
> > I went back to fontconfig-2.3.2 and it worked again.
> > Same on Linux. On both Solaris and Linux, I can get a
> > working Tk with XFT with:
> >     freetype-2.2.1
> >     fontconfig-2.3.2
> >     renderproto-0.9.2
> >     libXrender-0.9.2
> >     libXft-2.1.11
> > But with the latest fontconfig-2.4.1 I get segfaults in
> > the above tests - and it seems that the segfault always
> > happens in some destruction function (FcPatternDestroy,
> > FcCharsetDestroy). Sorry, no idea whether this is Tks or
> > fontconfig's fault.
> 
> I can reproduce the same (or a similar) error list on a debian linux
> machine with fontconfig 2.4.1, too. It is easily reproducible by
> creating a widget, destroying it (this is the important bit), and
> creating another widget. The problem vanishes if the FiniFont call in
> TkpDeleteFont in tkUnixXft.c is skipped. I also don't know yet if it's
> a Perl/Tk or fontconfig problem, but it smells like a problem of the
> latter.
> 

It seems that I was wrong. With a newer version of tkUnixRFont.c (the
tkUnixXft.c variant in Tcl/Tk) the problem goes away.

A new patch will follow.

Regards,
        Slaven

-- 
Slaven Rezic - slaven <at> rezic <dot> de
    babybike - routeplanner for cyclists in Berlin
               handheld (e.g. Compaq iPAQ with Linux) version of bbbike
    http://bbbike.sourceforge.net
--++**==--++**==--++**==--++**==--++**==--++**==--++**==
ptk mailing list
ptk@xxxxxxxxxxxxxxxxxx
https://mailman.stanford.edu/mailman/listinfo/ptk





Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>