mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 21:08:36 +00:00
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.
This commit is contained in:
parent
a56749b654
commit
28623544ce
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user