/zig/build # valgrind ./zig build --override-lib-dir /zig/lib -Dlib-files-only --prefix /zig/dist instal l ==633== Memcheck, a memory error detector ==633== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==633== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info ==633== Command: ./zig build --override-lib-dir /zig/lib -Dlib-files-only --prefix /zig/dist install ==633== LLVM Emit Output...terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc ==633== ==633== Process terminating with default action of signal 6 (SIGABRT): dumping core ==633== at 0x768BA90: ??? (in /lib/ld-musl-aarch64.so.1) ==633== ==633== HEAP SUMMARY: ==633== in use at exit: 577,170,016 bytes in 7,460,436 blocks ==633== total heap usage: 10,231,596 allocs, 2,771,160 frees, 1,104,144,606 bytes allocated ==633== ==633== LEAK SUMMARY: ==633== definitely lost: 100,909,955 bytes in 1,611,610 blocks ==633== indirectly lost: 167,345,703 bytes in 2,419,557 blocks ==633== possibly lost: 63,282,493 bytes in 387,362 blocks ==633== still reachable: 245,631,865 bytes in 3,041,907 blocks ==633== of which reachable via heuristic: ==633== newarray : 2,600 bytes in 1 blocks ==633== multipleinheritance: 416 bytes in 1 blocks ==633== suppressed: 0 bytes in 0 blocks ==633== Rerun with --leak-check=full to see details of leaked memory ==633== ==633== For lists of detected and suppressed errors, rerun with: -s ==633== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) Aborted (core dumped)