From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Herbert Euler" Newsgroups: gmane.emacs.devel Subject: Re: Emacs crashes accidentally Date: Thu, 07 Sep 2006 18:13:04 +0800 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1157624023 13158 80.91.229.2 (7 Sep 2006 10:13:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Sep 2006 10:13:43 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 07 12:13:41 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GLGt8-0003EM-Af for ged-emacs-devel@m.gmane.org; Thu, 07 Sep 2006 12:13:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLGt7-00022Z-NW for ged-emacs-devel@m.gmane.org; Thu, 07 Sep 2006 06:13:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GLGsg-0001dZ-RP for emacs-devel@gnu.org; Thu, 07 Sep 2006 06:13:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GLGse-0001aX-Mx for emacs-devel@gnu.org; Thu, 07 Sep 2006 06:13:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLGse-0001a7-H0 for emacs-devel@gnu.org; Thu, 07 Sep 2006 06:13:08 -0400 Original-Received: from [65.54.246.176] (helo=bay0-omc2-s40.bay0.hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GLGt0-0007TT-4X for emacs-devel@gnu.org; Thu, 07 Sep 2006 06:13:30 -0400 Original-Received: from hotmail.com ([64.4.26.35]) by bay0-omc2-s40.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 7 Sep 2006 03:13:08 -0700 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 7 Sep 2006 03:13:07 -0700 Original-Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with HTTP; Thu, 07 Sep 2006 10:13:04 GMT X-Originating-IP: [216.145.54.158] X-Originating-Email: [herberteuler@hotmail.com] X-Sender: herberteuler@hotmail.com In-Reply-To: Original-To: emacs-devel@gnu.org X-OriginalArrivalTime: 07 Sep 2006 10:13:07.0575 (UTC) FILETIME=[36DF7870:01C6D266] 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:59501 Archived-At: Having found that the followings: (gdb) bt #0 0x211c8104 in kill () from /usr/lib/libc.so.4 #1 0x01059900 in fatal_error_signal (sig=11) at emacs.c:430 #2 #3 0x010c10b3 in strout (ptr=0x2469648
, size=27, size_byte=27, printcharfun=19413041, multibyte=0) at print.c:417 #4 0x010c1385 in print_string (string=37526819, printcharfun=19413041) at print.c:506 #5 0x010c552d in print_object (obj=37526819, printcharfun=19413041, escapeflag=0) at print.c:2050 #6 0x010c3c4a in print (obj=37526819, printcharfun=19413041, escapeflag=0) at print.c:1301 #7 0x010c3059 in Fprinc (object=37526819, printcharfun=19413041) at print.c:847 #8 0x010c3870 in print_error_message (data=36753309, stream=19413041, context=0x9fbff70c "", caller=19764345) at print.c:1090 #9 0x0105bd82 in cmd_error_internal (data=36753309, context=0x9fbff70c "") at keyboard.c:1268 #10 0x0105bc80 in cmd_error (data=36753309) at keyboard.c:1205 #11 0x010b3dfb in internal_condition_case (bfun=0x105bfe0 , handlers=19471817, hfun=0x105bbd8 ) at eval.c:1465 #12 0x0105be78 in command_loop_2 () at keyboard.c:1328 #13 0x010b399c in internal_catch (tag=19460913, func=0x105be54 , arg=19412993) at eval.c:1213 #14 0x0105be28 in command_loop () at keyboard.c:1307 #15 0x0105ba0f in recursive_edit_1 () at keyboard.c:1000 #16 0x0105bb2a in Frecursive_edit () at keyboard.c:1061 #17 0x0105a9f6 in main (argc=1, argv=0x9fbff9ec) at emacs.c:1814 (gdb) p string $10 = 37526819 (gdb) xstring $11 = (struct Lisp_String *) 0x23c9d20 "No further undo information" (gdb) p *$ $12 = { size = 27, size_byte = -1, intervals = 0x0, data = 0x243d8ac "No further undo information" } (gdb) PRINT_STRING calls STROUT in this way: (print.c, version 1.190.2.21, line 505-508) /* strout is safe for output to a frame (echo area) or to print_buffer. */ strout (SDATA (string), chars, SBYTES (string), printcharfun, STRING_MULTIBYTE (string)); "SDATA (string)" shall be 0x243d8ac, but value of the first argument (PTR) of STROUT is 0x2469648. This is the reason why Emacs crashed. But, why this happened? Memory leak? Regards, Guanpeng Xu _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/