zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 28623544ce78c5c559af8a47c62e688db9ce5e4a (tree)
parent a56749b654bbe432752a57e130c7cf9dda370a15
Author: Jakub Konka <kubkon@jakubkonka.com>
Date:   Tue, 30 Nov 2021 16:48:49 +0100

macos: remove >= 0x10000000 assertion when printing stack traces

I don't think we can guarantee that especially for system dyld
dylibs which can be loaded at any address (perhaps even some
OS preferential low memory address).

Incidentally, this fixes stack trace tests on x86_64 macOS 12.

Diffstat:
Mlib/std/debug.zig | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/lib/std/debug.zig b/lib/std/debug.zig @@ -1412,7 +1412,6 @@ pub const ModuleDebugInfo = switch (native_os) { nosuspend { // Translate the VA into an address into this object const relocated_address = address - self.base_address; - assert(relocated_address >= 0x100000000); // Find the .o file where this symbol is defined const symbol = machoSearchSymbols(self.symbols, relocated_address) orelse