authorgravatar for thibault@paradigme.techThibault Leclercq <thibault@paradigme.tech> 2026-07-17 18:27:47+02:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-07-20 13:56:43+02:00
log6c25d2bd58e4b5a002a7d1cd2882dd4e7ef23b6f
tree9c9da153ead0686e795b503306f9d04294fe53db
parent97262708460d552e102f003cc3202b40fe744e1d

std.debug.SelfInfo.Elf: clear unwind cache when rebuilding module list


1 files changed, 3 insertions(+), 0 deletions(-)

lib/std/debug/SelfInfo/Elf.zig+3
......@@ -428,6 +428,9 @@ fn findModule(si: *SelfInfo, gpa: Allocator, io: Io, address: usize, lock: enum
428428 // Rebuild module list with the exclusive lock.
429429 {
430430 errdefer si.rwlock.unlock(io);
431 if (si.unwind_cache) |cache| {
432 @memset(cache, .empty);
433 }
431434 for (si.modules.items) |*mod| {
432435 unwind: {
433436 const u = &(mod.unwind orelse break :unwind catch break :unwind);