[Windows] 托管子进程以 windowsHide: true 启动时失败 (0xC0000142) 并弹出模态错误对话框 #6930
Replies: 8 comments
|
补充交叉引用: 本报告与以下既有报告高度相关,怀疑为同一根因(
其中 #409 的"弹框"现象与本文完全对应,但当时未能定位到根因。本文给出了可复现的 |
|
Cross-reference: This appears to share a root cause with existing reports (managed subprocess failing
#409's "popup" symptom matches exactly, but its root cause was not identified at the |
补充证据1) DSH 会话日志中没有这条记录(已确认)我把本机四个会话的存档( 结论:该失败不会进入 DSH 会话日志。 原因应该是错误发生在子进程创建阶段, 2) 复现矩阵(单变量)环境:Windows 10 10.0.19045、Node v22.22.2、PowerShell 5.1
3) 事件日志:受影响的全是控制台程序近 30 天 五个可执行文件全部是控制台子系统程序,GUI 程序(explorer / 浏览器 / IDE)全程未受影响。 4) 注意:该缺陷是间歇的,不是稳定复现同一探针在较宽松的文件策略下重跑时,每一行都返回 0 且无对话框。 附件 |
附注:证据来源与核查边界本报告的排查过程在一个 DSH 会话内完成,报告人为非专业开发人员。
|
|
先给结论:你的因果链方向是对的——托管子进程在 Windows 上确实无条件以 证据(HEAD = ddefc45,v0.1.6-alpha.2):
一点需要补充区分:你的裸 临时可用选项(都有源码依据):
如果方便,把“默认策略 vs 宽松策略”下同一条探针的结果(并注明是否在 DSH 拉起的 pwsh 内执行)贴出来,能进一步圈定是受限令牌还是宿主注入问题。 |
|
@PerryLink Thanks — I checked your source citations and your "this is a documented 1) The comparison matrix you asked for (single session)Environment: Windows 10.0.19045, Node v22.22.2, DSH 0.1.5-rc.1 (the reported version),
The escalation is per-command and the session reverted to the default policy afterwards 2) Correction one: this is not a "bare spawnSync"; no host-injection hypothesis neededYou wrote that my bare 3) Correction two: my own report — it is not intermittentIn item 4 of the original report I wrote that the defect is intermittent rather than One more observation: neither policy produced any 4) Additional evidence you did not mention, which supports your conclusionAt HEAD (ddefc45, v0.1.6-alpha.2), commit f8b1309 "fix(subprocess): hide Windows shell
So the maintainers already implemented 0.1.6-alpha.2 under exactly the constraint you 5) One question I would like you to confirmGiven that restricted token + Probe script and both runs attached. |
|
windowsHide-matrix.md |
|
The danger-full-access attachment kept failing to upload, so here is that result |
Uh oh!
There was an error while loading. Please reload this page.
DSH-issue-windowsHide-0xC0000142.md


环境
0.1.5-rc.1npx @deepseek-ai/dsh+dsh web --port 3080pwsh问题描述
在 Windows 上,
dsh-subprocess-local以windowsHide: true启动托管子进程时,子进程无法完成初始化,以退出码0xC0000142(STATUS_DLL_INIT_FAILED) 失败。失败进程会弹出系统级模态对话框:
同一可执行文件、同一参数,仅把
windowsHide改为false即稳定成功。唯一变量是这一个布尔值。最小复现
All reactions