unexmacosx.c reads process memory directly, which tends to work in practice but is technically undefined behavior. I've attached a small patch that uses vm_read instead. According to ASan with this patch there's no more UB when dumping.