From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#773: 23.0.60; Segfault when opening a file Date: Mon, 29 Sep 2008 13:43:12 -0400 Message-ID: <87ljxa26hb.fsf@cyd.mit.edu> References: <878wtikc4a.fsf@cyd.mit.edu> <20080923215513.2e4abfe8@terra.solaris> Reply-To: Chong Yidong , 773@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1222711820 7464 80.91.229.12 (29 Sep 2008 18:10:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Sep 2008 18:10:20 +0000 (UTC) Cc: 773@emacsbugs.donarmstrong.com, Kenichi Handa To: Christian Faulhammer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 29 20:11:18 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KkNDF-0002uL-AA for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Sep 2008 20:11:14 +0200 Original-Received: from localhost ([127.0.0.1]:36461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KkNCA-0004b1-Ve for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Sep 2008 14:10:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KkNC7-0004aU-BS for bug-gnu-emacs@gnu.org; Mon, 29 Sep 2008 14:10:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KkNC5-0004Zb-L8 for bug-gnu-emacs@gnu.org; Mon, 29 Sep 2008 14:10:02 -0400 Original-Received: from [199.232.76.173] (port=52807 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KkNC5-0004ZX-IG for bug-gnu-emacs@gnu.org; Mon, 29 Sep 2008 14:10:01 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38519) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KkNC4-0005Ho-Nu for bug-gnu-emacs@gnu.org; Mon, 29 Sep 2008 14:10:01 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8TI9tHk031257; Mon, 29 Sep 2008 11:09:55 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8THo4P8025932; Mon, 29 Sep 2008 10:50:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 29 Sep 2008 17:50:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 773 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 773-submit@emacsbugs.donarmstrong.com id=B773.122271014124548 (code B ref 773); Mon, 29 Sep 2008 17:50:04 +0000 Original-Received: (at 773) by emacsbugs.donarmstrong.com; 29 Sep 2008 17:42:21 +0000 Original-Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8THgIfr024542 for <773@emacsbugs.donarmstrong.com>; Mon, 29 Sep 2008 10:42:19 -0700 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 25E2957E341; Mon, 29 Sep 2008 13:43:12 -0400 (EDT) In-Reply-To: <20080923215513.2e4abfe8@terra.solaris> (Christian Faulhammer's message of "Tue, 23 Sep 2008 21:55:13 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 29 Sep 2008 14:10:02 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20875 Archived-At: Christian Faulhammer writes: >> The backtrace you provided looks like it has symbols stripped. Could >> you recompile with CFLAGS="-g", generate a new backtrace, and post it? > > Here it is. As my failing system is offline and I seldomly sync the > Emacs sources, I can only provide one for a relatively old check-out > from 14 Sep 2008. Does the following patch stop the segfault? *** trunk/src/fontset.c.~1.145.~ 2008-08-29 11:16:15.000000000 -0400 --- trunk/src/fontset.c 2008-09-29 13:41:32.000000000 -0400 *************** *** 517,525 **** { Lisp_Object elt, vec, font_group; int i; ! FRAME_PTR f = XFRAME (FONTSET_FRAME (fontset)); int charset_matched = -1; font_group = fontset_get_font_group (fontset, fallback ? -1 : c); if (! CONSP (font_group)) return Qnil; --- 517,530 ---- { Lisp_Object elt, vec, font_group; int i; ! FRAME_PTR f; int charset_matched = -1; + if (NILP (FONTSET_FRAME (fontset))) + f = XFRAME (selected_frame); + else + f = XFRAME (FONTSET_FRAME (fontset)); + font_group = fontset_get_font_group (fontset, fallback ? -1 : c); if (! CONSP (font_group)) return Qnil;