diff --git a/lib/std/debug/SelfInfo/Elf.zig b/lib/std/debug/SelfInfo/Elf.zig index 7a81b4cba894fd238d72e5e1c74cdc3df8ae176a..eb60162dcb405709a7468e97ea4b755aaefe2d90 100644 --- a/lib/std/debug/SelfInfo/Elf.zig +++ b/lib/std/debug/SelfInfo/Elf.zig @@ -428,6 +428,9 @@ fn findModule(si: *SelfInfo, gpa: Allocator, io: Io, address: usize, lock: enum // Rebuild module list with the exclusive lock. { errdefer si.rwlock.unlock(io); + if (si.unwind_cache) |cache| { + @memset(cache, .empty); + } for (si.modules.items) |*mod| { unwind: { const u = &(mod.unwind orelse break :unwind catch break :unwind);