From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: src/ftfont.c problem on SUSE/old fontconfig versions. Date: Sat, 19 Jul 2008 09:56:59 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1216429052 22278 80.91.229.12 (19 Jul 2008 00:57:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Jul 2008 00:57:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lynbech Christian Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 19 02:58:21 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KK0mC-0000tb-IP for ged-emacs-devel@m.gmane.org; Sat, 19 Jul 2008 02:58:20 +0200 Original-Received: from localhost ([127.0.0.1]:56018 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KK0lJ-0000C1-Nc for ged-emacs-devel@m.gmane.org; Fri, 18 Jul 2008 20:57:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KK0lC-00008H-G1 for emacs-devel@gnu.org; Fri, 18 Jul 2008 20:57:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KK0lB-00006g-I6 for emacs-devel@gnu.org; Fri, 18 Jul 2008 20:57:17 -0400 Original-Received: from [199.232.76.173] (port=41012 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KK0lB-00005p-57 for emacs-devel@gnu.org; Fri, 18 Jul 2008 20:57:17 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:41756) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KK0lA-0007Dt-Dv for emacs-devel@gnu.org; Fri, 18 Jul 2008 20:57:16 -0400 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id m6J0v4A8002378; Sat, 19 Jul 2008 09:57:04 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id m6J0v4Fu028473; Sat, 19 Jul 2008 09:57:04 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id m6J0uxSi020600; Sat, 19 Jul 2008 09:56:59 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1KK0kt-0006WZ-87; Sat, 19 Jul 2008 09:56:59 +0900 In-reply-to: (message from Lynbech Christian on Fri, 18 Jul 2008 12:43:41 +0200) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by monty-python.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:100967 Archived-At: In article , Lynbech Christian writes: > I have stumbled across a possible problem with ftfont.c > I have compiled and installed from the trunk of the git mirror and > trying to run the result on my SUSE SLED 10, patchlevel 1 ended in a > segmentation fault. > Digging down a bit, I found that the segmentation fault happens in a > call to the fontconfig function 'FcPatternGetCharSet' in the line > if (FcPatternGetCharSet (fontset->fonts[0], FC_CHARSET, 0, &charset) > == FcResultMatch) > in the function 'ftfont_lookup_cache'. Compiling the same emacs snapshot > on a rather recent Debian unstable installation yielded no such problem. > The version of fontconfig on my SUSE system is apparently 2.3.94 and > when I installed fontconfig 2.6.0 (like on the Debian system) the > segmentation fault went away. Then it's apparently the bug of 2.3.94. I don't see that problem with fontconfig 2.4.2. The question is whether or not we can have a workaround of the problem. If not, we must add a check for the version of fontconfig in configure.in. Could you show me the values of `fontset' and `fontset->nfont' at the time of crash? > The last time I updated my emacs 23 was June 11. and this version does > not have the segmentation fault problem, but quite a lot has happened to > ftfont.c since then so I have no guess as to what may have been > triggering the problem. FYI, that part of code is added on 8th July. --- Kenichi Handa handa@ni.aist.go.jp