From: Pip Cet via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "Gerd Möllmann" <gerd.moellmann@gmail.com>,
spd@toadstyle.org, "Eli Zaretskii" <eliz@gnu.org>,
acorallo@gnu.org, 74966@debbugs.gnu.org
Subject: bug#74966: 31.0.50; Crash report (using igc on macOS)
Date: Sat, 21 Dec 2024 15:18:43 +0000 [thread overview]
Message-ID: <874j2xhxp2.fsf@protonmail.com> (raw)
In-Reply-To: <jwvldw9glm8.fsf-monnier+emacs@gnu.org>
"Stefan Monnier" <monnier@iro.umontreal.ca> writes:
>>> `offset` here should be fixnum that gives the position of this docstring
>>> in the DOC file. And FUN should be a function for which we found
>>
>> Yes, but the nativecomp code assumes ->doc is an index into a
>> nativecomp'd subr's constant vector.
>
> Aha!
>
>> So we overwrite it with a docfile
>> index, access an out-of-bounds index and crash.
>>
>> I think the best thing to do is to use separate fields for the "offset"
>> doc and the "index" doc; or at least, the second best thing, after
>> removing the entire docfile hack.
>
> I think a much simpler change is to use the sign bit to distinguish indices
> into the constant vector from indices into the DOC file.
And use one's-complement, I assume, to guard against some future weird
nativecomp change resulting in the index -0? :-)
I really have no strong preference here.
At some point we should remove the DOC hack entirely (pdumper works on
FreeDOS here, now; so with the possible exception of Solaris 10 zones on
x86 Solaris 11, everyone's going to use pdumper and we can use that to
save static data).
But now is not a good time to do so, so we should do whatever affects
the nativecomp code least. Let's go with the one's complement?
(I'd really like to get Emacs working well in low-memory environments,
such as embedded systems using SRAM rather than DRAM. I expect most
hardware capable of running Emacs will have an MMU, but it might not
actually be in use).
Pip
next prev parent reply other threads:[~2024-12-21 15:18 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-19 9:17 bug#74966: 31.0.50; Crash report (using igc on macOS) Sean Devlin
[not found] ` <handler.74966.B.173459989517154.ack@debbugs.gnu.org>
2024-12-19 9:21 ` bug#74966: Acknowledgement (31.0.50; Crash report (using igc on macOS)) Sean Devlin
2024-12-19 10:28 ` Gerd Möllmann
2024-12-19 11:05 ` Sean Devlin
2024-12-19 11:30 ` Gerd Möllmann
2024-12-19 10:25 ` bug#74966: 31.0.50; Crash report (using igc on macOS) Gerd Möllmann
2024-12-19 11:57 ` Sean Devlin
2024-12-19 11:48 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-19 11:54 ` Sean Devlin
2024-12-19 14:02 ` Gerd Möllmann
2024-12-19 14:07 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-19 14:44 ` Gerd Möllmann
2024-12-19 15:25 ` Gerd Möllmann
2024-12-19 19:21 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-19 19:46 ` Gerd Möllmann
2024-12-20 7:00 ` Gerd Möllmann
2024-12-20 7:11 ` Gerd Möllmann
2024-12-20 7:30 ` Gerd Möllmann
2024-12-20 7:38 ` Gerd Möllmann
2024-12-20 7:44 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-20 8:12 ` Eli Zaretskii
2024-12-20 8:21 ` Gerd Möllmann
2024-12-20 8:35 ` Eli Zaretskii
2024-12-20 8:43 ` Gerd Möllmann
2024-12-20 8:57 ` Gerd Möllmann
2024-12-20 16:17 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-20 16:20 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-21 14:26 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-21 14:57 ` Gerd Möllmann
2024-12-21 15:18 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-12-21 16:15 ` Eli Zaretskii
2024-12-20 16:40 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-20 17:17 ` Gerd Möllmann
2024-12-20 19:40 ` Eli Zaretskii
2024-12-20 20:50 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-20 21:07 ` Gerd Möllmann
2024-12-21 7:09 ` Eli Zaretskii
2024-12-21 7:12 ` Gerd Möllmann
2024-12-21 6:47 ` Eli Zaretskii
2024-12-21 7:08 ` Gerd Möllmann
2024-12-21 7:51 ` Eli Zaretskii
2024-12-21 8:07 ` Gerd Möllmann
2024-12-21 10:09 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-21 10:31 ` Gerd Möllmann
2024-12-21 12:28 ` Eli Zaretskii
2024-12-21 13:26 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-21 14:12 ` Gerd Möllmann
2024-12-21 16:07 ` Eli Zaretskii
2024-12-21 17:35 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-21 18:15 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-20 8:04 ` Eli Zaretskii
2024-12-20 6:34 ` Eli Zaretskii
2024-12-19 15:31 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-19 15:42 ` Gerd Möllmann
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874j2xhxp2.fsf@protonmail.com \
--to=bug-gnu-emacs@gnu.org \
--cc=74966@debbugs.gnu.org \
--cc=acorallo@gnu.org \
--cc=eliz@gnu.org \
--cc=gerd.moellmann@gmail.com \
--cc=monnier@iro.umontreal.ca \
--cc=pipcet@protonmail.com \
--cc=spd@toadstyle.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 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).