winfsp / sshfs-win

SSHFS For Windows
https://winfsp.dev
Other
4.94k stars 252 forks source link

sshfs - malloc loop and unexpected exit #258

Open tj57 opened 3 years ago

tj57 commented 3 years ago

I'm trying to run SSHFS on Win10 19041.630 but I got only message "SSHFS version 3.5.2" without any exit code. In debug mode I don't see "executing ..." messages

`c:\Program Files\SSHFS-Win\bin>sshfs.exe root@10.132.42.89:/ L: -p2222 -ovolname=raspberry -odebug -ologlevel=debug1 -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oidmap=user -ouid=-1 -ogid=-1 -oumask=000 -ocreate_umask=000 -omax_readahead=1GB -oallow_other -olarge_read -okernel_cache -ofollow_symlinks -oPreferredAuthentications=publickey -oIdentityFile="S:/putty/ct.key"

SSHFS version 3.5.2`

Here is log from simple script to check exit code, without winfsp-x64.dll for test only: `c:\tmp>ssh.bat cygfuse: initialization failed: winfsp-x64.dll not found Failure Reason Given is 1

c:\tmp>ssh.bat SSHFS version 3.5.2

c:\tmp>ssh.bat SSHFS version 3.5.2

c:\tmp>`

I did a little investigating with API Monitor from rohitab.com and I see malloc loop up to 900 times in sshfs.exe Here is screnshot: api-loop

and here is correct sshfs startup on another computer: api-correct

tj57 commented 3 years ago

With new version sshfs-win-3.7.21011-x64 the problem still exists. How to debug or fix it ?

billziss-gh commented 3 years ago

The “malloc” loop is not something that can be explained easily. I suspect some sort of corruption in the system that you experience this problem.

tj57 commented 3 years ago

I miss sshfs a lot. Would you please tell me how to debug malloc loop or help me prepare some special debug version with more logs. I will try to find this problem.