Open
Description
Version: Deno 2.1.6
OS: Windows
I made a comment explaining a workaround for an issue, but I think this might deserve to be its own issue.
The TLDR is that executables compiled with --no-terminal
panic unless explicitly given file redirects. Here's an example stderr:
stderr
thread 'main' panicked at runtime\worker.rs:711:7:
Bootstrap exception: ReferenceError: null or invalid handle
at guessHandleType (ext:deno_node/internal_binding/util.ts:38:16)
at _guessStdinType (ext:deno_node/_process/streams.mjs:137:10)
at initStdin (ext:deno_node/_process/streams.mjs:162:38)
at Object.internals.__bootstrapNodeProcess (node:process:683:22)
at initialize (ext:deno_node/02_init.js:34:15)
at bootstrapMainRuntime (ext:runtime_main/js/99_main.js:892:7)
stack backtrace:
0: 0x7ff790b32885 - node_api_get_module_file_name
1: 0x7ff78fa1e649 - uv_mutex_destroy
2: 0x7ff790b11917 - node_api_get_module_file_name
3: 0x7ff790b359c1 - node_api_get_module_file_name
4: 0x7ff790b36936 - node_api_get_module_file_name
5: 0x7ff790b36396 - node_api_get_module_file_name
6: 0x7ff790b362ef - node_api_get_module_file_name
7: 0x7ff790b362d6 - node_api_get_module_file_name
8: 0x7ff79259fd84 - CrashForExceptionInNonABICompliantCodeRange
9: 0x7ff78f9763fa - uv_mutex_destroy
10: 0x7ff78f6b184d - <unknown>
11: 0x7ff78f79db95 - <unknown>
12: 0x7ff78f9bb8a5 - uv_mutex_destroy
13: 0x7ff78f80cc47 - uv_mutex_destroy
14: 0x7ff78f9a13c1 - uv_mutex_destroy
15: 0x7ff78f78fc60 - <unknown>
16: 0x7ff78f9bb987 - uv_mutex_destroy
17: 0x7ff79254d67c - CrashForExceptionInNonABICompliantCodeRange
18: 0x7ffd5c7b7c24 - BaseThreadInitThunk
19: 0x7ffd5d58d4d1 - RtlUserThreadStart
thread 'main' panicked at C:\a\deno\deno\runtime\tokio_util.rs:111:36:
called `Result::unwrap()` on an `Err` value: JoinError::Panic(Id(1), ...)
stack backtrace:
0: 0x7ff790b32885 - node_api_get_module_file_name
1: 0x7ff78fa1e649 - uv_mutex_destroy
2: 0x7ff790b11917 - node_api_get_module_file_name
3: 0x7ff790b359c1 - node_api_get_module_file_name
4: 0x7ff790b36936 - node_api_get_module_file_name
5: 0x7ff790b36396 - node_api_get_module_file_name
6: 0x7ff790b362ef - node_api_get_module_file_name
7: 0x7ff790b362d6 - node_api_get_module_file_name
8: 0x7ff79259fd84 - CrashForExceptionInNonABICompliantCodeRange
9: 0x7ff7925a01a0 - CrashForExceptionInNonABICompliantCodeRange
10: 0x7ff78f9a3630 - uv_mutex_destroy
11: 0x7ff78f78fc60 - <unknown>
12: 0x7ff78f9bb987 - uv_mutex_destroy
13: 0x7ff79254d67c - CrashForExceptionInNonABICompliantCodeRange
14: 0x7ffd5c7b7c24 - BaseThreadInitThunk
15: 0x7ffd5d58d4d1 - RtlUserThreadStart