Running win32 application from shell "exits silently" but in reality crashes on load
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- powershell
- Área
- cli, operating-systems
Línea de trabajo
Comienza reproduciendo el comando de Windows PowerShell con un ejecutable nativo cuya DLL vinculada falta y, a continuación, inspecciona cómo el lanzamiento del proceso gestiona el fallo. Se considera terminado cuando invocar el ejecutable informa de un External System Error que identifica la DLL que falta, en lugar de no producir ninguna salida.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- C++
- Estrellas
- 68
- Forks
- 46
- Merge medio
- 3 d 4 h
- PR fusionados (30 d)
- 1
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de PowerShell/PowerShell-Native
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
PowerShell/PowerShell-Native#116 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 45/100
PowerShell/PowerShell-Native#103 ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
PowerShell/PowerShell-Native#76 · 2 comentarios · 1 reacción ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
PowerShell/PowerShell-Native#65 · 1 comentario ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
Todos los issues de PowerShell/PowerShell-Native
Issues similares
-
Website Doc Typo Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 92/100
autowarefoundation/autoware_universe#13413 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
automated-analysis bug memory-safety
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100