[PATCH 4/6] Rewrite registry.h
Tom Tromey
tom@tromey.com
Wed Jun 8 01:33:57 GMT 2022
>>>>> Lancelot SIX <lsix@lancelotsix.com> writes:
> Hi Tom,
> After this patch, if I build GDB with address sanitizer, I end up having
> many regressions related to heap-use-after-free in the testsuite.
> You can see this by using the gdb.base/cached-source-file.exp for
> example.
Thanks. I should have thought to do this testing myself.
This particular failure comes because the order of destruction of the
per-bfd and per-objfile objects changed. I think it's better to avoid
this problem entirely. I've got a patch to do this that I will send
soon.
After that's in, I'll rebase the registry series and test it with ASAN.
Tom
More information about the Gdb-patches
mailing list