emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scratch/comp-static-data 5aa3db2f11: comp: Add support for compiling


From: Po Lu
Subject: Re: scratch/comp-static-data 5aa3db2f11: comp: Add support for compiling elisp constants into static data.
Date: Mon, 21 Nov 2022 08:37:53 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

vibhavp@gmail.com writes:

> Therefore, `lisp_data_3' gets stored in .rodata (or .data.rel.ro),
> which causes the call to `aset' to trigger a SIGSEGV. This behaviour is
> documented by the Elisp reference manual, which states that self-
> evaluating forms are immutable, and changing then can read to
> crashes/undefined behaviour
> (https://www.gnu.org/software/emacs/manual/html_node/elisp/Self_002dEvaluating-Forms.html
> ).

And why exactly does it have to be put in .rodata?  Why not .data?  Lisp
code should never be able to crash Emacs, no matter how badly written it
is.  While Emacs is currently not perfect, making it drastically less so
is not acceptable.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]