From e4a7b15852f1bfa9d4106164e5b7de0f1a877c3a Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 23 Aug 2025 13:48:10 -0700 Subject: [PATCH] disable stack tracing on powerpc64 tracked by #24970 --- lib/std/debug.zig | 5 +++++ 1 file changed, 5 insertions(+) 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| {