unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4233: elp (profiler) / broken functions
@ 2009-08-22 11:22 ` Andreas Politz, INF-I-MA
  2009-09-12  1:50   ` bug#4233: marked as done (elp (profiler) / broken functions) Emacs bug Tracking System
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Politz, INF-I-MA @ 2009-08-22 11:22 UTC (permalink / raw)
  To: bug-gnu-emacs


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 bug-gnu-emacs@gnu.org 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








^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#4233: marked as done (elp (profiler) / broken functions)
  2009-08-22 11:22 ` bug#4233: elp (profiler) / broken functions Andreas Politz, INF-I-MA
@ 2009-09-12  1:50   ` Emacs bug Tracking System
  0 siblings, 0 replies; 2+ messages in thread
From: Emacs bug Tracking System @ 2009-09-12  1:50 UTC (permalink / raw)
  To: Chong Yidong

[-- Attachment #1: Type: text/plain, Size: 856 bytes --]

Your message dated Fri, 11 Sep 2009 21:41:04 -0400
with message-id <87tyz9ey8f.fsf@stupidchicken.com>
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 owner@emacsbugs.donarmstrong.com
immediately.)


-- 
4233: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=4233
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 5331 bytes --]

From: "Andreas Politz, INF-I-MA" <politza@fh-trier.de>
To: bug-gnu-emacs@gnu.org
Subject: elp (profiler) / broken functions
Date: Sat, 22 Aug 2009 13:22:50 +0200
Message-ID: <20090822112118.M15215@fh-trier.de>


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 bug-gnu-emacs@gnu.org 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





[-- Attachment #3: Type: message/rfc822, Size: 1647 bytes --]

From: Chong Yidong <cyd@stupidchicken.com>
To: "Andreas Politz\, INF-I-MA" <politza@fh-trier.de>
Cc: 4233-done@emacsbugs.donarmstrong.com
Subject: Re: elp (profiler) / broken functions
Date: Fri, 11 Sep 2009 21:41:04 -0400
Message-ID: <87tyz9ey8f.fsf@stupidchicken.com>

> 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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-12  1:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <87tyz9ey8f.fsf@stupidchicken.com>
2009-08-22 11:22 ` bug#4233: elp (profiler) / broken functions Andreas Politz, INF-I-MA
2009-09-12  1:50   ` bug#4233: marked as done (elp (profiler) / broken functions) Emacs bug Tracking System

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).