bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#4233: marked as done (elp (profiler) / broken functions)


From: Emacs bug Tracking System
Subject: bug#4233: marked as done (elp (profiler) / broken functions)
Date: Sat, 12 Sep 2009 01:50:08 +0000

Your message dated Fri, 11 Sep 2009 21:41:04 -0400
with message-id <address@hidden>
and subject line Re: elp (profiler) / broken functions
has caused the Emacs bug report #4233,
regarding elp (profiler) / broken functions
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact address@hidden
immediately.)


-- 
4233: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=4233
Emacs Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: elp (profiler) / broken functions Date: Sat, 22 Aug 2009 13:22:50 +0200
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the address@hidden mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:



There are some more functions elp does not handle well
and may break emacs severely.  They should be included in 
`elp-not-profilable'.

1. Function which breaks after instrumenting :
+

2. Functions which can not be restored properly :
byte-code-function-p
functionp
byte-code
subrp
indirect-function
fboundp

I checked this by trial-and-error with the following code.

(progn
  (require 'cl)
  (require 'elp)
  (let ((fn
         (mapcar #'intern
                 (all-completions
                  "" obarray
                  #'(lambda (sym)
                      (and (elp-profilable-p sym)
                           (not (memq sym
                                      '(+
                                        byte-code-function-p
                                        functionp
                                        byte-code
                                        subrp
                                        indirect-function
                                        fboundp
                                        )))))))))
    (dolist (f fn)
      (setq cur f)
      (elp-instrument-function f)
      (elp-restore-function f)
      (when (and (listp (symbol-function cur))
                 (eq (car (symbol-function cur))
                     'lambda)
                 (listp (caddr (symbol-function cur)))
                 (eq (caaddr (symbol-function cur))
                     'elp-wrapper))
        (goto-char (point-max))
        (insert (format "%s\n" cur))
        (save-buffer)))))





If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/home/politza/src/emacs-23.1.rc1/etc/DEBUG for instructions.


In GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.16.1)
 of 2009-08-08 on raven
Windowing system distributor `The X.Org Foundation', version 11.0.10402000
configured using `configure  '--build' 'x86_64-linux-gnu' '--prefix=/usr'
'--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' 'CFLAGS=-g
-O2' 'LDFLAGS=-Wl,-z,defs' 'build_alias=x86_64-linux-gnu' 'CPPFLAGS=''

Important settings:
  value of $LC_ALL: C
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default-enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t





--- End Message ---
--- Begin Message --- Subject: Re: elp (profiler) / broken functions Date: Fri, 11 Sep 2009 21:41:04 -0400
> There are some more functions elp does not handle well and may break
> emacs severely.  They should be included in `elp-not-profilable'.

Thank you for checking.  I've added the functions to elp-not-profilable.

--- End Message ---

reply via email to

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