(Fixed)TC7.02 - FTP upload will hang with CPU 100%

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
WatchUer
Senior Member
Senior Member
Posts: 243
Joined: 2003-02-22, 10:46 UTC
Location: China

(Fixed)TC7.02 - FTP upload will hang with CPU 100%

Post by *WatchUer »

FTP server vsftp v2.0.5 running on Red Hat Linux 9.0

My user has been set quota.

When I upload a file which will exceed the quota, the new version of TC7.02 will hang with CPU 100%.

TC 7.01 doesn't have this problem.

This is the log of TC7.01

Code: Select all

----------
Connect to: (2007-09-07 11:33:16)
hostname=192.168.84.2
username=
startdir=/
220 (vsFTPd 2.0.5)
USER WatchUer
331 Please specify the password.
PASS ***********
230 Login successful.
SYST
215 UNIX Type: L8
FEAT
211-Features:
 EPRT
 EPSV
 MDTM
 PASV
 REST STREAM
 SIZE
 TVFS
211 End
CWD /
250 Directory successfully changed.
Connect ok!
PWD
257 "/"
Get directory
TYPE A
200 Switching to ASCII mode.
PASV
227 Entering Passive Mode (192,168,84,2,64,219)
PORT 192,168,84,1,13,99
200 PORT command successful. Consider using PASV.
LIST
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
CWD home
250 Directory successfully changed.
PWD
257 "/home"
Get directory
PORT 192,168,84,1,13,101
200 PORT command successful. Consider using PASV.
LIST
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
CWD WatchUer
250 Directory successfully changed.
PWD
257 "/home/WatchUer"
Get directory
PORT 192,168,84,1,13,103
200 PORT command successful. Consider using PASV.
LIST
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
CWD test
250 Directory successfully changed.
PWD
257 "/home/WatchUer/test"
Get directory
PORT 192,168,84,1,13,105
200 PORT command successful. Consider using PASV.
LIST
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
DELE test.txt
250 Delete operation successful.
Deleted (2007-09-07 11:33:55): ftp://192.168.84.2/home/WatchUer/test/test.txt
Get directory
PORT 192,168,84,1,13,107
200 PORT command successful. Consider using PASV.
LIST
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
TYPE I
200 Switching to Binary mode.
PORT 192,168,84,1,13,110
200 PORT command successful. Consider using PASV.
STOR test.txt
150 Ok to send data.
Upload: 256,000 bytes, 220.0 kbytes/s, 1 s
451 Failure writing to local file.
PORT 192,168,84,1,13,112
200 PORT command successful. Consider using PASV.
STOR test.txt
150 Ok to send data.
Upload
451 Failure writing to local file.
PORT 192,168,84,1,13,114
200 PORT command successful. Consider using PASV.
STOR test.txt
150 Ok to send data.
Upload: 115,712 bytes
451 Failure writing to local file.
Get directory
TYPE A
200 Switching to ASCII mode.
PORT 192,168,84,1,13,116
200 PORT command successful. Consider using PASV.
LIST
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.


This is the log of TC7.02

Code: Select all

----------
Connect to: (2007-09-07 11:47:38)
hostname=192.168.84.2
username=
startdir=/
220 (vsFTPd 2.0.5)
USER WatchUer
331 Please specify the password.
PASS ***********
230 Login successful.
SYST
215 UNIX Type: L8
FEAT
211-Features:
 EPRT
 EPSV
 MDTM
 PASV
 REST STREAM
 SIZE
 TVFS
211 End
CWD /
250 Directory successfully changed.
Connect ok!
PWD
257 "/"
Get directory
TYPE A
200 Switching to ASCII mode.
PASV
227 Entering Passive Mode (192,168,84,2,42,51)
PORT 192,168,84,1,14,33
200 PORT command successful. Consider using PASV.
LIST
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
CWD home
250 Directory successfully changed.
PWD
257 "/home"
Get directory
PORT 192,168,84,1,14,35
200 PORT command successful. Consider using PASV.
LIST
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
CWD WatchUer
250 Directory successfully changed.
PWD
257 "/home/WatchUer"
Get directory
PORT 192,168,84,1,14,37
200 PORT command successful. Consider using PASV.
LIST
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
CWD test
250 Directory successfully changed.
PWD
257 "/home/WatchUer/test"
Get directory
PORT 192,168,84,1,14,39
200 PORT command successful. Consider using PASV.
LIST
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
DELE test.txt
250 Delete operation successful.
Deleted (2007-09-07 11:48:15): ftp://192.168.84.2/home/WatchUer/test/test.txt
Get directory
PORT 192,168,84,1,14,41
200 PORT command successful. Consider using PASV.
LIST
150 Here comes the directory listing.
Download
Waiting for server...
226 Directory send OK.
PORT 192,168,84,1,14,44
200 PORT command successful. Consider using PASV.
STOR test.txt
150 Ok to send data.
Upload
Last edited by WatchUer on 2007-09-17, 05:26 UTC, edited 1 time in total.
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

