[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#7496: 23.2; copy recursive keymap cause crash
From: |
Lars Ingebrigtsen |
Subject: |
bug#7496: 23.2; copy recursive keymap cause crash |
Date: |
Sun, 13 Oct 2019 19:56:47 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
> What happens in the current master without that limitation? We have
> since added stack overflow protection -- doesn't it kick in in this
> case?
No, Emacs just crashes hard. I haven't examined why, though -- I didn't
know about the new stack overflow protection.
It's easy to reproduce, though: Just eval this form and Emacs will
segfault (if it's older than yesterday's):
(let ((map (make-sparse-keymap)))
(define-key map " " map)
(copy-keymap map))
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no