From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johannes Weiner Newsgroups: gmane.emacs.devel Subject: Re: [BUG] Finternal_merge_in_global_face segfault Date: Sat, 05 Jul 2008 17:23:37 +0000 Message-ID: <87abgws0rq.fsf@saeurebad.de> References: <877ic0cv4o.fsf@saeurebad.de> <87k5g0z7x2.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1215278730 1228 80.91.229.12 (5 Jul 2008 17:25:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Jul 2008 17:25:30 +0000 (UTC) Cc: Emacs Development Mailing List To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 05 19:26:16 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 1KFBWZ-0000VO-At for ged-emacs-devel@m.gmane.org; Sat, 05 Jul 2008 19:26:15 +0200 Original-Received: from localhost ([127.0.0.1]:57569 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFBVi-0002JJ-9F for ged-emacs-devel@m.gmane.org; Sat, 05 Jul 2008 13:25:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KFBVe-0002J2-1R for emacs-devel@gnu.org; Sat, 05 Jul 2008 13:25:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KFBVd-0002I9-Bz for emacs-devel@gnu.org; Sat, 05 Jul 2008 13:25:17 -0400 Original-Received: from [199.232.76.173] (port=47662 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFBVd-0002Hy-85 for emacs-devel@gnu.org; Sat, 05 Jul 2008 13:25:17 -0400 Original-Received: from saeurebad.de ([85.214.36.134]:50490) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KFBVc-0001iV-Ut for emacs-devel@gnu.org; Sat, 05 Jul 2008 13:25:17 -0400 Original-Received: by saeurebad.de (Postfix, from userid 107) id B8C504A000A; Sat, 5 Jul 2008 19:25:15 +0200 (CEST) Original-Received: from localhost (83-221-68-40.dynamic.primacom.net [83.221.68.40]) by saeurebad.de (Postfix) with ESMTP id AB23F4A0008; Sat, 5 Jul 2008 19:25:14 +0200 (CEST) In-Reply-To: <87k5g0z7x2.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 05 Jul 2008 11:07:21 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.1.3 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:100373 Archived-At: Hi, Chong Yidong writes: > Johannes Weiner writes: > >> this change >> >> 2008-06-30 Chong Yidong >> >> * xfaces.c (Finternal_merge_in_global_face): If default face was >> modified, realize it again. Update the font face attribute. >> >> makes Emacs segfault in batch mode. >> >> The culprit is the bcopy(oldface->lface, ...) according to the >> stacktrace. I couldn't get gdb to let me inspect oldface (any hints?). > > It's probably optimized out. You should recompile Emacs without > optimization (CFLAGS='-g' ./configure; make) and try again. I did that (-O0 -g) and could inspect other stuff in this context, not this. Weird. > Please provide a recipe to reproduce this segfault. emacs -batch -f format Hannes