Topic "directory listing lock-up when following simlink to another filesystem"

Author Message
deepsky

Guest


WinSCP locks up when I try to browse a certain directory on the remote server (a Linux machine). It happens just with that one, so I suppose it is a bug.
This directory it is actually a link to a directory in another filesystem:

lrwxrwxrwx 1 giov users 28 May 29 2002 web -> /usr/local/httpd/htdocs/giov

Of course in normal conditions I have permissions to browse this directory, which is owned by me.
But if I try to enter into this directory with winscp, the program locks up and I have to ctrl-alt-del to terminate it.
Looks like a bug...
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
Please send me a log file.
_________________
Martin Prikryl
Guest




Got the problem. In the directory being read in the remote filesystem, there is a symlink of this kind:

lrwxrwxrwx 1 giov users 4 Jan 27 2002 exec -> exec

which obviously something made by mistake. But as soon as Winscp finds it, it immediately tries to follow it (why?), which of course is a neverending affair. From the winscp log:

. Listing file "exec".
> ls -lad "exec" ; echo "WinSCP: this is end-of-file:$?"
< lrwxrwxrwx 1 giov users 4 Jan 27 2002 exec -> exec
< WinSCP: this is end-of-file:0
(repeated many and many times).

It is true that this simlink is recursive, but heck, it is just a symlink, so it is legal in unix, albeit a bit stupid. Why winscp tries to follow it? Nobody told to open that directory... Note that I was trying to read the directory where the link IS, not trying to open the link itself.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
WinSCP follows link to detect whether it points to file or directory. Of course it is a bug to follow recursive symlink, I'll fix it sometimes.
_________________
Martin Prikryl
dharmdatt.sharma

Guest


Whenever my application (which is using winscp) is stopped when winscp is in action, the folder where download is happening is locked until system is rebooted. What could be the problem? Please note that i am having "using" block wherever session is used.
Guest




dharmdatt.sharma wrote:
Whenever my application (which is using winscp) is stopped when winscp is in action, the folder where download is happening is locked until system is rebooted. What could be the problem? Please note that i am having "using" block wherever session is used.


File Version is 1.3.3.6736
Product Version is 5.8.4.0
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
dharmdatt.sharma wrote:
Whenever my application (which is using winscp) is stopped when winscp is in action, the folder where download is happening is locked until system is rebooted. What could be the problem? Please note that i am having "using" block wherever session is used.

This should not be happening. What is your version of Windows? How do you "stop" the application? Is winscp.exe process left behind, when you "stop" the application.
dharmdatt.sharma

Guest


I am using Windows 7 and application is a windows service. If the service is stopped when download/upload is in-progress, the folder is locked and winscp.exe remains in memory (i can see it in Task Manager). Until I kill that process manually, the folder is unusable.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
It should not happen. The winscp.exe is a part of a job created by the .NET assembly.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms684161.aspx

Anyway, how do you stop the service? Is the process shut down cleanly or is it killed?

Please attach a debug log file (Session.DeubgLogPath)
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License