Topic "Invalid access to memory, from winscp.com"

Author Message
jrynd
[View user's profile]

Joined: 2008-04-03
Posts: 20
Location: New York
I recently updated to 4.1.0beta and now every time I try to use a command-line script with FTP, I get "invalid access to memory" immediately after login and the directory listing.

I am creating a logfile but it doesn't contain any relevant information.

The problem also occurs when I use the winscp.com interactively.

I think I need a debug version, right? I don't see any way to activate additional logging as a command-line switch.

How do I give you my email address?

Here is the script (username and password obscured):

option batch abort
option confirm off
open ftp://x:x@bfmrr.bloomberg.com
option transfer binary
get corp_pfd_lamr.out.gz.enc.20080402
get corp_pfd_lamr.px.gz.enc.20080402
get corp_pfd_lamr_fitch.out.gz.enc.20080402
get corp_pfd_namr.out.gz.enc.20080402
get corp_pfd_namr.px.gz.enc.20080402
get corp_pfd_namr_fitch.out.gz.enc.20080402
exit

Here's how I call it:
c:\Progra~1\winscp\WinSCP.com /log=winscp.log /script=script.txt

Here's winscp.log:
2008-04-03 09:39:42.983 WinSCP Version 4.1.0 (Build 375) (OS 5.1.2600 Service Pack 2)
. 2008-04-03 09:39:42.983 Login time: Thursday, April 03, 2008 9:39:42 AM
. 2008-04-03 09:39:42.983 --------------------------------------------------------------------------
. 2008-04-03 09:39:42.983 Session name: x@bfmrr.bloomberg.com
. 2008-04-03 09:39:42.983 Host name: bfmrr.bloomberg.com (Port: 21)
. 2008-04-03 09:39:42.983 User name: x (Password: Yes, Key file: No)
. 2008-04-03 09:39:42.983 Tunnel: No
. 2008-04-03 09:39:42.983 Transfer Protocol: FTP
. 2008-04-03 09:39:42.983 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2008-04-03 09:39:42.983 Proxy: none
. 2008-04-03 09:39:42.983 FTP: Passive: No
. 2008-04-03 09:39:42.983 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2008-04-03 09:39:42.983 Cache directory changes: Yes, Permanent: Yes
. 2008-04-03 09:39:42.983 DST mode: 1
. 2008-04-03 09:39:42.983 --------------------------------------------------------------------------
. 2008-04-03 09:39:43.015 Connecting to bfmrr.bloomberg.com ...
. 2008-04-03 09:39:43.171 Connected with bfmrr.bloomberg.com. Waiting for welcome message...
< 2008-04-03 09:39:43.187 220 ftp1pdmz8.bloomberg.com NcFTPd Server (licensed copy) ready.
> 2008-04-03 09:39:43.187 USER x
< 2008-04-03 09:39:43.218 331 User x okay, need password.
> 2008-04-03 09:39:43.218 PASS ********
< 2008-04-03 09:39:43.233 230-You are user #85 of 1000 simultaneous users allowed.
< 2008-04-03 09:39:43.421 230-
< 2008-04-03 09:39:43.421 230 Restricted user logged in.
> 2008-04-03 09:39:43.421 SYST
< 2008-04-03 09:39:43.437 215 UNIX Type: L8
> 2008-04-03 09:39:43.437 FEAT
< 2008-04-03 09:39:43.468 211-Extensions supported:
< 2008-04-03 09:39:43.468 CLNT
< 2008-04-03 09:39:43.468 LANG EN*
< 2008-04-03 09:39:43.468 MDTM
< 2008-04-03 09:39:43.468 MFMT
< 2008-04-03 09:39:43.468 MLST Type*;Size*;Modify*;Perm;Unique;UNIX.mode*;UNIX.owner;UNIX.uid;UNIX.group;UNIX.gid;
< 2008-04-03 09:39:43.468 PASV
< 2008-04-03 09:39:43.468 REST STREAM
< 2008-04-03 09:39:43.468 SIZE
< 2008-04-03 09:39:43.468 UTF8
< 2008-04-03 09:39:43.468 TVFS
< 2008-04-03 09:39:43.468 RFC 959 2389 2577 3659
< 2008-04-03 09:39:43.468 211 End.
> 2008-04-03 09:39:43.468 CLNT FileZilla
< 2008-04-03 09:39:43.483 200 Noted.
> 2008-04-03 09:39:43.483 OPTS UTF8 ON
< 2008-04-03 09:39:43.515 501 Option not recognized.
. 2008-04-03 09:39:43.515 Connected
. 2008-04-03 09:39:43.515 --------------------------------------------------------------------------
. 2008-04-03 09:39:43.515 Using FTP protocol.
. 2008-04-03 09:39:43.515 Doing startup conversation with host.
> 2008-04-03 09:39:43.515 PWD
< 2008-04-03 09:39:43.530 257 "/" is cwd.
. 2008-04-03 09:39:43.530 Getting current directory name.
. 2008-04-03 09:39:43.530 Startup conversation with host finished.
. 2008-04-03 09:39:43.530 Listing file "corp_pfd_lamr.px.gz.enc.20080403".
. 2008-04-03 09:39:43.530 Retrieving directory listing...
> 2008-04-03 09:39:43.530 TYPE A
< 2008-04-03 09:39:43.562 200 Type okay.
> 2008-04-03 09:39:43.577 PORT 192,168,1,31,16,126
< 2008-04-03 09:39:43.608 200 PORT command successful.
> 2008-04-03 09:39:43.608 LIST -a
< 2008-04-03 09:39:43.655 150 Opening ASCII mode data connection for /bin/ls.
< 2008-04-03 09:39:43.858 226 Listing completed.
. 2008-04-03 09:39:43.858 Directory listing successful
. 2008-04-03 09:39:43.858 Disconnected from server
Advertisements
jrynd
[View user's profile]

Joined: 2008-04-03
Posts: 20
Location: New York
I had tried downgrading to 4.0.7 and it seemed that the error was recurring. I downgraded to 4.0.5 and the problem went away. Then I went back to 4.0.7 and the problem still has not returned.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
With 4.1, do you get the error too, if you use scripting with winscp.exe (using /console switch).?
_________________
Martin Prikryl
jrynd
[View user's profile]

Joined: 2008-04-03
Posts: 20
Location: New York
With both 4.0.7 and 4.1.0 beta, when I use winscp.exe /console instead of winscp.com, I don't get "invalid access to memory", but it does not work (and it returns a failure code to my batchfile).

I get

PWD
257 "/"
Getting current
Startup
Listing file "
Retrieving directory listing...
TYPE A
200
PORT
200 PORT command successful
LIST -a
150 Opening ASCII
226 Listing completed
Directory listing successful
Disconnected from server

There's nothing else in the log file to indicate why it disconnected.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Does it echo any error on the console?
_________________
Martin Prikryl
jrynd
[View user's profile]

Joined: 2008-04-03
Posts: 20
Location: New York
I don't think so -- but I can't be certain: the winscp.exe console window vanishes immediately, before I can see anything.

I note that winscp.exe /console is supposed to pause before exiting so that output can be seen, and that doesn't seem to happen in this case.
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