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: unicode-2 branch segfaulting on MacOS X? Date: Mon, 23 Oct 2006 11:45:04 +0900 Message-ID: References: <453C1834.6040909@cis.upenn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1161571473 14439 80.91.229.2 (23 Oct 2006 02:44:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Oct 2006 02:44:33 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 23 04:44:31 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gbpnh-0007g6-07 for ged-emacs-devel@m.gmane.org; Mon, 23 Oct 2006 04:44:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gbpng-0001w4-Is for ged-emacs-devel@m.gmane.org; Sun, 22 Oct 2006 22:44:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GbpnT-0001te-6z for emacs-devel@gnu.org; Sun, 22 Oct 2006 22:44:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GbpnR-0001sU-ET for emacs-devel@gnu.org; Sun, 22 Oct 2006 22:44:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GbpnR-0001sR-BE for emacs-devel@gnu.org; Sun, 22 Oct 2006 22:44:13 -0400 Original-Received: from [150.29.246.133] (helo=mx1.aist.go.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GbpnR-00046u-2X for emacs-devel@gnu.org; Sun, 22 Oct 2006 22:44:13 -0400 Original-Received: from smtp3.aist.go.jp ([150.29.246.12]) by mx1.aist.go.jp with ESMTP id k9N2i8Ak018419; Mon, 23 Oct 2006 11:44:08 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id k9N2i7ki025752; Mon, 23 Oct 2006 11:44:07 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1GbpoG-0004C0-00; Mon, 23 Oct 2006 11:45:04 +0900 Original-To: Geoffrey Alan Washburn In-reply-to: <453C1834.6040909@cis.upenn.edu> (message from Geoffrey Alan Washburn on Sun, 22 Oct 2006 21:17:40 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) 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:61017 Archived-At: In article <453C1834.6040909@cis.upenn.edu>, Geoffrey Alan Washburn writes: > > So, could you please use gdb to find exactly where (and how) Emacs causes segfault > > (see etc/DEBUG if you are not familiar with gdb). > Could you be more specific about what you mean by "how" it is > segfaulting? It is pretty obvious that it is reading/writing an invalid > memory location. As I said the problem occurs in font_unparse_fcname. > In particular, line 1258 of font.c with parameters font=42759700, > pixel_size=19, name=0x2a20d20 "", and nbytes=96. That's what I wanted to know. The code around line 1258 is this: 1255 val = AREF (font, FONT_FOUNDRY_INDEX); 1256 if (! NILP (val)) 1257 /* ":foundry=NAME" */ 1258 len += 9 + SBYTES (SYMBOL_NAME (val)); So the variable `val' is suspicious. Please check the type and value of `val' as this: (gdb) p val (gdb) xtype (gdb) pp val --- Kenichi Handa handa@m17n.org