Running win32 application from shell "exits silently" but in reality crashes on load
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- powershell
- 领域
- cli, operating-systems
调研方向
首先,使用缺少其链接 DLL 的本机可执行文件重现 Windows PowerShell 命令,然后检查进程启动如何处理该失败。完成的标准是调用该可执行文件时报告一个能识别缺失 DLL 的 External System Error,而不是不产生任何输出。
由索引模型根据 Issue 内容生成。
描述
So I ran into an issue where an application unexpectedly would no longer launch when called directly from the shell, i.e. ".\appname.exe"
After troubleshooting for a bit with my trusty old friend Process Monitor, I could see the process opening and closing down again, looking at the Process Exit event, I saw the exit code of -1073741515 (aka. 0xC0000135, aka. STATUS_DLL_NOT_FOUND)
That was a quite easy fix, but it nagged me that I got no indication of the failure, in any other circumstance (running from cmd, double-clicking in explorer, run or even in powershell with Start-Process) a message would pop up stating a DLL was missing, and which one it was.
(I don't know if this issue extends to Linux/MacOS, or even if it can affect those platform)
Steps to reproduce
- First and foremost, a win32(native) application is needed with a linked library that's missing
- PS > .\path\to\executable.exe
Expected behavior
External System Error prompt
Actual behavior
No Output
Environment data
Name Value
---- -----
PSVersion 6.2.3
PSEdition Core
GitCommitId 6.2.3
OS Microsoft Windows 10.0.18362
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
- 主要语言
- C++
- 星标
- 68
- 派生
- 46
- 平均合并
- 3 天 4 小时
- 30 天内合并 PR
- 1
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PowerShell/PowerShell-Native 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 55/100
PowerShell/PowerShell-Native#116 ·
-
难度 1/5 1 小时以内 新手友好度 45/100
PowerShell/PowerShell-Native#103 ·
-
难度 5/5 一周以上 新手友好度 25/100
PowerShell/PowerShell-Native#76 · 2 条评论 · 1 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 52/100
PowerShell/PowerShell-Native#65 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
查看 PowerShell/PowerShell-Native 的全部 Issue
相似的 Issue
-
[BUG] 未关闭bug
难度 2/5 1-3 小时 新手友好度 85/100
eunomia-bpf/llvmbpf#51 · 1 条评论 ·
-
status:needs-triage
难度 2/5 1-3 小时 新手友好度 78/100
PX4/PX4-Autopilot#28776 ·
-
Website Doc Typo 未关闭
难度 1/5 1 小时以内 新手友好度 92/100
-
难度 1/5 1-3 小时 新手友好度 92/100
autowarefoundation/autoware_universe#13413 ·
-
难度 2/5 1-3 小时 新手友好度 88/100