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: Fri, 08 Sep 2006 10:50:27 +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 1157683859 17018 80.91.229.2 (8 Sep 2006 02:50:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Sep 2006 02:50:59 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 08 04:50:58 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 1GLWSB-0005Sl-NT for ged-emacs-devel@m.gmane.org; Fri, 08 Sep 2006 04:50:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLWSB-0003dk-7z for ged-emacs-devel@m.gmane.org; Thu, 07 Sep 2006 22:50:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GLWRu-0003a0-Ta for emacs-devel@gnu.org; Thu, 07 Sep 2006 22:50:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GLWRt-0003YP-9g for emacs-devel@gnu.org; Thu, 07 Sep 2006 22:50:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GLWRt-0003Y5-1r for emacs-devel@gnu.org; Thu, 07 Sep 2006 22:50:33 -0400 Original-Received: from [65.54.246.88] (helo=bay0-omc1-s16.bay0.hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GLWSM-0006GK-Go; Thu, 07 Sep 2006 22:51:02 -0400 Original-Received: from hotmail.com ([207.46.8.113]) by bay0-omc1-s16.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 7 Sep 2006 19:50:29 -0700 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 7 Sep 2006 19:50:29 -0700 Original-Received: from 207.46.8.123 by by117fd.bay117.hotmail.msn.com with HTTP; Fri, 08 Sep 2006 02:50:27 GMT X-Originating-IP: [216.145.54.158] X-Originating-Email: [herberteuler@hotmail.com] X-Sender: herberteuler@hotmail.com In-Reply-To: Original-To: rms@gnu.org X-OriginalArrivalTime: 08 Sep 2006 02:50:29.0094 (UTC) FILETIME=[8B32A060:01C6D2F1] 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:59537 Archived-At: Having found 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 [ Please pay attention to these two frames ] #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 (see also result of P *$ in gdb), but value of the first argument (PTR) of STROUT is 0x2469648. This is the reason why Emacs crashed. But, why did this happen? Memory leak? Regards, Guanpeng Xu _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/