From: Leo Liu <sdl.web@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: How to debug Error during redisplay
Date: Fri, 11 Jan 2013 19:02:29 +0800 [thread overview]
Message-ID: <m262346kze.fsf@gmail.com> (raw)
In-Reply-To: 83bocwuidc.fsf@gnu.org
On 2013-01-11 18:25 +0800, Eli Zaretskii wrote:
> Run Emacs under GDB, put a breakpoint in safe_eval_handler, and see
> which code and in which buffer is responsible.
Thanks for the info; I have forgotten there is always GDB ;)
I don't know how to print current_buffer. I tried:
p current_buffer => $11 = (struct buffer *) 0x1015330a0
pr => 1079299112
xpr => Argument to arithmetic operation not a number or boolean.
But bt gives me this:
--------------------------------
Lisp Backtrace:
"redisplay_internal (C function)" (0x69d758)
"redisplay" (0x5fbf58a0)
"sit-for" (0x5fbf5f30)
"animate-string" (0x5fbf6480)
"if" (0x5fbf6990)
"let" (0x5fbf6cd0)
"progn" (0x5fbf6f30)
"if" (0x5fbf7190)
"slime-startup-message" (0x5fbf7428)
"funcall" (0x5fbf7420)
"slime-repl-update-banner" (0x5fbf7730)
"save-current-buffer" (0x5fbf7c50)
"slime-init-output-buffer" (0x5fbf7da0)
"slime-repl-connected-hook-function" (0x5fbf83c0)
"run-hooks" (0x5fbf83f0)
"let" (0x5fbf88f0)
"let" (0x5fbf8c30)
"ad-Orig-slime-set-connection-info" (0x5fbf8d80)
"with-no-warnings" (0x5fbf9320)
"setq" (0x5fbf9590)
"let" (0x5fbf98d0)
"slime-set-connection-info" (0x5fbf9b68)
"apply" (0x5fbf9c40)
0x5b1d840 Lisp type 6
"funcall" (0x5fbfa090)
"progn" (0x5fbfa4b0)
"if" (0x5fbfa710)
"let*" (0x5fbfaa30)
"progn" (0x5fbfac90)
"cond" (0x5fbfaf40)
"let*" (0x5fbfb260)
0x509f180 Lisp type 6
"apply" (0x5fbfb5b0)
0x5b1ce30 Lisp type 6
"slime-dispatch-event" (0x5fbfc0d0)
"slime-process-available-input" (0x5fbfc750)
"slime-net-filter" (0x5fbfcdc8)
--------------------------------
So this is triggered by animate-string which slime uses. Weirdly, the
same code doesn't have this error in 24.2.
Also if I set inhibit-eval-during-redisplay to t, the error is gone as
well.
Leo
next prev parent reply other threads:[~2013-01-11 11:02 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-11 9:03 How to debug Error during redisplay Leo Liu
2013-01-11 10:25 ` Eli Zaretskii
2013-01-11 11:02 ` Leo Liu [this message]
2013-01-11 14:08 ` Eli Zaretskii
2013-01-12 5:25 ` Leo Liu
2013-01-12 9:43 ` Eli Zaretskii
2013-01-12 11:56 ` Leo Liu
2013-01-12 12:03 ` Leo Liu
2013-01-12 13:49 ` Eli Zaretskii
2013-01-12 13:58 ` Leo Liu
2013-01-12 14:31 ` Eli Zaretskii
2013-01-12 17:17 ` Stephen Berman
2013-01-12 12:30 ` Eli Zaretskii
2013-01-11 14:56 ` Stefan Monnier
2013-01-12 5:26 ` Leo Liu
2013-01-12 13:08 ` Stefan Monnier
2013-01-12 13:38 ` Leo Liu
2013-01-12 13:52 ` Eli Zaretskii
2013-01-12 14:07 ` Leo Liu
2013-01-12 14:38 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m262346kze.fsf@gmail.com \
--to=sdl.web@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.