AV after failing attempt to reconnect to FTP

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

AV after failing attempt to reconnect to FTP

Post by *Flint »

This bug is not 100% reproducable, but maybe stack trace would help.

1. Connect to some FTP server.
2. Switch to another tab.
3. Wait for several minutes till the connection goes offline.
4. Block the Internet access for TC (e.g. via firewall, or by switching the network connection off, or by simply plugging the network cable off).
5. Switch to the tab with the FTP connection.
6. TC asks "Connection lost, reconnect?", reply "Yes".
7. TC tries to connect but fails. So, it tells something like "Host not found" and gives up, though the connection remains visually active: there is still the "0" button in the drive bar, the FTP log panel is still present, etc.
8. Now TC is unstable, some actions can cause AV. Tha actions I got AV with (but not each time) are:
a) just click anywhere in the panel where FTP contents was shown;
b) try to connect to another server (TC asks "Do you want to close the connection to ''?" — note the empty name of the connection it asks to close! — and then AV happens).

Here is the contents of one of the AVs:

Code: Select all

---------------------------
Total Commander
---------------------------
Access violation at address 005C7543. Read of address 0000014D.
Please report this error to the Author,
with a description of what you were doing when this error occurred!
Continue execution?

Windows exception: C0000005

Stack trace:
005C7543  00413DDC  7E368732  7E368814
7E37A011  7E37A037  004429ED  00413DDC
7E368732  7E368814  7E3689CB  7E37A439
7E3696C5  00419395  0041A2FE  004193C0
0041957A  006931C4  7C817075  7C81707E

Press Ctrl+C to copy this report!
---------------------------
Yes   No   
---------------------------
Tested on 7.50pβ3, WinXP SP3 Pro.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48108
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Cannot reproduce, sorry. I will check your stack trace, though.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48108
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2Flint
I could successfully find the error address and write a workaround. However, I still cannot reproduce the error.

You write:
just click anywhere in the panel where FTP contents was shown;
Here TC always returns to a local directory, and clicking in that doesn't cause any problems. How do you manage to get an ftp dir listing when the connection was dead? I tried with both dir cache on and off, no difference. :(
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

Sorry for the delay, I missed this report somehow.
I tested this bug with rc2 and confirm that crash did not occur anymore, whatever I try to do.

However, the strange message when I try to reconnect is still there:
Do you want to close the connection to ''?
(the connection name in the quotes is empty), so I would consider the bug fixed only partially.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48108
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for confirming the fix of the original error!

Please submit a new bug report with detailed instructions on how to get asked about an empty connection name. You must be be connecting in an unexpected way, where TC gets neither server name nor connection name...
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Post by *Flint »

All issues reported in this thread were fixed in 7.50 final, so it can be moved to the "Fixed bugs".
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48108
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks very much!
Author of Total Commander
https://www.ghisler.com
Post Reply