PowerShell / PowerShell/Win32-OpenSSH
native method [OpenFileMapping] returned null.
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 8.3k
- Forks
- 819
- PR merge metrics
- No merged PRs in 30d
Description
Troubleshooting steps
https://github.com/PowerShell/Win32-OpenSSH/wiki/Troubleshooting-Steps
Terminal issue? please go through wiki
https://github.com/PowerShell/Win32-OpenSSH/wiki/TTY-PTY-support-in-Windows-OpenSSH
"OpenSSH for Windows" version
7.6.0.1
Server OperatingSystem
Windows 10 Enterprise
Client OperatingSystem
Windows 10 Enterprise
What is failing
I want to remotely execute a batch script via openssh to start a java process, for example:
cmd /c D:\batch\start.bat
It is successful.
but when i execution jps command It prompts :"-- process information unavailable"
When I traced the hotspot source code, I found out that the native method [OpenFileMapping] returned null.
why? Is it because there is no permission?
but i‘m using the same account.
so who can help me?????
Expected output
Actual output
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Troubleshooting Steps and TTY/PTY support wiki pages, then reproduce the batch-script and jps commands on the stated Windows 10 and OpenSSH 7.6.0.1 setup. Trace the OpenFileMapping failure in the Java process context and establish whether permissions or session handling cause the null result; done means a confirmed cause and documented resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, java
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100