sshfs-win icon indicating copy to clipboard operation
sshfs-win copied to clipboard

sshfs - malloc loop and unexpected exit

Open tj57 opened this issue 5 years ago • 3 comments

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 [email protected]:/ 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 avatar Dec 02 '20 11:12 tj57

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

tj57 avatar Feb 05 '21 10:02 tj57

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.

billziss-gh avatar Feb 05 '21 17:02 billziss-gh

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.

tj57 avatar Jun 08 '21 19:06 tj57