From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Romain Francoise Newsgroups: gmane.emacs.devel Subject: Re: Redisplay crash Date: Tue, 04 Jan 2005 21:46:33 +0100 Organization: orebokech dot com Message-ID: <87u0pwsz12.fsf@orebokech.com> References: <87llbal35x.fsf@orebokech.com> <200501040105.KAA09219@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 1104871766 1499 80.91.229.6 (4 Jan 2005 20:49:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Jan 2005 20:49:26 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 04 21:49:16 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ClvcC-0007SE-00 for ; Tue, 04 Jan 2005 21:49:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1ClvnP-0004Sn-Uj for ged-emacs-devel@m.gmane.org; Tue, 04 Jan 2005 16:00:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1ClvnE-0004Ra-90 for emacs-devel@gnu.org; Tue, 04 Jan 2005 16:00:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1ClvnD-0004Qb-38 for emacs-devel@gnu.org; Tue, 04 Jan 2005 16:00:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1ClvnC-0004QA-Mq for emacs-devel@gnu.org; Tue, 04 Jan 2005 16:00:38 -0500 Original-Received: from [82.67.41.165] (helo=yeast.orebokech.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ClvZW-0000GZ-Ga for emacs-devel@gnu.org; Tue, 04 Jan 2005 15:46:30 -0500 Original-Received: from pacem.orebokech.com (pacem.orebokech.com [192.168.1.3]) by yeast.orebokech.com (Postfix) with ESMTP id 23B2412D08; Tue, 4 Jan 2005 21:46:29 +0100 (CET) Original-Received: by pacem.orebokech.com (Postfix, from userid 1000) id C9B19B301B; Tue, 4 Jan 2005 21:46:33 +0100 (CET) Original-To: Kenichi Handa Mail-Copies-To: nobody X-Face: "1+OIb}NK>vxR1ZMk[Jx!/]O|A-v/P&|%hFquLxp20W.'g4KNUD/IdAUSmd'5`f)Q9%"4]%{P`TF2dC4v1~G5D}S( In-Reply-To: <200501040105.KAA09219@etlken.m17n.org> (Kenichi Handa's message of "Tue, 4 Jan 2005 10:05:51 +0900 (JST)") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) 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: main.gmane.org gmane.emacs.devel:31842 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:31842 Kenichi Handa writes: > I can't reproduce this bug, but I seems that my change to > encode_terminal_code on 2004-11-30 is the cause. Indeed if I revert term.c to revision 1.156, the problem goes away. > At least the argument `src_len' of encode_terminal_code has strange > value in your backtrace. Could you try to find out why it has that > value by debugger? I tried but that value must come from stack corruption or some other strangeness since in my tests, it always has reasonable values.. and when the segfault occurs, it has the value 3 (in the one case I used to reproduce the bug: entering gnu.emacs.gnus). I will investigate further, any clues are welcome. Also, I may be wrong, but it looks like the memory allocated in encode_terminal_code is never freed. Or is it GC'ed? -- Romain Francoise | There's no stronger wind than it's a miracle -- http://orebokech.com/ | the one that blows down a | lonesome railroad line.