Thanks for your report.
I have sent you an email with a debug version of WinSCP to the address you have used to register on this forum.
I am downloading logs from an SFTP server (via VPN connection) and I get below error (with stack trace) when the VPN connection drops.
I had the same error with WinSCP 5.9.3.
WinSCP 5.9.4
Error message:
Cannot open remote file '/opt/data/traxislogs/compressed_logs/traxis2/2017/02/12/TraxisService.log-2017-02-12-15:58:08.7z'.
Invalid access to memory.
Stack trace:
(006480FA) _findpos234
(00866B5E) C5073_0
(00868BC6) ____ExceptionHandler
(00865980) __ExceptionHandler
(00081D3F) ntdll.dll
(0006F8EA) ntdll.dll.KiUserExceptionDispatcher
(006482D6) _del234
(0064BC55) _sk_newlistener
(0061D422) C2447_0
(0061D636) _ssh_connshare_log
(0064BF9E) _select_result
(006FE8C7) TSecureShell::HandleNetworkEvents
(006FEB8A) TSecureShell::ProcessNetworkEvents
(006FE17B) TSecureShell::WaitForData
(006FB866) TSecureShell::Receive
(0073AF3F) TSFTPFileSystem::ReceivePacket
(0073C6A4) TSFTPFileSystem::ReceiveResponse
(0073C8A3) TSFTPFileSystem::SendPacketAndReceiveResponse
(007611D6) TSFTPFileSystem::SFTPOpenRemoteFile
(007650D9) TSFTPFileSystem::SFTPSink
(00763302) TSFTPFileSystem::SFTPSinkRobust
(00768DD9) TSFTPFileSystem::SFTPSinkFile
(00778961) TTerminal::ProcessDirectory
(00763EC3) TSFTPFileSystem::SFTPSink
(00763302) TSFTPFileSystem::SFTPSinkRobust
(007630F6) TSFTPFileSystem::CopyToLocal
(00787EBD) TTerminal::CopyToLocal
(006C856F) TDownloadQueueItem::DoExecute
(006C576E) TTerminalItem::ProcessEvent
(006C3C14) TSignalThread::Execute
(00098B63) Userinterface::C20_0
(000152C2) KERNEL32.DLL.BaseThreadInitThunk
(0005FFD7) ntdll.dll
(0005FF9F) ntdll.dll
I know how to reproduce the problem or the problem happens frequently enough. I wish to be contacted by the WinSCP team to help resolving the problem.
Click the tab and dialog box popped stating timeout and would I like to reconnect. Clicked yes.
WinSCP 5.9.3
Error message:
Invalid access to memory.
Stack trace:
(00647F29) _findpos234
(00081D3F) ntdll.dll
(0006F8EA) ntdll.dll.KiUserExceptionDispatcher
(00648086) _del234
(0064BA05) _sk_newlistener
(0061D1D2) C2447_0
(0062A2E1) _sshfwd_x11_is_local
(006FDA5C) TSecureShell::FreeBackend
(00736AA7) TSFTPFileSystem::Close
(006C9D63) TSecondaryTerminal::~TSecondaryTerminal
(006C9BFF) TBackgroundTerminal::~TBackgroundTerminal
(006C5362) TTerminalItem::~TTerminalItem
(006C3C6D) TTerminalQueue::~TTerminalQueue
(0008BA8D) TTerminalManager::FreeTerminal
(0008B183) TTerminalManager::FreeActiveTerminal
(003B521C) System::Actions::TContainedActionList::ExecuteAction
(0019C395) Vcl::Actnlist::TCustomAction::Execute
(00373100) System::Classes::_18201
(0002C2B1) USER32.dll
(0000D885) USER32.dll
(0000D1DF) USER32.dll
(0000CF9B) USER32.dll.DispatchMessageW
The problem happens rarely. I cannot reproduce it.