From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.mail.mew.general Subject: Re: GC crashes Date: 03 Dec 2003 12:25:48 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20031124.110938.193696628.wl@gnu.org> <200311260203.LAA26808@etlken.m17n.org> <20031128.103107.41640217.wl@gnu.org> <200312011240.VAA05762@etlken.m17n.org> <200312022337.IAA02026@etlken.m17n.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1070472533 25496 80.91.224.253 (3 Dec 2003 17:28:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Dec 2003 17:28:53 +0000 (UTC) Cc: wl@gnu.org, emacs-devel@gnu.org, mew-int@mew.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Dec 03 18:28:50 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ARany-0002RL-00 for ; Wed, 03 Dec 2003 18:28:50 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ARany-0002Sz-00 for ; Wed, 03 Dec 2003 18:28:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARbkF-0005Cb-Ji for emacs-devel@quimby.gnus.org; Wed, 03 Dec 2003 13:29:03 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ARbjl-0005Bi-9n for emacs-devel@gnu.org; Wed, 03 Dec 2003 13:28:33 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ARbjD-00052I-J9 for emacs-devel@gnu.org; Wed, 03 Dec 2003 13:28:30 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ARbiZ-0004uz-5i; Wed, 03 Dec 2003 13:27:19 -0500 Original-Received: from vor.iro.umontreal.ca (vor.iro.umontreal.ca [132.204.24.42]) by mercure.iro.umontreal.ca (8.12.9/8.12.9) with ESMTP id hB3HPnbj031332; Wed, 3 Dec 2003 12:25:49 -0500 Original-Received: by vor.iro.umontreal.ca (Postfix, from userid 20848) id 073233CFD9; Wed, 3 Dec 2003 12:25:48 -0500 (EST) Original-To: Kenichi Handa In-Reply-To: <200312022337.IAA02026@etlken.m17n.org> Original-Lines: 33 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-DIRO-MailScanner: Found to be clean X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 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:18328 gmane.mail.mew.general:601 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:18328 > If the composition hash table is weak, GC can remove > key-value pair from the table when a text that contains key > as `composition' property is deleted (for instance by > killing a buffer). I guess strictly speaking, the :weak arg should not be t but `key' so that only the key part is weak, but that does not explain the crash. > The crash can be preproduced by this Emacs > GNU Emacs 21.3.50.77 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) > by doing this (of course by undoing my fix): > C-u C-h t thai RET > C-v (repeatedly until you reach the bottom) > C-x k RET > M-x garbage-collect RET > C-u C-h t thai RET > C-v (repeatedly) > You'll encounter segfault before you reach the bottom. I don't get the crash (with an Emacs checked out two weeks ago from CVS). Maybe it's because I don't have the relevant fonts ? > This segfault always happens while marking a buffer that > contains `composition' property (in the above case, it's > TUTORIAL.th). So, I doubted the composition hash table and > made it strong, then the segfault disappeared. I suspect your fix just hides the underlying problem. Stefan