unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#22051: Byte compilation of "(funcall)" causes segfault when run.
@ 2015-11-29 15:59 Alan Mackenzie
       [not found] ` <mailman.941.1448813109.31583.bug-gnu-emacs@gnu.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Mackenzie @ 2015-11-29 15:59 UTC (permalink / raw)
  To: 22051; +Cc: Johan Bockgård

Hello, Emacs.

Start Emacs 25 with emacs -Q.
Type the following Lisp function into *scratch*:

    (defun foo ()
      (funcall))

, and byte compile it with M-x compile-defun.
Do M-: (foo) <CR>.
Emacs segfaults.

(Reported by Johan Bockgård <bojohan@gnu.org> as an aside to bug
#20241.)

-- 
Alan Mackenzie (Nuremberg, Germany).





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

* bug#22051: Byte compilation of "(funcall)" causes segfault when run.
       [not found] ` <mailman.941.1448813109.31583.bug-gnu-emacs@gnu.org>
@ 2015-11-29 16:25   ` Alan Mackenzie
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Mackenzie @ 2015-11-29 16:25 UTC (permalink / raw)
  To: 22051-done; +Cc: Alan Mackenzie

In article <mailman.941.1448813109.31583.bug-gnu-emacs@gnu.org> you wrote:
> Hello, Emacs.

> Start Emacs 25 with emacs -Q.
> Type the following Lisp function into *scratch*:

>     (defun foo ()
>       (funcall))

> , and byte compile it with M-x compile-defun.
> Do M-: (foo) <CR>.
> Emacs segfaults.

> (Reported by Johan Bockgård <bojohan@gnu.org> as an aside to bug
> #20241.)

Bug fixed by the compiler (i) emitting an error message; (ii) generating code
to signal a `wrong-number-of-arguments' error.

-- 
Alan Mackenzie (Nuremberg, Germany).






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

end of thread, other threads:[~2015-11-29 16:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-29 15:59 bug#22051: Byte compilation of "(funcall)" causes segfault when run Alan Mackenzie
     [not found] ` <mailman.941.1448813109.31583.bug-gnu-emacs@gnu.org>
2015-11-29 16:25   ` Alan Mackenzie

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