Bug 3105 - When processing the command parameter, stderr output results in Packet Integrity Error
Summary: When processing the command parameter, stderr output results in Packet Integr...
Status: CLOSED INVALID
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 7.6p1
Hardware: ARM64 Windows 10
: P5 major
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-19 07:06 AEDT by Andrew.Dean
Modified: 2021-04-23 14:58 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew.Dean 2019-12-19 07:06:49 AEDT
Given this program (RepeatErr):
#include <iostream>

int main(int argc, char** argv)
{
  for (int i = 1; i < argc; ++i)
  {
    std::cout << argv[i] << std::endl;
    std::cerr << argv[i] << std::endl;
  }
  return 0;
}

Invoke it this way (ssh running on windows, x64. sshd running on windows, ARM64):
ssh -l <user> <ipAddress> "c:\Path\To\RepeatErr.exe 1 2 3"

EXPECT:
output to be 
1
2
3
1
2
3

ACTUAL:
output is
1
Packet integrity error (4 bytes remaining) at C:\\OpenSSH\\contrib\\win32\\openssh\\..\\..\\..\\channels.c:2916
Disconnecting <ipAddress> port 22: Packet integrity error.

NOTES:
sshd on ARM64 has File version 7.6.0.0, Product Version "OpenSSH_7.6p1 for Windows"

I have tried this scenario where ssh is running on Windows x64 and sshd is running on Ubuntu x64 (WSL), and I received the expected output.
Comment 1 Andrew.Dean 2019-12-19 07:38:18 AEDT
Was informed that this bug actually belonged here: https://github.com/PowerShell/Win32-OpenSSH/issues/1530
Comment 2 Damien Miller 2021-04-23 14:58:11 AEST
closing resolved bugs as of 8.6p1 release