New INI entry

Post by *Clo »

2WatchUer

:) Hello !

• Maybe is it related to the new entry in the <wcx_ftp.ini> file ?
[General]
SpecialFlags=0
¤ Sum of the following options:
1: force implicit ssl (no clear text connection)
2: force explicit ssl
4: force TLS authentication
8: force SSL23 authentication
16: detailed log for ftp connections in background
32: Do not test whether files have been transferred completely (with SIZE command)
• So, you could test by adding SpecialFlags=32 to see what occurs…
- Note : That entry and its values have a more detailed info in our Tutorial that's available aready from my Web "Download" page,
hoping you can get it. Or else, please wait for the online version, which'll be updated very soon.


:mrgreen: KR
Claude
Clo
Last edited by Clo on 2007-09-14, 03:42 UTC, edited 1 time in total.
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
WatchUer
Senior Member
Senior Member
Posts: 243
Joined: 2003-02-22, 10:46 UTC
Location: China

Post by *WatchUer »

Thanks for your reply.

I have tested with setting SpecialFlags=32, no help, the same result.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48104
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

From your log, I can see that the upload doesn't even start!
STOR test.txt
150 Ok to send data.
Upload
It seems that the quota isn't the problem here. Some firewalls block access to the internet when they detect a change in a program EXE. You have to allow the access to make the program work again.
Author of Total Commander
https://www.ghisler.com
User avatar
WatchUer
Senior Member
Senior Member
Posts: 243
Joined: 2003-02-22, 10:46 UTC
Location: China

Post by *WatchUer »

Thank you very mush, I think you are right, I'll test tomorrow.
User avatar
WatchUer
Senior Member
Senior Member
Posts: 243
Joined: 2003-02-22, 10:46 UTC
Location: China

Post by *WatchUer »

Sorry, it's not the firewall problem.

First I delete the TC 7.01 from the firewall excluding list, then add TC 7.02.

TC 7.02 I use the unpacked version, and my McAfee is disabled.

This time I let upload in background, TC 7.01 has no problem.

In TC 7.02, its main window acts normal, but the uploading window hangs with CPU 100%.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48104
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I do not have this problem here. Maybe it's a problem with the file you tried to upload? Please try uploading a binary file, does this work?
Author of Total Commander
https://www.ghisler.com
User avatar
WatchUer
Senior Member
Senior Member
Posts: 243
Joined: 2003-02-22, 10:46 UTC
Location: China

Post by *WatchUer »

Sorry for reply late. I'm being busy with my work.

As you said, upload a binary file, or a text file with binary mode works fine.

Only text file with automatic transfer mode will cause hanging.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48104
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Can you send me a sample text file which hangs the upload by e-mail, please? I cannot reproduce this with any text files I tried. Please send it zipped to beta at ghisler dot com. Please note that TC 7.02a will be released tomorrow, so there isn't much time left to fix this error...

Just one question: Does the file contain any zero bytes (hex 00)? I could reproduce the error by uploading a binary file in text mode when it contains 00 characters.
Author of Total Commander
https://www.ghisler.com
User avatar
WatchUer
Senior Member
Senior Member
Posts: 243
Joined: 2003-02-22, 10:46 UTC
Location: China

Post by *WatchUer »

Sorry, I've forgotten to mention that the text file is UTF16.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48104
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Ah, that explains it! UTF-16 files should NOT be uploaded in text mode, but in binary mode, except if the server knows how to handle UTF-16 and can convert the Windows->Unix line breaks correctly.
Author of Total Commander
https://www.ghisler.com
User avatar
WatchUer
Senior Member
Senior Member
Posts: 243
Joined: 2003-02-22, 10:46 UTC
Location: China

Post by *WatchUer »

7.02a have solved the problem. Thanks, Ghisler.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48104
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for reporting it! :)
Author of Total Commander
https://www.ghisler.com
Post Reply