#Ideas for SIGPIPE of build+run Zig in debug and release in parallel on standalone child process

1 messages · Page 1 of 1 (latest)

radiant umbra
#

Does anybody have ideas on how a pipe could fail on Linux with SIGPIPE in zig release, if build+run Zig in debug and release in parallel, but not sequentially or only run them?
The failure occurs on the reading stdin in the child process.

#

#!/bin/sh

ZIGCACHE=$(fd -uu zig-cache) && rm -fr $ZIGCACHE && fd -uu zig-cache # uncomment to reproduce error

strace -ff ./build/stage3/bin/zig build -Dtest-filter=test/standalone/child_process/build.zig test-standalone &> debug.strace & strace -ff ./buildrel/stage3/bin/zig build -Dtest-filter=test/standalone/child_process/build.zig test-standalone &> release.strace

with https://github.com/ziglang/zig/pull/13042 (or rebased against master)

GitHub

67d5bfe removed std.ChildProcess tests, suggesting to make them standalone instead. this commit does exactly that.