[tech. dup.] AV on Del when FTLed dirs size counted

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

[tech. dup.] AV on Del when FTLed dirs size counted

Post by *DrShark »

It is a duplication of http://ghisler.ch/board/viewtopic.php?t=43002 on Chiristan Ghisler's request.
To reproduce:
1. Using Find files, find a lot of (hunderds, maybe thousands) of empty folders (not sure if they originally had empty subfolders).
2. Press Feed to listbox
3. Press Alt+Shift+Enter to count dirs size.
4. While size still counting, try to delete them
(I don't remember exact way of deleting, like pressing Del or Shift+Del or D&D to F8 button... so it may be a difference here)
5. Access violation appears:

Code: Select all

---------------------------
Total Commander 8.0Я2
---------------------------
Access violation at address 006854E0. Read of address 00000034.
Access violation at address 006854E0. Read of address 00000034
Windows Vista SP2 6.0 (Build 6002)

Please report this error to the Author, with a description
of what you were doing when this error occurred!

Windows exception: C0000005
Stack trace:
006854E0
4451E9  443B53  445F1A  445095  4235A4  4451E9
445B66  4235A4  445127  4235A4  637C28  443C15
445B66  >4235A4  445127  4235A4  428C70  428D08
6CD77F  
Raw:
5DDA7A  6B0071  445095  4235A4  4235A4  445095
4235A4  445EDF  443C15  445E35  435465  4451E9
443B53  445F1A  4463B9  443C15  445E35  425280
445095  4235A4  445EDF  443C15  445E35  435465
4451E9  445B66  445B89  4235A4  445127  4235A4
637C28  402E36  443C15  445E35  425280  4451E9
445B66  4235A4  4235A4  445127  4235A4  428C70
428D08  428EC2  6CD77F  
Press Ctrl+C to copy this report!
Continue execution?
---------------------------
Да   Нет   
---------------------------
I can't also remember if some custom columns had been present that time, like DirSizeCalc with OnDemand field.
So it's interesting to know, if it's possible to say from the error message, can or not this access violation be caused by plugin.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This is still the report for 8.02 beta. Could you please try to recreate the bug with TC 8.52a?
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

2ghisler(Author)
ghisler(Author) wrote:Could you please try to recreate the bug with TC 8.52a?
I got a group of directories similar to a group that was on original environment with TC 8.0b2. It consist of empty folders+subfolders, having kinda 35000 of them in total. When in TC 8.52a I got them all in panel after Find files, Feed to lisbox, and pressed Alt+Shift+Enter, a progress dialog appeared:
----
Total Commander
----
Seeking...

Total space occupied: ?0 bytes in ?271 file(s)
e:\dir\subdir\
[progress bar] 0%

----
[Pause] [Cancel]
----
I waited almost an hour and eventually TC became frozen, so I couldn't even finish operation by pressing Cancel.

In TC 8.0b2, there is no such "Seeking..." progress window, so it's possible to press Shift+Del while size still counting - right after a wait pointer will again become an angled arrow (it takes minutes, not an hour, and then size counting is shown via "refreshing" folder icons in panel).

So what we have is that due to the "Seeking..." window in TC8.52a it's impossible to repeat original reproduce steps.
And "eventually TC became frozen" moment then maybe better to split into separate bugreport?
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Hmm, it sounds like you have recursive links in one of the subdirs.
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

ghisler(Author) wrote:Hmm, it sounds like you have recursive links in one of the subdirs.
I didn't find junctions or symbolic links there. I will pack all this empty folders to some archive and will send it to support email this week.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks, that would be very helpful!
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

2ghisler(Author)
Did you receive my email? I've sent an archive to support email on November, 19.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I couldn't find anything when searching for "DrShark". I have over 158000 mails in my mail program (since 1.1.2014), so it would be helpful if you told me how I could find your mail (sender name or subject).
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

Mail title:
Seeking size counting dialog and frozen TC

DrShark nickname is also present in mail body, so it seems that mail wasn't delivered for some reason, probably due to your mail server 500 kb limitation because together with attach (~3.9 Mb) the total mail size was ~5.2 Mb.

I've re-sent it already, with copy also to beta mail and links to the files instead of attachments.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No, I didn't receive any e-mails. Could you send me a mail without attachment, please, e.g. with password protected download link?
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

2ghisler(Author)
My yesterday email and email from November, 19 were sent from @ukr.net domain. There were no problems with it before. Maybe emails form ukr.net go to spam box of your mail server or client?

I've sent yet another copy of email today, with the same subject, now form GMail.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I got the file now, and could see a freeze of a few seconds when starting to count. The problem is that there are so many folders, so it takes a while to inform the background counting thread about all of them.

But I didn't see any crashes when trying to delete (F8, Del). How exactly did you try to delete?
Author of Total Commander
https://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

ghisler(Author) wrote:I got the file now, and could see a freeze of a few seconds when starting to count.
In my case it was a permanent freeze after almost an hour of counting
ghisler(Author) wrote:But I didn't see any crashes when trying to delete (F8, Del). How exactly did you try to delete?
As I wrote in one of above posts, because of "Seeking..." modal window when TC trying to count the size of each of these empty folders (this window appears after Alt+Shift+Enter hotkey, it's reproduce Step 3 from steps list in first post), it's impossible to try to delete anything in panel. And because this "Seeking" window eventually freeze whole Total Commander for me, I didn't yet had a chance to try to delete folders TC 8.52a.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Could you please use the tool "what_is_hang" to give me the hang address? It doesn't hang here:
http://www.nirsoft.net/utils/what_is_hang.html
Author of Total Commander
https://www.ghisler.com
Post Reply