[nix-shell:~/dev/zig/build-with-make]$ gdb ./zig -ex 'set follow-fork child' -ex 'run test ../docgen_tmp/test.zig -target x86_64-windows' GNU gdb (GDB) 8.3.1 Copyright (C) 2019 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./zig... Starting program: /home/andy/dev/zig/build-with-make/zig test ../docgen_tmp/test.zig -target x86_64-windows [Thread debugging using libthread_db enabled] Using host libthread_db library "/nix/store/xg6ilb9g9zhi2zg1dpi4zcp288rhnvns-glibc-2.30/lib/libthread_db.so.1". [New Thread 0x7ffff771b700 (LWP 29602)] [New Thread 0x7ffff6f1a700 (LWP 29603)] [New Thread 0x7ffff6719700 (LWP 29604)] [New Thread 0x7ffff5f18700 (LWP 29605)] [New Thread 0x7ffff5717700 (LWP 29606)] [New Thread 0x7ffff4f16700 (LWP 29607)] [New Thread 0x7fffdffff700 (LWP 29608)] [New Thread 0x7fffdf7fe700 (LWP 29609)] [New Thread 0x7fffdeffd700 (LWP 29610)] [New Thread 0x7fffde7fc700 (LWP 29611)] [New Thread 0x7fffddffb700 (LWP 29612)] [New Thread 0x7fffdd7fa700 (LWP 29613)] [New Thread 0x7fffdcff9700 (LWP 29614)] [New Thread 0x7fffc3fff700 (LWP 29615)] [New Thread 0x7fffc37fe700 (LWP 29616)] [New Thread 0x7fffc2ffd700 (LWP 29617)] [Attaching after Thread 0x7ffff7a856c0 (LWP 29598) fork to child process 29618] [New inferior 2 (process 29618)] [Detaching after fork from parent process 29598] [Inferior 1 (process 29598) detached] [Thread debugging using libthread_db enabled] Using host libthread_db library "/nix/store/xg6ilb9g9zhi2zg1dpi4zcp288rhnvns-glibc-2.30/lib/libthread_db.so.1". ^C Thread 2.1 "zig" received signal SIGINT, Interrupt. [Switching to Thread 0x7ffff7a856c0 (LWP 29618)] 0x00007ffff7f90442 in pthread_cond_broadcast@@GLIBC_2.3.2 () from /nix/store/xg6ilb9g9zhi2zg1dpi4zcp288rhnvns-glibc-2.30/lib/libpthread.so.0 (gdb) bt #0 0x00007ffff7f90442 in pthread_cond_broadcast@@GLIBC_2.3.2 () from /nix/store/xg6ilb9g9zhi2zg1dpi4zcp288rhnvns-glibc-2.30/lib/libpthread.so.0 #1 0x00007ffff7d308a9 in std::condition_variable::notify_all() () from /nix/store/danv012gh0aakh8xnk2b35vahklz72mk-gcc-9.2.0-lib/lib/libstdc++.so.6 #2 0x0000000005f49580 in llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::~ThreadPoolExecutor() () #3 0x0000000005f49791 in std::unique_ptr >::~unique_ptr() () #4 0x00007ffff7ac0477 in __run_exit_handlers () from /nix/store/xg6ilb9g9zhi2zg1dpi4zcp288rhnvns-glibc-2.30/lib/libc.so.6 #5 0x00007ffff7ac062a in exit () from /nix/store/xg6ilb9g9zhi2zg1dpi4zcp288rhnvns-glibc-2.30/lib/libc.so.6 #6 0x0000000000a489e5 in std.os.exit (status=1 '\001') at /home/andy/dev/zig/lib/std/os.zig:273 #7 0x0000000000dc9120 in std.child_process.forkChildErrReport (fd=11, err=InvalidExe) at /home/andy/dev/zig/lib/std/child_process.zig:819 #8 0x0000000000cc5197 in std.child_process.ChildProcess.spawnPosix (self=0x84a05c0) at /home/andy/dev/zig/lib/std/child_process.zig:442 #9 0x0000000000bd3c29 in std.child_process.ChildProcess.spawn (self=0x84a05c0) at /home/andy/dev/zig/lib/std/child_process.zig:133 #10 0x0000000000ad357a in std.child_process.ChildProcess.spawnAndWait (self=0x84a05c0) at /home/andy/dev/zig/lib/std/child_process.zig:138 #11 0x0000000000a7162e in main.buildOutputType (gpa=0x814fc78 , arena=0x7fffffff9828, all_args=..., arg_mode=...) at /home/andy/dev/zig/src/main.zig:1639 #12 0x0000000000a4ab24 in main.mainArgs (gpa=0x814fc78 , arena=0x7fffffff9828, args=...) at /home/andy/dev/zig/src/main.zig:132 #13 0x0000000000a4a5fb in main (argc=5, argv=0x7fffffff9a58) at /home/andy/dev/zig/src/stage1.zig:42 (gdb) up #1 0x00007ffff7d308a9 in std::condition_variable::notify_all() () from /nix/store/danv012gh0aakh8xnk2b35vahklz72mk-gcc-9.2.0-lib/lib/libstdc++.so.6 (gdb) #2 0x0000000005f49580 in llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::~ThreadPoolExecutor() () (gdb) #3 0x0000000005f49791 in std::unique_ptr >::~unique_ptr() () (gdb) #4 0x00007ffff7ac0477 in __run_exit_handlers () from /nix/store/xg6ilb9g9zhi2zg1dpi4zcp288rhnvns-glibc-2.30/lib/libc.so.6 (gdb) #5 0x00007ffff7ac062a in exit () from /nix/store/xg6ilb9g9zhi2zg1dpi4zcp288rhnvns-glibc-2.30/lib/libc.so.6 (gdb) #6 0x0000000000a489e5 in std.os.exit (status=1 '\001') at /home/andy/dev/zig/lib/std/os.zig:273 273 system.exit(status); (gdb) #7 0x0000000000dc9120 in std.child_process.forkChildErrReport (fd=11, err=InvalidExe) at /home/andy/dev/zig/lib/std/child_process.zig:819 819 os.exit(1); (gdb)