From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: Re: RMAIL slows Date: Wed, 23 Mar 2005 09:50:35 -0500 (EST) Message-ID: References: Reply-To: bob@rattlesnake.com NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1111591628 17916 80.91.229.2 (23 Mar 2005 15:27:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Mar 2005 15:27:08 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 23 16:27:08 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DE7YL-00005p-3S for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2005 16:13:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DE7pr-0004YW-2d for ged-emacs-devel@m.gmane.org; Wed, 23 Mar 2005 10:31:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DE7kP-00023g-VD for emacs-devel@gnu.org; Wed, 23 Mar 2005 10:26:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DE7dt-000818-OT for emacs-devel@gnu.org; Wed, 23 Mar 2005 10:19:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DE7ds-0007qw-5s for emacs-devel@gnu.org; Wed, 23 Mar 2005 10:19:32 -0500 Original-Received: from [69.168.108.225] (helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DE7Dv-0002DX-HV; Wed, 23 Mar 2005 09:52:43 -0500 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.115) Wed, 23 Mar 2005 09:50:35 -0500 (EST) Original-To: rms@gnu.org In-reply-to: (message from Richard Stallman on Tue, 22 Mar 2005 19:59:16 -0500) 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:35047 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35047 I am not sure what to do next. I tried this: You need to display the value of regexp in Lisp syntax. That is done with the pr command. The problem is that I saw (gdb) pr 17213013 which did not seem as useful. That is why I showed the results of (gdb) pp regexp=137779403 and (gdb) p *$ For a person as ignorant as I, `emacs/etc/DEBUG' does not go far enough in telling me what to do in this case. The file helps in other cases. But in this case, I am trying to try to find out why an older instance of Emacs runs the command `rmail-summary-delete-forward' more slowly than newer instance of the same version. It is likely that you understand what is to be done and consider it obvious; unfortunately, I do not. Please, tell me what you would like me to do, understanding that I know nothing. I will undertake the actions you suggest and try to write a appropriate section for `emacs/etc/DEBUG' for people like me. Thank you. Meanwhile, in another instance of Emacs, but from the same binary and also taking a long time to run the command `rmail-summary-delete-forward', I set the breakpoint as before at regex.c:4168 . Then: (gdb) c Continuing. Program received signal SIGTSTP, Stopped (user). re_match_2_internal (bufp=0x8329d8c, string1=0x40af4785 .... (gdb) p string1=0x40af4785 $1 = ( const unsigned char *) 0x40af4785 "Date: Tue, 22 Mar 2005 15:36:30 +0300 (MSK)\nFrom: MAILER-DAEMON@mtu.ru (Mail Delivery System)\nSubject: Undelivered Mail Returned to Sender\nTo: edd@rattlesnake.com\n\nThis is a MIME-encapsulated message."... This gave a different result for pr: (gdb) pr (88425796 . Program received signal SIGSEGV, Segmentation fault. 0x08193800 in print_object (obj=1952531466, printcharfun=137657281, escapeflag=1) at print.c:1981 1981 switch (XMISCTYPE (obj)) ... The warning in `emacs/etc/DEBUG' mentions a stack overflow, however, the backtrace did not show any (gdb) bt #0 0x08193800 in print_object (obj=1952531466, printcharfun=137657281, escapeflag=1) at print.c:1981 #1 0x08194d1a in print_object (obj=1952531466, printcharfun=137657281, escapeflag=1) at print.c:1792 #2 0x08191897 in Fprin1 (object=1085228933, printcharfun=137657281) at print.c:742 #3 0x08192ada in debug_print (arg=1952531464) at print.c:965 #4 #5 re_match_2_internal (bufp=0x8329d8c, string1=0x40af4785 "Date: Tue, 22 Mar 2005 15:36:30 +0300 (MSK)\nFrom: MAILER-DAEMON@mtu.ru (Mail Delivery System)\nSubject: Undelivered Mail Returned to Sender\nTo: edd@rattlesnake.com\n\nThis is a MIME-encapsulated message."..., size1=0, ... So I tried: (gdb) break print.c:1981 Breakpoint 4 at 0x81937fb: file print.c, line 1981. (gdb) c Continuing. Fatal error (11) Breakpoint 3, re_search_2 (bufp=0x832907c, str1=0x8a32850 "/home/bob/.emacs.d/auto-save-list/.saves-11154-benthic.rattlesnake.com~", size1=71, str2=0x0, size2=71, startpos=0, range=144655563, regs=0x4072a080, stop=143356597) at regex.c:4176 4176 { (gdb) p str1=0x8a32850 $2 = 0x8a32850 "/home/bob/.emacs.d/auto-save-list/.saves-11154-benthic.rattlesnake.com~" (gdb) pr 18113802 (gdb) p 18113802 $3 = 18113802 (gdb) pr Breakpoint 4, print_object (obj=18113802, printcharfun=137657281, escapeflag=1) at print.c:1981 1981 switch (XMISCTYPE (obj)) ... (gdb) xbacktrace "re-search-forward" "goto-address-fontify" "goto-address" "run-hooks" "rmail-show-message" "rmail-summary-goto-msg" "rmail-summary-delete-forward" "call-interactively" -- Robert J. Chassell bob@rattlesnake.com GnuPG Key ID: 004B4AC8 http://www.rattlesnake.com http://www.teak.cc