From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Redisplay crash Date: Fri, 9 Apr 2004 10:57:37 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200404090157.KAA00631@etlken.m17n.org> References: <87eks0654s.fsf@sno.mundell.ukfsn.org> <87n06bp4ng.fsf@sno.mundell.ukfsn.org> <8765cwkejr.fsf@mail.jurta.org> <200404071157.UAA25094@etlken.m17n.org> <200404071312.WAA25268@etlken.m17n.org> <87zn9nqras.fsf@emacswiki.org> <20040408020537.GA22508@fencepost> <200404080234.LAA26966@etlken.m17n.org> <87r7uyfoz9.fsf-monnier+emacs@alfajor.local> NNTP-Posting-Host: deer.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 1081476167 10133 80.91.224.253 (9 Apr 2004 02:02:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Apr 2004 02:02:47 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, storm@cua.dk, miles@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Apr 09 04:02:35 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BBlLn-0006oL-00 for ; Fri, 09 Apr 2004 04:02:35 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BBlLn-0004tp-00 for ; Fri, 09 Apr 2004 04:02:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BBlJl-0004s3-O0 for emacs-devel@quimby.gnus.org; Thu, 08 Apr 2004 22:00:29 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BBlJd-0004rM-Nv for emacs-devel@gnu.org; Thu, 08 Apr 2004 22:00:21 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BBlJ7-0004cf-Qj for emacs-devel@gnu.org; Thu, 08 Apr 2004 22:00:20 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1BBlI7-0002Fd-1k; Thu, 08 Apr 2004 21:58:47 -0400 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by mx20.gnu.org with esmtp (Exim 4.30) id 1BBlHG-0008Vy-Cn; Thu, 08 Apr 2004 21:57:54 -0400 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.11.6p2/8.11.6) with ESMTP id i391vc806693; Fri, 9 Apr 2004 10:57:38 +0900 (JST) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.6p2/8.11.6) with ESMTP id i391vc907977; Fri, 9 Apr 2004 10:57:38 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id KAA00631; Fri, 9 Apr 2004 10:57:37 +0900 (JST) Original-To: monnier@iro.umontreal.ca In-reply-to: <87r7uyfoz9.fsf-monnier+emacs@alfajor.local> (message from Stefan Monnier on 08 Apr 2004 12:30:50 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:21391 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21391 In article <87r7uyfoz9.fsf-monnier+emacs@alfajor.local>, Stefan Monnier writes: > There was a discussion about it with Gerd which led to > 2002-08-27 Gerd Moellmann > * xdisp.c (redisplay_updating_p): Variable removed. > (inhibit_free_realized_faces, Qinhibit_free_realized_faces): > New variables. > (init_iterator): Don't free realized faces if > inhibit_free_realized_faces is set. > (redisplay_internal): Bind Qinhibit_free_realized_faces to nil. > (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces, > initialize Qinhibit_free_realized_faces. > * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces > when iterator is adding glyphs to a glyph matrix. > I can't find trace of this discussion, tho. > I've always had the impression that the above patch didn't really fix the > problem, tho it made it less frequent, so maybe it only hid the problem > more than fix it, I don't know. In any case I figure maybe you'd like > to know. Thank you for the info. I found at least one way to crash Emacs constantly. At first, evaluate this in *scratch* buffer. (put-text-property 2 3 'display '(when (clear-face-cache t))) Then, type C-h h C-x C-k (i.e. view HELLO file and kill that buffer). Then, Emacs crashes in get_next_display_element at: /* Adjust face id for a multibyte character. There are no multibyte character in unibyte text. */ if (it->multibyte_p && success_p && FRAME_WINDOW_P (it->f)) { struct face *face = FACE_FROM_ID (it->f, it->face_id); here-> it->face_id = FACE_FOR_CHAR (it->f, face, it->c); } because FACE_FROM_ID returns NULL. But, it seems that this is a different bug. --- Ken'ichi HANDA handa@m17n.org