GNU bug report logs - #31238
Dynamic Module Crash

Previous Next

Package: emacs;

Reported by: Tuấn Anh Nguyễn <ubolonton <at> gmail.com>

Date: Sun, 22 Apr 2018 16:32:02 UTC

Severity: normal

Merged with 34655

Found in version 26.1.92

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 31238 <at> debbugs.gnu.org (full text, mbox):

From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: Tuấn Anh Nguyễn <ubolonton <at> gmail.com>
Cc: 31238 <at> debbugs.gnu.org
Subject: Re: bug#31238: Dynamic Module Crash
Date: Fri, 21 Sep 2018 19:16:44 +0200
[Message part 1 (text/plain, inline)]
Philipp Stephani <p.stephani2 <at> gmail.com> schrieb am Di., 24. Apr. 2018 um
16:08 Uhr:

> Tuấn Anh Nguyễn <ubolonton <at> gmail.com> schrieb am So., 22. Apr. 2018 um
> 18:32 Uhr:
>
>> Emacs 25.3.1 crashes with a segfault when trying to print a value
>> constructed (in certain ways) by a dynamic module.
>>
>> Reproduction: https://github.com/ubolonton/emacs-module-crash
>>
>> Context: https://github.com/ubolonton/emacs-module-rs/issues/2
>>
>>
> This might be caused by commit 3eb93c07f7a60ac9ce8a16f10c3afd5a3a31243a,
> which removed GC protection for module-allocated values.
>

Unless anybody complains, I'll revert that commit. Modules can store/use
emacs_value objects in arbitrary ways; there's no way we can rely on stack
scanning to reliably find them.
[Message part 2 (text/html, inline)]

This bug report was last modified 6 years and 61 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.