On 11/29/2023 4:13 PM, Jose Isaias Cabrera via Cygwin wrote:
On Monday, November 27, 2023 02:46 AM, Matthias--- expressed:

Am Sonntag, dem 26.11.2023 um 12:21 -0700 schrieb Brian Inglis via Cygwin:
On 2023-11-26 10:12, Matthias--- via Cygwin wrote:
Am Samstag, dem 25.11.2023 um 19:45 +0100 schrieb ASSI via Cygwin:
Matthias--- via Cygwin writes:
Yes - That's the reason in my VM too:
     strace ssh-keygen -A

A/V is Antivirus? My VM is running Avira. Deactivating it
haven't impact on ssh-keygen. I still have
an Segmentation fault.

Pardon the high jacking of this threat, but I may have the same problem (or, at 
least, it's related). I can start another thread if it is desired...

I am having the same problem with ssh. So, a little history... This is a fresh 
Windows 11 Cygwin installation. Everything works great, except using ssh. For 
example, when I type,

jcabrera@jicman ~
$ ssh jic@web

jcabrera@jicman ~
$

I get the prompt right away. I found out that Windows 11 comes with OpenSSH 
installed. I uninstalled it, rebooted, and reinstalled cygwin's openssh, and 
the problem is still there. I don't have any antivirus, except Microsoft's 
Defender, but I added two folder exclussions (c:\cygwin64 and the download 
folder for xmission download site). The strace of ssh is pretty long:

== beg strace ssh ==
$ strace ssh
--- Process 23800 created
--- Process 23800 loaded C:\Windows\System32\ntdll.dll at 00007ffe22410000
--- Process 23800 loaded C:\Windows\System32\kernel32.dll at 00007ffe20e20000
--- Process 23800 loaded C:\Windows\System32\KernelBase.dll at 00007ffe1f780000
--- Process 23800 loaded C:\cygwin64\bin\cygcrypto-1.1.dll at 00000003f6ce0000
--- Process 23800 loaded C:\cygwin64\bin\cygwin1.dll at 00007ffd8efa0000
--- Process 23800 loaded C:\cygwin64\bin\cyggssapi_krb5-2.dll at 
00000003f40d0000
--- Process 23800 loaded C:\cygwin64\bin\cygz.dll at 00000003ee230000
--- Process 23800 loaded C:\cygwin64\bin\cyggcc_s-seh-1.dll at 00000003f4c30000
--- Process 23800 loaded C:\cygwin64\bin\cygk5crypto-3.dll at 00000003f0f00000
--- Process 23800 loaded C:\cygwin64\bin\cygkrb5-3.dll at 00000003f0e30000
--- Process 23800 loaded C:\cygwin64\bin\cygkrb5support-0.dll at 
00000003f0e10000
--- Process 23800 loaded C:\cygwin64\bin\cygcom_err-2.dll at 00000003f7240000
--- Process 23800 loaded C:\cygwin64\bin\cygintl-8.dll at 00000003f12e0000
--- Process 23800 loaded C:\cygwin64\bin\cygiconv-2.dll at 00000003f3170000
     1       1 [main] ssh (23800) **********************************************
    94      95 [main] ssh (23800) Program name: C:\cygwin64\bin\ssh.exe 
(windows pid 23800)
    59     154 [main] ssh (23800) OS version:   Windows NT-10.0
    78     232 [main] ssh (23800) **********************************************
--- Process 23800 loaded C:\Windows\System32\advapi32.dll at 00007ffe202b0000
--- Process 23800 loaded C:\Windows\System32\msvcrt.dll at 00007ffe20d40000
--- Process 23800 loaded C:\Windows\System32\sechost.dll at 00007ffe203a0000
--- Process 23800 loaded C:\Windows\System32\rpcrt4.dll at 00007ffe22030000
--- Process 23800 loaded C:\Windows\System32\cryptbase.dll at 00007ffe1efd0000
--- Process 23800 loaded C:\Windows\System32\bcryptprimitives.dll at 
00007ffe1fc50000
  9439    9671 [main] ssh (23800) sigprocmask: 0 = sigprocmask (0, 0x0, 
0x7FFD8F2793B0)
   439   10110 [main] ssh (23800) open_shared: name shared.5, shared 
0x1A0000000 (wanted 0x1A0000000), h 0x118, m 0, created 0
   152   10262 [main] ssh (23800) user_heap_info::init: heap base 0xA00000000, 
heap top 0xA00000000, heap size 0x20000000 (536870912)
    76   10338 [main] ssh (23800) open_shared: name 
S-1-5-21-1074337292-3126344265-1178006881-1002.1, shared 0x1A1000000 (wanted 
0x1A1000000), h 0x114, m 1, created 0
    87   10425 [main] ssh (23800) user_info::create: opening user shared for 
'S-1-5-21-1074337292-3126344265-1178006881-1002' at 0x1A1000000
    73   10498 [main] ssh (23800) user_info::create: user shared version 
AB1FCCE8
    74   10572 [main] ssh (23800) fhandler_pipe::create: name 
\\.\pipe\cygwin-e022582115c10879-23800-sigwait, size 11440, mode 
PIPE_TYPE_MESSAGE
    86   10658 [main] ssh (23800) fhandler_pipe::create: pipe read handle 0x12C
    52   10710 [main] ssh (23800) fhandler_pipe::create: CreateFile: name 
\\.\pipe\cygwin-e022582115c10879-23800-sigwait
    71   10781 [main] ssh (23800) fhandler_pipe::create: pipe write handle 0x130
    55   10836 [main] ssh (23800) dll_crt0_0: finished dll_crt0_0 initialization
--- Process 23800 loaded C:\Program Files (x86)\Citrix\ICA 
Client\epclient64.dll at 00007ffe00070000
--- Process 23800 loaded C:\Windows\System32\user32.dll at 00007ffe21e20000
--- Process 23800 loaded C:\Windows\System32\win32u.dll at 00007ffe20130000
--- Process 23800 loaded C:\Windows\System32\gdi32.dll at 00007ffe20df0000
--- Process 23800 loaded C:\Windows\System32\gdi32full.dll at 00007ffe1fea0000
--- Process 23800 loaded C:\Windows\System32\msvcp_win.dll at 00007ffe1fcd0000
--- Process 23800 loaded C:\Windows\System32\ucrtbase.dll at 00007ffe1fb30000
--- Process 23800 loaded C:\Windows\System32\combase.dll at 00007ffe21a90000
--- Process 23800 loaded C:\Windows\System32\version.dll at 00007ffe0b1f0000
--- Process 23800 loaded C:\Windows\System32\bcrypt.dll at 00007ffe1f130000
--- Process 23800 loaded C:\Windows\System32\imm32.dll at 00007ffe204e0000
--- Process 23800 loaded C:\Windows\System32\ntmarta.dll at 00007ffe1e850000
--- Process 23800 thread 15480 created
--- Process 23800 thread 15424 created
--- Process 23800, exception c0000005 at 00007ffd8f028094
--- Process 23800 thread 21708 created
--- Process 23800, exception c0000005 at 00007ffd8efc0a5c
[clip like entries]
--- Process 23800, exception c0000005 at 00007ffd8efc0a5c
--- Process 23800, exception c0000005 at 00007ffd8efc0a5c
--- Process 23800 thread 15480 exited with status 0x0
--- Process 23800, exception c0000005 at 00007ffd8efc0a5c
--- Process 23800, exception c0000005 at 00007ffd8efc0a5c
[clip]
--- Process 23800, exception c0000005 at 00007ffd8efc0a5c
--- Process 23800, exception c0000005 at 00007ffd8efc0a5c
--- Process 23800 loaded C:\Windows\System32\kernel.appcore.dll at 
00007ffe1e7d0000
--- Process 23800, exception c0000005 at 00007ffd8efc0a5c
--- Process 23800, exception c0000005 at 00007ffd8efc0a5c
[clip]
--- Process 23800, exception c0000005 at 00007ffd8efc0a5c
--- Process 23800 thread 21708 exited with status 0x0
--- Process 23800, exception c0000005 at 00007ffd8efc0a5c
[clip an inmense amount of lines like the one just above this line]
--- Process 23800, exception c0000005 at 00007ffd8efc0a5c
--- Process 23800 thread 22168 exited with status 0xc0000005
--- Process 23800 exited with status 0xc0000005
Segmentation fault

jcabrera@jicman ~
$
== end strace ssh ==

This is the version installed:
$ uname -a
CYGWIN_NT-10.0-22631 jicman 3.4.10-1.x86_64 2023-11-29 12:12 UTC x86_64 Cygwin

Here is MS stuff:
== beg MS Stuff ==
$ systeminfo

Host Name:                 JICMAN
OS Name:                   Microsoft Windows 11 Pro
OS Version:                10.0.22631 N/A Build 22631
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
==end MS Stuff==

Thoughts anyone?


I think a clue here is that when *I* run Cygwin's ssh, which is successful,
I do not see ntmarta.dll.  This makes me wonder if it is something about
that, and also if it is something about the permissions on your .ssh folder
and files in it, about library search order, etc.

Best - EM

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to