tw4452852 / zbpf

Writing eBPF in Zig
https://tw4452852.github.io/zbpf/
GNU General Public License v3.0
120 stars 7 forks source link

Crash when building trace with `vfs_read` kprobe #5

Closed tw4452852 closed 11 months ago

tw4452852 commented 12 months ago

Build with zig build trace -Dkprobe=vfs_read:

~/code/zbpf> zig build trace -Dkprobe=vfs_read
zig build-exe trace Debug native: error: the following command terminated unexpectedly:
/home/tw/d/zig-linux-x86_64-0.12.0-dev.1396_f6de3ec96/zig build-exe /home/tw/code/zbpf/src/trace.zig /home/tw/code/zbpf/zig-cache/o/622755e807efd2c480db51436630b6a4/liblibbpf.a /home/tw/code/zbpf/zig-cache/o/30a3f549ba5c9134405ec3a121e6bbb7/libz.a /home/tw/code/zbpf/zig-cache/o/ad16f5da66aa835b62a05f040f675843/libelf.a -lc --cache-dir /home/tw/code/zbpf/zig-cache --global-cache-dir /tmp/.cache/zig --name trace --mod vmlinux::/tmp/.cache/zig/o/60ddf522d23f0673ccdec961985aa21e/vmlinux.zig --mod bpf:vmlinux:/home/tw/code/zbpf/src/bpf/root.zig --mod build_options::/home/tw/code/zbpf/zig-cache/c/20c1bd400b3e9d8af4f0f0106f1e3d98/options.zig --mod @bpf_prog::/home/tw/code/zbpf/zig-cache/o/9718690e55165c19c5c24172c9581705/trace.bpf.o --deps @bpf_prog,bpf,vmlinux,build_options -I /home/tw/code/zbpf/external/libbpf/src --listen=-

upstream issue: https://github.com/ziglang/zig/issues/17938

tw4452852 commented 11 months ago

Close as fixed in upstream.