From: "Herbert Euler" <herberteuler@hotmail.com>
Subject: Max-specpdl-size Bug in Emacs Lisp Interpreter?
Date: Sat, 15 Apr 2006 16:24:56 +0800 [thread overview]
Message-ID: <BAY112-F69AEFB28D10DEC2871D2FDAC10@phx.gbl> (raw)
Hello,
These days I read source for 'catch' and 'throw' of emacs lisp.
Then I traced into unbind-to in eval.c, and some functions
operating 'specpdl'. I created some hypothesises to understand
them. Since 'let' invokes 'specbind' as well, I guessed I can
verify these hypothesises with let. Here is what I did (I'm using
Emacs Unicode 2 from CVS, latest check Apr. 8, 2006):
(defmacro create-let (n)
(let ((i 0)
list)
`(let ,(progn
(while (< i n)
(setq list (cons (intern (concat "v" (number-to-string i))) list))
(setq i (1+ i)))
list)
(message "hello"))))
=> create-let
max-specpdl-size
=> 1000
(create-let 1000)
=> [error: Variable binding depth exceeds max-specpdl-size]
max-specpdl-size
=> 1000
(create-let 1000)
=> "hello"
(create-let 2000)
=> [error: Variable binding depth exceeds max-specpdl-size]
max-specpdl-size
=> 1101
(create-let 1200)
=> "hello"
max-specpdl-size
=> 1242
I just executed them sequentially. The behavior of last several
evaluations may be different, but they are always not correct in
my Emacs (judged by 'max-specpdl-size' should not be modified
and 'create-let' should fail if its argument exceeds 'max-specpdl
-size').
Does this imply a bug in Emacs Lisp interpreter?
Regards,
Guanpeng Xu
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
next reply other threads:[~2006-04-15 8:24 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-15 8:24 Herbert Euler [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-04-16 7:59 Max-specpdl-size Bug in Emacs Lisp Interpreter? Herbert Euler
2006-04-17 2:40 ` Herbert Euler
2006-04-17 9:06 ` Romain Francoise
2006-04-18 1:41 ` Richard Stallman
2006-04-18 3:20 ` Herbert Euler
2006-04-18 6:36 ` David Kastrup
2006-04-18 14:07 ` Herbert Euler
2006-04-18 11:25 ` Juanma Barranquero
2006-04-18 20:50 ` Richard Stallman
2006-04-19 1:43 ` Herbert Euler
2006-04-17 17:56 ` Richard Stallman
2006-04-18 2:18 ` Herbert Euler
2006-04-18 2:22 ` Miles Bader
2006-04-18 5:44 ` Luc Teirlinck
2006-04-18 20:50 ` Richard Stallman
2006-04-18 23:34 ` Miles Bader
2006-04-18 23:43 ` David Kastrup
2006-04-19 3:07 ` Herbert Euler
2006-04-19 15:40 ` Richard Stallman
2006-04-19 2:59 ` Herbert Euler
2006-04-19 3:47 ` Luc Teirlinck
2006-04-19 4:03 ` Luc Teirlinck
2006-04-19 5:11 ` Herbert Euler
2006-04-18 13:51 Herbert Euler
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=BAY112-F69AEFB28D10DEC2871D2FDAC10@phx.gbl \
--to=herberteuler@hotmail.com \
/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.