Skip to content

std.zig: finish updating to new I/O API#24488

Merged
andrewrk merged 10 commits intomasterfrom
more
Jul 20, 2025
Merged

std.zig: finish updating to new I/O API#24488
andrewrk merged 10 commits intomasterfrom
more

Conversation

@andrewrk
Copy link
Member

No description provided.

@andrewrk andrewrk force-pushed the more branch 9 times, most recently from 6c397e0 to 7c7e081 Compare July 19, 2025 00:58
@andrewrk andrewrk enabled auto-merge July 19, 2025 06:52
@andrewrk
Copy link
Member Author

it's stuck waiting for qemu to execute big endian stuff:

ci       4186063  0.0  0.0 2195808 17944 ?       Sl   Jul19   0:00                      \_ stage3-debug/bin/zig build test docs --maxrss 21000000000 -Dlldb=/home/ci/deps/lldb-zig/Debug-e0a42bb34/bin/lldb -fqemu -fwasmtime -Dstatic-llvm -Dskip-freebsd -Dskip-netbsd -Dskip-windows -Dskip-macos -Dtarget=native-native-musl --search-prefix /home/ci/deps/zig+llvm+lld+clang-x86_64-linux-musl-0.15.0-dev.233+7c85dc460 --zig-lib-dir /home/ci/actions-runner5/_work/zig/zig/build-debug-llvm/../lib -Denable-superhtml
ci       4186096  0.6  0.5 1551104 717280 ?      Sl   Jul19   2:58                          \_ /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/2ca3b1b0080d2e77aa3de333954c8cdd/build /home/ci/actions-runner5/_work/zig/zig/build-debug-llvm/stage3-debug/bin/zig /home/ci/actions-runner5/_work/zig/zig/lib /home/ci/actions-runner5/_work/zig/zig /home/ci/actions-runner5/_work/zig/zig/zig-local-cache /home/ci/actions-runner5/_work/zig/zig/zig-global-cache --seed 0x1a85ed -Z14b502218bf61a6e test docs --maxrss 21000000000 -Dlldb=/home/ci/deps/lldb-zig/Debug-e0a42bb34/bin/lldb -fqemu -fwasmtime -Dstatic-llvm -Dskip-freebsd -Dskip-netbsd -Dskip-windows -Dskip-macos -Dtarget=native-native-musl --search-prefix /home/ci/deps/zig+llvm+lld+clang-x86_64-linux-musl-0.15.0-dev.233+7c85dc460 -Denable-superhtml
ci          8153  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci          9064  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci         10081  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci         10380  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci         10382  0.0  0.0 2233504 4336 ?        Sl   Jul19   0:00                              \_ qemu-mips /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/12aeea12bd21b0aff7ab473d8d6afb79/test-c-abi-mips-linux-musleabi-mips32r2-ReleaseFast --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci         34060  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci         35015  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci         36014  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci         36022  0.0  0.0 4330944 5012 ?        Sl   Jul19   0:00                              \_ qemu-ppc /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/f23853a025be60944076fe4a1a4e63a6/test-c-abi-powerpc-linux-musleabihf-ppc-Debug --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        161704  0.0  0.0 2233668 4500 ?        Sl   Jul19   0:00                              \_ qemu-mips /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/af36430536cdc45df0960fb5c6b63845/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        161724  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        161727  0.0  0.0 2233664 5132 ?        Sl   Jul19   0:00                              \_ qemu-mips /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/9017bb1258500afb43994738978cd215/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        161730  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        161768  0.0  0.0 185204  4088 ?        Sl   Jul19   0:00                              \_ qemu-mips64 /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/e044f911f278f7670cb45c64f5fe2f19/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        161949  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        162105  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        162107  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        162110  0.0  0.0 187648  5848 ?        Sl   Jul19   0:00                              \_ qemu-aarch64_be /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/d487124a69465757cde5987b23fcccd6/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        162130  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        162133  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        162136  0.0  0.0 4331332 4816 ?        Sl   Jul19   0:00                              \_ qemu-armeb /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/5b4dd9da678c8b643b9fd1f5df923604/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        162153  0.0  0.0 4331292 4872 ?        Sl   Jul19   0:00                              \_ qemu-armeb /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/450ec0bf69e683f72a85dff38eedef8c/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        162360  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        162366  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        162378  0.0  0.0 4330904 4388 ?        Sl   Jul19   0:00                              \_ qemu-ppc /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/7f1c43d02926169509f84efe9ad9c085/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        162697  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        162711  0.0  0.0 4330904 4368 ?        Sl   Jul19   0:00                              \_ qemu-ppc /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/871d574bee674b1e596eebec9cee518a/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        162872  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        163116  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        163306  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        164319  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        164969  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        165314  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        165338  0.0  0.0 185312  4532 ?        Sl   Jul19   0:00                              \_ qemu-ppc64 /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/1fceaac60e2ad5b01099f1f78d115706/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        165533  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        165556  0.0  0.0 4331340 5552 ?        Sl   Jul19   0:00                              \_ qemu-armeb /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/223f942d9967da0e233b5cef207a9f6e/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        165782  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        166036  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        166192  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        166215  0.0  0.0 184492  4576 ?        Sl   Jul19   0:00                              \_ qemu-s390x /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/f45c90ea48ee7f0665eecd1e23ded8e7/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        166243  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        166467  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        166768  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        166784  0.0  0.0 4331324 4788 ?        Sl   Jul19   0:00                              \_ qemu-armeb /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/72d6a6def7bfa10dfa76eca2a789abae/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        167175  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        167198  0.0  0.0 4331332 5244 ?        Sl   Jul19   0:00                              \_ qemu-armeb /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/64e2bf8880804e04a048cbbf2939a60b/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        167447  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        169455  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        170814  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        171866  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        172626  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        172676  0.0  0.0 185340  4944 ?        Sl   Jul19   0:00                              \_ qemu-mips64 /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/516f56af1242a2a2a287ea2de236a6ad/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        183491  0.0  0.0 4330900 4260 ?        Sl   Jul19   0:00                              \_ qemu-ppc /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/1c20f734010a1ebedacaf2809636fa0c/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        183510  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        183587  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        183795  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        184037  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        184932  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        185858  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        185860  0.0  0.0 187856  5440 ?        Sl   Jul19   0:00                              \_ qemu-aarch64_be /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/e3b9359b501e4c0e073cb3fb154c09e9/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        185879  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        185899  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        186232  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        187473  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        188116  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        188121  0.0  0.0 4331372 4696 ?        Sl   Jul19   0:00                              \_ qemu-armeb /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/bed8a3baad6f1bc43f061d6f873a1983/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        188257  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        188259  0.0  0.0 4331332 4724 ?        Sl   Jul19   0:00                              \_ qemu-armeb /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/8c9820db2250967f3ccf2856ba0d10d7/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        189255  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        189413  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        189415  0.0  0.0 2233824 2572 ?        Sl   Jul19   0:00                              \_ qemu-mipsn32 /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/7812bef11c6279ebea65d29f52fa8cfb/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        189435  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        189591  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        189593  0.0  0.0 4331380 4764 ?        Sl   Jul19   0:00                              \_ qemu-armeb /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/e5e822f8ba9bdd8248c83ed0d1f2c7bc/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        189619  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        189807  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        189868  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        189928  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        189992  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        189994  0.0  0.0 187760  5380 ?        Sl   Jul19   0:00                              \_ qemu-aarch64_be /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/d6093bab19d2dc8e30bc8b7229dab497/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        928032  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        931966  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        931972  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        947567  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        947569  0.0  0.0 4331760 10632 ?       Sl   Jul19   0:00                              \_ qemu-armeb /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/a8d09510253971e0eff4328080cb5f14/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        947591  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        947736  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        951385  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        951441  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        951534  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        951538  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        951540  0.0  0.0 4331752 11452 ?       Sl   Jul19   0:00                              \_ qemu-armeb /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/59d291e9905bc7b1cac2a780095dcc1a/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-
ci        951560  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        951742  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        953421  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        953490  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        953557  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        953833  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        958802  0.0  0.0      0     0 ?        Z    Jul19   0:00                              \_ [build] <defunct>
ci        958804  0.0  0.0 2234104 7924 ?        Sl   Jul19   0:00                              \_ qemu-mips /home/ci/actions-runner5/_work/zig/zig/zig-local-cache/o/c0e44a3b103bb537596502ef1db1a4ef/test --cache-dir=/home/ci/actions-runner5/_work/zig/zig/zig-local-cache --seed=0x1a85ed --listen=-

@alexrp
Copy link
Member

alexrp commented Jul 20, 2025

Assuming this is a legitimate bug in your code and not a qemu bug, grab one of the command lines above and add e.g. -g 1234 before the path to the executable. Then run gdb and type target remote :1234 followed by c. You should now be able to Ctrl-C when it appears to be stuck.

@andrewrk
Copy link
Member Author

it's not quiiite so simple, since it needs the parent process to participate in order to repro. but I have it reproing locally so just a matter of time before I solve it.

tried to be too clever, wrote bad code
@andrewrk andrewrk merged commit 8373788 into master Jul 20, 2025
10 checks passed
@andrewrk andrewrk deleted the more branch July 20, 2025 09:24
@antlilja antlilja mentioned this pull request Jul 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants