From 8211be2754dc2051ab59f154c7d6f69f9e9de6de Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Wed, 30 Apr 2025 14:57:09 +0200 Subject: [PATCH 1/2] build: add strace output to test_race.sh script --- contrib/test_race.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/test_race.sh b/contrib/test_race.sh index a2a4b09..aa43f1e 100755 --- a/contrib/test_race.sh +++ b/contrib/test_race.sh @@ -9,5 +9,9 @@ fi for i in {1..60}; do echo "running $i ..." - flow --exec quit "$@" || exit 1 + # flow --exec quit "$@" || exit 1 + strace -f -t \ + -e trace=open,openat,close,socket,pipe,pipe2,dup,dup2,dup3,fcntl,accept,accept4,epoll_create,epoll_create1,eventfd,timerfd_create,signalfd,execve,fork \ + -o trace.log \ + flow --exec quit --trace-level 9 "$@" done From 5b077a858165e1edbbdc0c4751ca98d4afb8a337 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Wed, 30 Apr 2025 16:09:17 +0200 Subject: [PATCH 2/2] fix: update thespian to fix subprocess file descriptor race Thespian uses asio which was double closing stdout and stderr file descriptors of subprocesses. closes #240 --- build.zig.zon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.zig.zon b/build.zig.zon index 284c2cc..0b80d66 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -15,8 +15,8 @@ .hash = "dizzy-1.0.0-AAAAAM1wAAAiDbx_6RwcVEOBk8p2XOu8t9WPNc3K7kBK", }, .thespian = .{ - .url = "https://github.com/neurocyte/thespian/archive/42a98a44e7590fd6e952b75523e5c0f4fa0e6c97.tar.gz", - .hash = "thespian-0.0.1-owFOjnUTBgBUlBtQ-SbN_6S7bXE6e2mKmCgk4A-RGBMA", + .url = "https://github.com/neurocyte/thespian/archive/a7b2354ad2fbe9d2b3629a455f2e823b463c18eb.tar.gz", + .hash = "thespian-0.0.1-owFOjosTBgAgvY4TcT_xI30QsbU8cE_tAUu_HoxoTjMV", }, .themes = .{ .url = "https://github.com/neurocyte/flow-themes/releases/download/master-ac2e3fe2df3419b71276f86fa9c45fd39d668f23/flow-themes.tar.gz",