Commit e4a7b15852

Andrew Kelley <andrew@ziglang.org>
2025-08-23 22:48:10
disable stack tracing on powerpc64
tracked by #24970
1 parent d00cc10
Changed files (1)
lib
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| {