[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#62009: 29.0.60; Emacs crashes on setf symbol-name
From: |
Philip Kaludercic |
Subject: |
bug#62009: 29.0.60; Emacs crashes on setf symbol-name |
Date: |
Fri, 10 Mar 2023 18:56:28 +0000 |
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Philip Kaludercic <philipk@posteo.net>
>> Cc: Daniel Mendler <mail@daniel-mendler.de>, michael_heerdegen@web.de,
>> monnier@iro.umontreal.ca, 62009@debbugs.gnu.org
>> Date: Thu, 09 Mar 2023 21:11:13 +0000
>>
>> > AFAICT, they _are_ frozen. These names are in read-only memory, where
>> > you cannot write. That's why Emacs crashes, AFAIU: the code is trying
>> > to write to protected memory.
>> >
>> > Just don't do that, cause it's gonna hurt...
>>
>> Is it not possible to detect this before the illegal memory access, and
>> raise a signal in Emacs Lisp?
>
> It won't be easy, if at all possible. And I'm not sure we even want
> to do that. What would be the purpose of supporting such a use of
> Emacs?
The point is not that much that a signal is raised, but that anything
else but segfaulting is done.
Emacs is generally not "safe", but the idea of someone stuffing an
expression like the one mentioned in this bug report into the autoload
of a package just to cause chaos is uncompfortable. Of course, you can
already do
;;;###autoload (delete-directory "~" t)
or
;;;###autoload (fset 'eval 'ignore)
so maybe my point is moot.
--
Philip Kaludercic
- bug#62009: 29.0.60; Emacs crashes on setf symbol-name, (continued)
- bug#62009: 29.0.60; Emacs crashes on setf symbol-name, Po Lu, 2023/03/11
- bug#62009: 29.0.60; Emacs crashes on setf symbol-name, Eli Zaretskii, 2023/03/10
- bug#62009: 29.0.60; Emacs crashes on setf symbol-name, Eli Zaretskii, 2023/03/10
- bug#62009: 29.0.60; Emacs crashes on setf symbol-name, Gregory Heytings, 2023/03/10
- bug#62009: 29.0.60; Emacs crashes on setf symbol-name, Po Lu, 2023/03/11
- bug#62009: 29.0.60; Emacs crashes on setf symbol-name, Eli Zaretskii, 2023/03/11
- bug#62009: 29.0.60; Emacs crashes on setf symbol-name,
Philip Kaludercic <=