diff --git a/lib/std/debug.zig b/lib/std/debug.zig index dd307a0254..d0ec4db1d0 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -500,6 +500,11 @@ pub fn captureStackTrace(first_address: ?usize, stack_trace: *std.builtin.StackT // TODO: This should use the DWARF unwinder if .eh_frame_hdr is available (so that full debug info parsing isn't required). // A new path for loading SelfInfo needs to be created which will only attempt to parse in-memory sections, because // stopping to load other debug info (ie. source line info) from disk here is not required for unwinding. + if (builtin.cpu.arch == .powerpc64) { + // https://github.com/ziglang/zig/issues/24970 + stack_trace.index = 0; + return; + } var it = StackIterator.init(first_address, null); defer it.deinit(); for (stack_trace.instruction_addresses, 0..) |*addr, i| {