From owner-freebsd-gnome@FreeBSD.ORG Wed Jul 20 05:09:03 2005 Return-Path: X-Original-To: gnome@FreeBSD.org Delivered-To: freebsd-gnome@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA84D16A421 for ; Wed, 20 Jul 2005 05:09:03 +0000 (GMT) (envelope-from hintak_leung@yahoo.co.uk) Received: from smtp002.mail.ukl.yahoo.com (smtp002.mail.ukl.yahoo.com [217.12.11.33]) by mx1.FreeBSD.org (Postfix) with SMTP id 9F94A43D48 for ; Wed, 20 Jul 2005 05:09:02 +0000 (GMT) (envelope-from hintak_leung@yahoo.co.uk) Received: (qmail 16898 invoked from network); 20 Jul 2005 05:09:01 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Received:Message-ID:Date:From:User-Agent:X-Accept-Language:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=vKLBV8tH+5YhuxGo1Sqd+DvQ8GSHjeNCSex0zMICKCPZkg2zS5A7YHfKnogipaAQF7hdmwumsN8nGvvyWgbyPHvHQMaSFSifqjx/Qcxd4MVGRiwK81XzgykvzjOyLoKUygSifbp0eqbQCLBVwQtRSnsnDoMwb7kPAQ+/gVVgfYQ= ; Received: from unknown (HELO ?81.104.193.1?) (hintak?leung@81.104.193.1 with plain) by smtp002.mail.ukl.yahoo.com with SMTP; 20 Jul 2005 05:09:00 -0000 Message-ID: <42DDDE44.9010707@yahoo.co.uk> Date: Wed, 20 Jul 2005 06:16:52 +0100 From: Hin-Tak Leung User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joe Marcus Clarke References: <1121631880.80601.11.camel@shumai.marcuscom.com> <42DD6D25.3050309@yahoo.co.uk> <42DD6FAC.5040200@FreeBSD.org> In-Reply-To: <42DD6FAC.5040200@FreeBSD.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD GNOME Users , freetype-devel@nongnu.org Subject: Re: [ft-devel] Re: xorg crashes with freetype2-2.1.10 X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jul 2005 05:09:03 -0000 The ChangeLog entry does mention the specific change explicitly: 2005-02-28 David Turner ... * src/sfnt/sfdriver.c (sfnt_interface) [TT_CONFIG_OPTION_EMBEDDED_BITMAPS]: Don't use `tt_find_sbit_image' and `tt_load_sbit_metrics'. ... So the change is intentional. I just upgraded to stock freetype 2.1.10 (was using cvs-2004-dec-31), went around a few web pages with mozilla-xft, and I don't have crashes. I am using xorg 6.8.2 on linux. How do you trigger the crash? Joe Marcus Clarke wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hin-Tak Leung wrote: > | Found the CVS entry: > | > | > http://savannah.nongnu.org/cgi-bin/viewcvs/freetype/freetype2/src/sfnt/sfdriver.c.diff?r1=1.71&r2=1.72 > > > | > | > | > | * include/freetype/internal/tttypes.h, src/sfnt/ttsbit.c, > | src/sfnt/ttsbit0.c, > | src/truetype/ttobjs.c, src/cff/cffobjs.c, src/sfnt/sfobjs.c: > | implementing new > | heap-optimized embedded bitmap loader. This one also fixes bug #12107 > | > | checked in by user 'freetype' (David Turner?). they were changed to NULL, > | then to zero - there must be a reason? > > Yes, there must be a reason, but that commit message doesn't list > sfdriver.c explicitly. That's why I was wondering what the exact reason > was for the change, and what new steps should be done to get similar > results from FT. > > Joe > > | > | Jeremy Messenger wrote: > | > |> On Sun, 17 Jul 2005 15:24:40 -0500, Joe Marcus Clarke > |> wrote: > |> > |>> Looks like the freetype module in xorg (and XFree86) makes reference to > |>> SFNT_Service->find_sbit_image which is now 0 in FT 2.1.10 (it used > to be > |>> initialized to tt_find_sbit_image). This causes X to die rather > |>> abruptly when trying to dereference this symbol: > |>> > |>> http://people.freebsd.org/~mezz/gdb/gdb-freetype2.txt > |>> > |>> I assume this was done by design in FT (though I couldn't find a commit > |>> message that said spoke about this particular change). If so, what > |>> should X be doing to correctly obtain the glyph sbit? Thanks! > |> > |> > |> > |> I have solved the crash. I have been using it for the thirty minutes > |> and no crash so far. If I do unpatch and it will crash within five > |> minutes. Here's patch to put in freetype2/files. Don't know if patch > |> is right, but at least it's fixed for me. > |> > |> http://people.freebsd.org/~mezz/patch-src::sfnt::sfdriver.c > |> > |> I found it by compared freetype2 2.1.9 and 2.1.10, you can check if > |> you want to see for youself. I removed compare of Makefile, configure > |> and other useless stuff. > |> > |> http://people.freebsd.org/~mezz/freetype2-compare.diff.bz2 > |> > |> It looks like 2.1.10 removed or disabled *find_sbit_image? Search for > |> 'find_sbit_image' in freetype2-compare.diff.bz2. > |> > |> Cheers, > |> Mezz > |> > |>> Joe > |> > |> > |> > |> > | > | > | ___________________________________________________________ How much > | free photo storage do you get? Store your holiday snaps for FREE with > | Yahoo! Photos http://uk.photos.yahoo.com > | > > > - -- > Joe Marcus Clarke > FreeBSD GNOME Team :: gnome@FreeBSD.org > FreeNode / #freebsd-gnome > http://www.FreeBSD.org/gnome > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.1 (Darwin) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFC3W+rb2iPiv4Uz4cRArfoAJ4tP/XRPRwWykuQL+DZmGldgwCBOgCfZrNl > ts1bAb9rB9D1InM6I8QuhcA= > =T1sX > -----END PGP SIGNATURE----- > ___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com