GNU bug report logs -
#49261
28.0.50; File Locking Breaks Presumptuous Toolchains
Previous Next
Reported by: Mallchad Skeghyeph <ncaprisunfan <at> gmail.com>
Date: Mon, 28 Jun 2021 18:28:02 UTC
Severity: normal
Found in version 28.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #218 received at 49261 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 7/7/21 5:09 PM, Lars Ingebrigtsen wrote:
> There seems to be a corruption in the hash tables somewhere. It's
> totally reproducible with the recipe
Thanks for the recipe; it let me reproduce the problem on Fedora 34 x86-64.
The problem comes from the fact that mark_maybe_pointer works
differently on pdumper objects than it works on ordinary objects. On
ordinary objects, roots can point anywhere into an object (because this
sort of thing has happened on real machines), whereas on pdumper
objects, roots had to point to the start of the object.
I worked around this particular problem changing mark_maybe_pointer so
that pdumper roots can also be tagged (see first attached patch).
However, I suspect this is not a complete fix, as it doesn't cover the
case where a root points to some part of a pdumper object that is not at
the object's start. I added a FIXME about this. Perhaps Daniel can take
a look at it sometime. I think the remaining bug will be hit only rarely
(if ever).
The second attached patch is in the same area, but is not part of the
fix. It causes the GC to be a bit more accurate (i.e., less
conservative) for roots, which can help avoid some leaks.
[0001-Fix-pdumper-related-GC-bug.patch (text/x-patch, attachment)]
[0002-Make-pdumper-marking-pickier.patch (text/x-patch, attachment)]
This bug report was last modified 3 years and 305 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.