From: Andreas Politz <politza@hochschule-trier.de>
To: 24673@debbugs.gnu.org
Subject: bug#24673: 25.1.50; Evaluating '((closure))' aborts Emacs
Date: Wed, 12 Oct 2016 12:26:24 +0200 [thread overview]
Message-ID: <8760oxoobz.fsf@hochschule-trier.de> (raw)
emacs -Q
M-x ((closure)) RET
=> eval.c:2845: Emacs fatal error: assertion failed: CONSP (fun)
The function takes the (XCAR (XCDR '((closure)))), which is not a good
idea, since XCDR returns Qnil, while XCAR expects a cons.
static Lisp_Object
funcall_lambda (Lisp_Object fun, ptrdiff_t nargs,
register Lisp_Object *arg_vector)
{
....
if (CONSP (fun))
{
if (EQ (XCAR (fun), Qclosure))
{
fun = XCDR (fun); /* Drop `closure'. */
lexenv = XCAR (fun); <============ 2845
CHECK_LIST_CONS (fun, fun);
}
...
}
else ...
}
-ap
next reply other threads:[~2016-10-12 10:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-12 10:26 Andreas Politz [this message]
2016-10-12 20:52 ` bug#24673: 25.1.50; Evaluating '((closure))' aborts Emacs Philipp Stephani
2016-10-13 5:51 ` Eli Zaretskii
2016-10-13 11:13 ` Philipp Stephani
2016-10-12 21:23 ` Robert Cochran
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=8760oxoobz.fsf@hochschule-trier.de \
--to=politza@hochschule-trier.de \
--cc=24673@debbugs.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.