emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RMAIL slows


From: Robert J. Chassell
Subject: Re: RMAIL slows
Date: Wed, 23 Mar 2005 09:50:35 -0500 (EST)

       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: address@hidden (Mail Delivery System)\nSubject: Undelivered Mail 
Returned to Sender\nTo: address@hidden 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  <function called from gdb>
  #5  re_match_2_internal (bufp=0x8329d8c, 
      string1=0x40af4785 "Date: Tue, 22 Mar 2005 15:36:30 +0300 (MSK)\nFrom: 
address@hidden (Mail Delivery System)\nSubject: Undelivered Mail Returned to 
Sender\nTo: address@hidden 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                         
    address@hidden                         GnuPG Key ID: 004B4AC8
    http://www.rattlesnake.com                  http://www.teak.cc




reply via email to

[Prev in Thread] Current Thread [Next in Thread]