zig icon indicating copy to clipboard operation
zig copied to clipboard

file:// urls cause zig fetch to segfault on darwin

Open Cloudef opened this issue 1 year ago • 1 comments
trafficstars

Zig Version

0.12.0-dev.2158+4f2009de1

Steps to Reproduce and Observed Behavior

git clone https://github.com/Cloudef/zig2nix.git
cd zig2nix
nix run .#zig.master -- fetch file://$PWD/tools/fixtures/file-url-test.tar.gz

Outputs:

/nix/store/iw9vh9prrl1bb1z88bddwb5sakxhfsgk-app/bin/app: line 12: 39154 Segmentation fault: 11  zig "$@"

Expected Behavior

nix run .#zig.master -- fetch file://$PWD/tools/fixtures/file-url-test.tar.gz
122026c10145ba87f30c8a88b78868bb8ae7b65968824357e132a162555b35857c68

Cloudef avatar Jan 14 '24 07:01 Cloudef

Another segfault repro: zig fetch file://<anything here>

cryptocode avatar Apr 26 '24 16:04 cryptocode