From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bernhard Herzog Newsgroups: gmane.emacs.bugs Subject: bug#6618: Bug was probably introduced by revision 100788 Date: Tue, 13 Jul 2010 12:39:08 +0200 Message-ID: <201007131239.08209.bernhard.herzog@intevation.de> References: <8170-Mon12Jul2010120144+0100-jpff@codemist.co.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1279036259 17400 80.91.229.12 (13 Jul 2010 15:50:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Jul 2010 15:50:59 +0000 (UTC) To: 6618@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 13 17:50:57 2010 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.69) (envelope-from ) id 1OYhl1-0006d6-3t for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Jul 2010 17:50:55 +0200 Original-Received: from localhost ([127.0.0.1]:52669 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYhl0-00056W-FK for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Jul 2010 11:50:54 -0400 Original-Received: from [140.186.70.92] (port=40344 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYgUy-0003Yq-9z for bug-gnu-emacs@gnu.org; Tue, 13 Jul 2010 10:30:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OYgUw-0003IO-96 for bug-gnu-emacs@gnu.org; Tue, 13 Jul 2010 10:30:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52917) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OYgUw-0003IJ-5j for bug-gnu-emacs@gnu.org; Tue, 13 Jul 2010 10:30:14 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OYgL5-0002jw-8g; Tue, 13 Jul 2010 10:20:03 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <8170-Mon12Jul2010120144+0100-jpff@codemist.co.uk> Resent-From: Bernhard Herzog Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Jul 2010 14:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6618 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6618-submit@debbugs.gnu.org id=B6618.127903076710522 (code B ref 6618); Tue, 13 Jul 2010 14:20:03 +0000 Original-Received: (at 6618) by debbugs.gnu.org; 13 Jul 2010 14:19:27 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OYgKU-0002je-Ku for submit@debbugs.gnu.org; Tue, 13 Jul 2010 10:19:27 -0400 Original-Received: from aktaia.intevation.org ([212.95.126.10] helo=kolab.intevation.de) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OYctF-0000ZJ-Pn for 6618@debbugs.gnu.org; Tue, 13 Jul 2010 06:39:06 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by kolab.intevation.de (Postfix) with ESMTP id CE88394D9B5 for <6618@debbugs.gnu.org>; Tue, 13 Jul 2010 12:39:09 +0200 (CEST) X-Virus-Scanned: by amavisd-new at intevation.de Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by kolab.intevation.de (Postfix) with ESMTP id 19BC594D9C3 for <6618@debbugs.gnu.org>; Tue, 13 Jul 2010 12:39:09 +0200 (CEST) Original-Received: from thoe.hq.intevation.de (thoe.hq.intevation.de [192.168.11.35]) (Authenticated sender: bernhard.herzog@intevation.de) by kolab.intevation.de (Postfix) with ESMTP id 0A18394D9B5 for <6618@debbugs.gnu.org>; Tue, 13 Jul 2010 12:39:09 +0200 (CEST) User-Agent: KMail/1.9.10 (enterprise35 20100701.1146680) Content-Disposition: inline X-Mailman-Approved-At: Tue, 13 Jul 2010 10:19:25 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 13 Jul 2010 10:20:03 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Tue, 13 Jul 2010 11:50:47 -0400 X-BeenThere: bug-gnu-emacs@gnu.org 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:38487 Archived-At: I'm running into the same problem and I've debugged it a little. AFAICT the problem was introduced with revision 100788. The revision immediately before that works fine, but I can observer the problem with revision 100788. The ChangeLog entry for this is 2010-07-12 Kenichi Handa * font.h (enum font_property_index): New member FONT_ENTITY_INDEX. * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot of FONT_ENTITY_INDEX. (Ffont_get): If KEY is :otf and the font-object doesn't have the property, get the property value dynamically. (Ffont_put): Accept font-entity and font-object too. (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and return value changed. (syms_of_font): Adjusted for the above change. It's most likely the first change in font.c: "Record ENTITY in FONT_OBJECT's slot of FONT_ENTITY_INDEX.": --- src/font.c 2010-07-11 10:31:10 +0000 +++ src/font.c 2010-07-12 02:28:50 +0000 @@ -3005,7 +3005,7 @@ return Qnil; ASET (entity, FONT_OBJLIST_INDEX, Fcons (font_object, AREF (entity, FONT_OBJLIST_INDEX))); - ASET (font_object, FONT_OBJLIST_INDEX, Qnil); + ASET (font_object, FONT_ENTITY_INDEX, entity); num_fonts++; font = XFONT_OBJECT (font_object); This introduces circular references: font_object now refers to entity and entity refers back to font_object. This probably leads to the stack overflow in equal later on. A backtrace in gdb looks like this, after about 200 recursive calls of internal_equal: #200 0x081a2012 in internal_equal (o1=, o2=149618949, depth=, props=0) at fns.c:2127 #201 0x081a2012 in internal_equal (o1=, o2=149761965, depth=, props=0) at fns.c:2127 #202 0x081a21ba in Fequal (o1=141309301, o2=149761965) at fns.c:2015 #203 0x080ddd67 in Finternal_set_lisp_face_attribute (face=138409674, attr=138389402, value=149761965, frame=150016069) at xfaces.c:3288 Bernhard