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: Wed, 06 Sep 2006 20:50:49 +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 1157547091 26065 80.91.229.2 (6 Sep 2006 12:51:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Sep 2006 12:51:31 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 06 14:51:29 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 1GKws4-0002RZ-7Y for ged-emacs-devel@m.gmane.org; Wed, 06 Sep 2006 14:51:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKws3-0003cX-PJ for ged-emacs-devel@m.gmane.org; Wed, 06 Sep 2006 08:51:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GKwrq-0003Ym-Bt for emacs-devel@gnu.org; Wed, 06 Sep 2006 08:50:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GKwrp-0003VA-A9 for emacs-devel@gnu.org; Wed, 06 Sep 2006 08:50:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GKwrp-0003Uf-5j for emacs-devel@gnu.org; Wed, 06 Sep 2006 08:50:57 -0400 Original-Received: from [199.232.41.67] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GKwrw-0001WE-SO; Wed, 06 Sep 2006 08:51:05 -0400 Original-Received: from [65.54.246.241] (helo=bay0-omc3-s41.bay0.hotmail.com) by mx20.gnu.org with esmtp (Exim 4.52) id 1GKwrm-0006cC-De; Wed, 06 Sep 2006 08:50:54 -0400 Original-Received: from hotmail.com ([64.4.26.15]) by bay0-omc3-s41.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 6 Sep 2006 05:50:52 -0700 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 6 Sep 2006 05:50:52 -0700 Original-Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with HTTP; Wed, 06 Sep 2006 12:50:49 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: 06 Sep 2006 12:50:52.0506 (UTC) FILETIME=[15FF93A0:01C6D1B3] 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:59443 Archived-At: >From: Richard Stallman >Reply-To: rms@gnu.org >To: "Herbert Euler" >CC: emacs-devel@gnu.org >Subject: Re: Emacs crashes accidentally >Date: Thu, 10 Aug 2006 12:27:42 -0400 I'm so sorry I was required to have some training these days and I could not read mails. Please forgive me. > Before crashing, I wanted to undo some deletion > so I typed C-x u C-x z z z ... When some `z' was pressed, > Emacs suddenly crashed. > >The term "to crash" is often synonymous with "getting some z's" ;-). > > #3 0x010c10b3 in strout (ptr=0x2469648
bounds>, > 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 > >It looks like STRING is invalid Lisp data. Please look inside it >and see precisely what is wrong with it. (gdb) up #4 0x010c1385 in print_string (string=37526819, printcharfun=19413041) at print.c:506 506 strout (SDATA (string), (gdb) p string $1 = 37526819 (gdb) xpr Lisp_String $2 = (struct Lisp_String *) 0x23c9d20 "No further undo information" (gdb) p *$ $3 = { size = 27, size_byte = -1, intervals = 0x0, data = 0x243d8ac "No further undo information" } (gdb) I don't know whether it's wrong with STRING. > #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 > >Where did print_error_message get the string? Where did it come from? >If it came from DATA, then please try to trace it back. >What are the elements of DATA? #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 Having seen this, I traced into INTERNAL_CONDITION_CASE. It's version 1.210.4.35 of EVAL.C, line 1465. Lines near that are: if (_setjmp (c.jmp)) { return (*hfun) (c.val); } I don't know how INTERNAL_CONDITION_CASE is invoked here, is it invoked by jumping? Now please take a look at what DATA is inside CMD_ERROR, which is the same as those in CMD_ERROR_INTERNAL and PRINT_ERROR_MESSAGE: (gdb) up #10 0x0105bc80 in cmd_error (data=36753309) at keyboard.c:1205 1205 cmd_error_internal (data, macroerror); (gdb) p data $25 = 36753309 (gdb) xpr Lisp_Cons $26 = (struct Lisp_Cons *) 0x230cf98 { car = 0x1291dc9, u = { cdr = 0x230cfad, chain = 0x230cfad } } (gdb) p $26->car $27 = 19471817 (gdb) xpr Lisp_Symbol $28 = (struct Lisp_Symbol *) 0x1291dc8 "error" (gdb) p $26->u->cdr $29 = 36753325 (gdb) xpr Lisp_Cons $30 = (struct Lisp_Cons *) 0x230cfa8 { car = 0x23c9d23, u = { cdr = 0x1283801, chain = 0x1283801 } } (gdb) p $30->car $31 = 37526819 (gdb) xpr Lisp_String $32 = (struct Lisp_String *) 0x23c9d20 "No further undo information" (gdb) p $30->u->cdr $33 = 19412993 (gdb) xpr Lisp_Symbol $34 = (struct Lisp_Symbol *) 0x1283800 "nil" (gdb) Hope the information can help. Beg your pardon for my late reply again. I'm so sorry. 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/