From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Geoffrey Alan Washburn Newsgroups: gmane.emacs.devel Subject: Re: unicode-2 branch segfaulting on MacOS X? Date: Sun, 22 Oct 2006 21:17:40 -0400 Message-ID: <453C1834.6040909@cis.upenn.edu> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1161566304 2244 80.91.229.2 (23 Oct 2006 01:18:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Oct 2006 01:18:24 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 23 03:18:24 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 1GboSM-0000eJ-9N for ged-emacs-devel@m.gmane.org; Mon, 23 Oct 2006 03:18:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GboSL-0008EU-Jl for ged-emacs-devel@m.gmane.org; Sun, 22 Oct 2006 21:18:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GboS1-0008BC-9C for emacs-devel@gnu.org; Sun, 22 Oct 2006 21:18:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GboRx-00084W-Ov for emacs-devel@gnu.org; Sun, 22 Oct 2006 21:18:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GboRx-000841-Iv for emacs-devel@gnu.org; Sun, 22 Oct 2006 21:17:57 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GboRx-0001TC-BD for emacs-devel@gnu.org; Sun, 22 Oct 2006 21:17:57 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GboRr-0000Z1-8R for emacs-devel@gnu.org; Mon, 23 Oct 2006 03:17:51 +0200 Original-Received: from c-68-39-209-108.hsd1.pa.comcast.net ([68.39.209.108]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Oct 2006 03:17:51 +0200 Original-Received: from geoffw by c-68-39-209-108.hsd1.pa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Oct 2006 03:17:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 31 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c-68-39-209-108.hsd1.pa.comcast.net User-Agent: Thunderbird 1.5.0.7 (X11/20060909) In-Reply-To: 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:61013 Archived-At: Kenichi Handa wrote: > In article , Geoffrey Alan Washburn writes: > >> I've been trying to get the latest revision of the emacs-unicode-2 >> branch to build and run under MacOS X. Building seems to work fine, >> I've been using the following configuration > >> ./configure --prefix=/local --enable-font-backend --with-gtk --with-xft >> --with-tiff --with-ungif --with-xpm --enable-asserts CPPFLAGS=-idirafter >> /usr/X11R6/include > >> However, when I attempt to invoke emacs with > >> emacs --enable-font-backend --font "Bitstream Vera Sans Mono-16" > >> it seems to be segfaulting somewhere in font_unparse_fcname. Any ideas? > > I can't reproduce it on GNU/Linux. Indeed, the same version works fine on my ThinkPad running Debian GNU/Linux. > 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.