This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Development/source/zig/zig-cache/o/3ca597d385a916d1c8f069ebddc5d4ea/build /Development/source/zig/build/zig2 /Development/source/zig /Development/source/zig/zig-cache /boot/home/config/cache/zig --zig-lib-dir /Development/source/zig | |
/lib -Dconfig_h=/Development/source/zig/build/config.h -Denable-llvm -Denable-stage1 -Dtarget=native -Dcpu=native -Dversion-string=0.10.2-dev.1+342067526 --prefix /boot/home/testing | |
thread 11125 panic: index out of bounds: index 43690, len 1024 | |
???:?:?: 0x2ddcc9 in ??? (???) | |
???:?:?: 0x3811b6 in ??? (???) | |
???:?:?: 0x34f596 in ??? (???) | |
???:?:?: 0x2b7298 in ??? (???) | |
???:?:?: 0x28bc07 in ??? (???) | |
???:?:?: 0x28bb2e in ??? (???) | |
???:?:?: 0x28b7a3 in ??? (???) | |
???:?:?: 0x28eed7 in ??? (???) | |
???:?:?: 0x2929e8 in ??? (???) | |
???:?:?: 0x28256e in ??? (???) | |
dl_iterate_phdr: dlpi_name: /boot/system/runtime_loader | |
attempting to open file in cwd: 'en: 27 <== somehow corrupted exiting dl_iterate_phdr?? | |
Panicked during a panic. Aborting. | |
Abort | |
Kill Thread |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (os.dl_iterate_phdr(&ctx, error{Found}, struct { | |
fn callback(info: *os.dl_phdr_info, size: usize, context: *CtxTy) !void { | |
_ = size; | |
// The base address is too high | |
if (context.address < info.dlpi_addr) | |
return; | |
const phdrs = info.dlpi_phdr[0..info.dlpi_phnum]; | |
for (phdrs) |*phdr| { | |
if (phdr.p_type != elf.PT_LOAD) continue; | |
const seg_start = info.dlpi_addr + phdr.p_vaddr; | |
const seg_end = seg_start + phdr.p_memsz; | |
if (context.address >= seg_start and context.address < seg_end) { | |
// Android libc uses NULL instead of an empty string to mark the | |
// main program | |
std.debug.print("dl_iterate_phdr: dlpi_name: {?s}\n", .{info.dlpi_name}); | |
context.name = mem.sliceTo(info.dlpi_name, 0) orelse ""; | |
context.base_address = info.dlpi_addr; | |
// Stop the iteration | |
return error.Found; | |
} | |
} | |
} | |
}.callback)) { | |
return error.MissingDebugInfo; | |
} else |err| switch (err) { | |
error.Found => {}, | |
} | |
if (self.address_map.get(ctx.base_address)) |obj_di| { | |
return obj_di; | |
} | |
const obj_di = try self.allocator.create(ModuleDebugInfo); | |
errdefer self.allocator.destroy(obj_di); | |
// TODO https://github.com/ziglang/zig/issues/5525 | |
if (ctx.name.len > 0) { | |
std.debug.print("attempting to open file in cwd: '{s}', len: {d}\n", .{ctx.name, ctx.name.len}); | |
} else { | |
std.debug.print("opening self exe\n", .{}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Debug information for team /Development/source/zig/zig-cache/o/3ca597d385a916d1c8f069ebddc5d4ea/build (11041): | |
CPU(s): 4x Intel Core™ i7-8705G | |
Memory: 15.98 GiB total, 1.39 GiB used | |
Haiku revision: hrev56724 Jan 25 2023 07:13:48 (x86_64) | |
Active Threads: | |
thread 11042: team 11041 debug task | |
thread 11041: build (main) | |
state: Call (abort() called) | |
Frame IP Function Name | |
----------------------------------------------- | |
00000000 0x1969fd3a0a7 _kern_debugger + 0x7 | |
Disassembly: | |
_kern_debugger: | |
0x000001969fd3a0a0: 48c7c0e5000000 mov $0xe5, %rax | |
0x000001969fd3a0a7: 0f05 syscall <-- | |
0x7f366c2d5b30 0x1969fd31ffb abort + 0x4a | |
0x7f366c2d5b30 0x2a3dc4 fmt.format(, , , , , ) + 0x124 | |
0x7f366c2d5d70 0x2931de mem.boyerMooreHorspoolPreprocess + 0x17e | |
0x7f366c2d5de0 0x282945 zig.system.x86.detectAMDProcessor + 0x255 | |
0x7f366c2d5e00 0x287512 fmt.formatType(, , , , , ) + 0x112 | |
0x7f366c2d6670 0x2b6a80 log.defaultLog(, , , , , ) + 0x110 | |
0x7f366c2d72f0 0x2a10da test.tests.StackTracesContext.addCase(, , , , , ) + 0x19a | |
0x7f366c2d75d0 0x2b7dfc log.defaultLog(, , , , , ) + 0x14c | |
0x7f366c2d7630 0x2b7a66 log.defaultLog(, , , , , ) + 0x76 | |
0x7f366c2d77f0 0x2d586b os.dup2 + 0x1b | |
0x7f366c2d78c0 0x2ffaf0 build.Builder.updateFile + 0x170 | |
0x7f366c2d7a70 0x2d659e os.openZ + 0x4ae | |
0x7f366c2d7cb0 0x29310f mem.boyerMooreHorspoolPreprocess + 0xaf | |
0x7f366c2d7d20 0x282945 zig.system.x86.detectAMDProcessor + 0x255 | |
0x7f366c2d8ee0 0x292f1a mem.indexOfPosLinear(, , , , , ) + 0x19a | |
0x7f366c2d8f20 0x2827f0 zig.system.x86.detectAMDProcessor + 0x100 | |
0x7f366c2d9140 0x2ddcc5 fmt.allocPrint(, , , , , ) + 0x1a5 | |
0x7f366c2da570 0x3811b2 roundf + 0x42 | |
0x7f366c2da990 0x34f592 os.writev + 0x532 | |
0x7f366c2da9d0 0x2b7296 log.defaultLog(, , , , , ) + 0xe6 | |
0x7f366c2daa90 0x28bc03 build.LibExeObjStep.initExtraArgs + 0x5c3 | |
0x7f366c2dab50 0x28bb2a build.LibExeObjStep.initExtraArgs + 0x4ea | |
0x7f366c2dacb0 0x28b79f build.LibExeObjStep.initExtraArgs + 0x15f | |
0x7f366c2db810 0x28eed3 zig.binNameAlloc + 0x13b3 | |
0x7f366c2dba70 0x2929e4 child_process.ChildProcess.cleanupAfterWait + 0x114 | |
0x7f366c2dbaa0 0x28256a zig.system.x86.detectIntelProcessor + 0x4da | |
0x7f366c2dbae0 0x8ca6136ae3 runtime_loader + 0x103 | |
00000000 0x7fff53483258 commpage_thread_exit + 0 | |
Registers: | |
rip: 0x000001969fd3a0a9 | |
rsp: 0x00007f366c2d5af8 | |
rbp: 0x00007f366c2d5b20 | |
rax: 0x00000000000000e5 | |
rbx: 0x00000089f32b46be | |
rcx: 0x000001969fd3a0a9 | |
rdx: 0x00007f366c2d5600 | |
rsi: 0x00007f366c2d5600 | |
rdi: 0x000001969fdee5cc | |
r8: 0x0000000000002b21 | |
r9: 0x00007f366c2d5560 | |
r10: 0x0000000000000000 | |
r11: 0x0000000000000202 | |
r12: 0x00007f366c2dc648 | |
r13: 0x000000000000000f | |
r14: 0x0000000000000017 | |
r15: 0x0000000000000000 | |
cs: 0x002b | |
ds: 0x0000 | |
es: 0x0000 | |
fs: 0x0000 | |
gs: 0x0000 | |
ss: 0x0023 | |
st0: 0 | |
st1: 0 | |
st2: 0 | |
st3: 0 | |
st4: 0 | |
st5: 0 | |
st6: 0 | |
st7: 0 | |
mm0: {0, 0, 0, 0} | |
mm1: {0, 0, 0, 0} | |
mm2: {0, 0, 0, 0} | |
mm3: {0, 0, 0, 0} | |
mm4: {0, 0, 0, 0} | |
mm5: {0, 0, 0, 0} | |
mm6: {0, 0, 0, 0} | |
mm7: {0, 0, 0, 0} | |
ymm0: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} | |
ymm1: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} | |
ymm2: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} | |
ymm3: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} | |
ymm4: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} | |
ymm5: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} | |
ymm6: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} | |
ymm7: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} | |
ymm8: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} | |
ymm9: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} | |
ymm10: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} | |
ymm11: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} | |
ymm12: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} | |
ymm13: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} | |
ymm14: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} | |
ymm15: {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} | |
Loaded Images: | |
ID Text Base Text End Data Base Data End Type Name | |
-------------------------------------------------------------------------------- | |
81553 0x00200000 0x00409000 0x00409000 0x0045d000 app /Development/source/zig/zig-cache/o/3ca597d385a916d1c8f069ebddc5d4ea/build | |
81552 0x8ca6127000 0x8ca6144000 0x8ca6344000 0x8ca6345000 lib /boot/system/runtime_loader | |
81555 0x1173a7be000 0x1173a7c7000 0x1173a9c7000 0x1173a9c8000 lib /boot/system/lib/libbsd.so | |
81554 0x1969fcfa000 0x1969fe0d000 0x196a000c000 0x196a005f000 lib /boot/system/lib/libroot.so | |
81556 0x2155efde000 0x2155eff4000 0x2155f1f4000 0x2155f1f5000 lib /boot/system/lib/libgcc_s.so.1 | |
81551 0x7fff53483000 0x7fff5348b000 0x00000000 0x00000000 system commpage | |
Areas: | |
ID Base End Size (KiB) Protection Locking Name | |
-------------------------------------------------------------------------------- | |
276228 0x00200000 0x00282000 520 r-x none build_seg0ro | |
276229 0x00282000 0x00409000 1564 r-x none build_seg1ro | |
276230 0x00409000 0x00453000 296 rw- none build_seg2rw | |
276231 0x00453000 0x0045c000 36 rw- none build_seg3rw | |
276232 0x0045c000 0x0045d000 4 rw- none build_seg4rw | |
276226 0x3a5fc33000 0x3a5fc43000 64 rw- none rld heap | |
276227 0x869d326000 0x869d327000 4 rw-cS none _rld_debug_ | |
276298 0x89f32b4000 0x89f32b5000 4 rw- none build mmap area | |
276299 0x89f32b5000 0x89f32b8000 12 rw- none build mmap area | |
276300 0x89f32b8000 0x89f32be000 24 rw- none build mmap area | |
276301 0x89f32be000 0x89f32c8000 40 rw- none build mmap area | |
276302 0x89f32c8000 0x89f32d9000 68 rw- none build mmap area | |
276392 0x89f32d9000 0x89f32f4000 108 rw- none build mmap area | |
276397 0x89f32f4000 0x89f331e000 168 rw- none build mmap area | |
276398 0x89f331e000 0x89f335e000 256 rw- none build mmap area | |
276399 0x89f335e000 0x89f33bf000 388 rw- none build mmap area | |
276400 0x89f33bf000 0x89f3451000 584 rw- none build mmap area | |
276401 0x89f3451000 0x89f352d000 880 rw- none build mmap area | |
276402 0x89f352d000 0x89f352e000 4 rw- none build mmap area | |
276224 0x8ca6127000 0x8ca6144000 116 r-x none runtime_loader_seg0ro | |
276225 0x8ca6344000 0x8ca6345000 4 rw- none runtime_loader_seg1rw | |
276236 0x1173a7be000 0x1173a7c7000 36 r-x none libbsd.so_seg0ro | |
276237 0x1173a9c7000 0x1173a9c8000 4 rw- none libbsd.so_seg1rw | |
276233 0x1969fcfa000 0x1969fe0d000 1100 r-x none libroot.so_seg0ro | |
276234 0x196a000c000 0x196a001a000 56 rw- none libroot.so_seg1rw | |
276235 0x196a001a000 0x196a005f000 276 rw- none libroot.so_seg2rw | |
276238 0x2155efde000 0x2155eff4000 88 r-x none libgcc_s.so.1_seg0ro | |
276239 0x2155f1f4000 0x2155f1f5000 4 rw- none libgcc_s.so.1_seg1rw | |
276297 0x113bbb475000 0x113bbb4c5000 320 rw- none heap | |
276222 0x7f366b2dc000 0x7f366c2de000 16392 rw-s none build_11041_stack | |
276220 0x7f44422f9000 0x7f44422fd000 16 rw-k full user area | |
276223 0x7fff53483000 0x7fff5348b000 32 r-xSk full commpage | |
Protection Flags: r - read, w - write, x - execute, s - stack, o - overcommit, c - cloneable, S - shared, k - kernel | |
Semaphores: | |
ID Count Last Holder Name | |
------------------------------------------------------------ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment