GNU bug report logs - #32479
Fix tracking of freed emacs_values with enabled --module-assertions

Previous Next

Package: emacs;

Reported by: Sergey Vinokurov <serg.foo <at> gmail.com>

Date: Mon, 20 Aug 2018 08:29:02 UTC

Severity: normal

Tags: fixed

Fixed in version 26.2

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Sergey Vinokurov <serg.foo <at> gmail.com>
To: 32479 <at> debbugs.gnu.org
Subject: bug#32479: Fix tracking of freed emacs_values with enabled --module-assertions
Date: Mon, 20 Aug 2018 09:27:46 +0100
[Message part 1 (text/plain, inline)]
Hi,

I was developing a dynamic module when I noticed that when
'--module-assertions' are enabled I got strange complaints regarding
value to be freed. Namely, Emacs was producing an error message like the
following one:

    Emacs module assertion: Global value was not found in list of 10 globals

I tracked it down to a bug in module_free_global_ref. It's traversal of
the linked list of all allocated global values was flawed and only
considered the head of the list. Please find attached my attempt at
fixing it and a test in Emacs test suite that reproduces the issue.

Regards,
Sergey
[0001-Fix-detection-of-freed-emacs_values.patch (text/x-patch, attachment)]

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

Previous Next


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