From: David PONCE <david.ponce@wanadoo.fr>
Cc: emacs-devel@gnu.org
Subject: Re: [Stephen.Berman@gmx.net: Emacs hangs while edebugging recentf.el]
Date: Mon, 21 Nov 2005 10:34:24 +0100 (CET) [thread overview]
Message-ID: <20123679.1132565664852.JavaMail.www@wwinf1507> (raw)
> Would you please DTRT and then ack?
Sorry for the delay to reply.
[...]
> I'm not sure if this is a real bug or some limitation in the way
> edebug works. I did the following:
> 1. emacs -q
> 2. M-x load-library RET recentf RET
> 3. M-x recentf-mode
> 4. M-: (setq recentf-list
[...]
> 5. Click on File->Open Recent->Options and set Recentf Menu Filter to
> recentf-arrange-by-mode for current session.
> 6. In the lisp source recentf.el instrument recentf-open-files for
> edebug (C-u M-C-x).
> 7. M-x recentf-open-files
> 8. Step through the function until this sexp:
> (apply 'widget-create
> `(group
> :indent 2
> :format "\n%v\n"
> ,@(recentf-open-files-items (or files recentf-list))))
>
> When ededug hits the end of this sexp, Emacs hangs and starts
> consuming all available CPU cycles. If I quickly press C-g the
> hanging stops.
[...]
I reproduced the error and also found that Emacs hangs in the built-in
function `prin1-to-string' when it tries to print the value the
function `widget-create' returns, which contains a lot of circular
references in a deeply nested list. If I don't interrupt the hang,
after some time, the function fails with a "Memory exhausted" message.
Notice that the widgets are correctly created in the "*Open Recent*"
buffer. This is only the edebug prin1 function that hangs.
When I set the value of `edebug-print-level' to 10 instead of the
default value of 50, Emacs no more hangs.
Maybe there is a bug in the prin1-to-string function? Unfortunately I
don't know how to fix it.
Or perhaps the default values of `edebug-print-level' and
`edebug-print-length' are too big?
Hope it helps.
David
next reply other threads:[~2005-11-21 9:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-21 9:34 David PONCE [this message]
2005-11-28 4:47 ` [Stephen.Berman@gmx.net: Emacs hangs while edebugging recentf.el] Richard M. Stallman
2005-12-06 1:42 ` Richard M. Stallman
2005-12-13 22:27 ` Chong Yidong
2005-12-14 20:04 ` Richard M. Stallman
-- strict thread matches above, loose matches on Subject: below --
2005-11-28 8:19 David PONCE
2005-11-29 3:11 ` Richard M. Stallman
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=20123679.1132565664852.JavaMail.www@wwinf1507 \
--to=david.ponce@wanadoo.fr \
--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.