Access violation when trying to rename very long path name

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Access violation when trying to rename very long path name

Post by *Lefteous »

I just tried to create a very long path name. The last part was created succesfully but when trying to enter it TC showed message "access denied". Then tried renaming the last part to "1". TC warned me first, I confirmed and TC showed the following dialog:

Code: Select all

---------------------------
Total Commander
---------------------------
Access violation at address 00640600. Write of address 00000002.
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:

00640600  00413DE4  75E88805  75E88960

75E8890F  75BB9A9A  75E8C62A  0038094B

75E8C650  00442A21  00413DE4  75E88805

75E88960  75E8890F  75E8C4B4  75E8EAE0

004192BC  00419376  004193C8  00419582

00694A40  765EE4A3  7707CFEB  7707D1FD


Press Ctrl+C to copy this report!
---------------------------
Ja   Nein  
 --------------------------
When trying to continue TC hangs in an endless rename/move dialog.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks, I will check the addresses. Unfortunately I cannot reproduce the problem with long paths here. Can you give me an example (source/target name), please?
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

Here you are:
c:\...889ß\
edited for better readability.
Last edited by Lefteous on 2009-06-11, 18:18 UTC, edited 2 times in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks, I could reproduce the error on Vista (but not on XP) and find the reason! It will be fixed in public beta 5.
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

In public beta 5 I don't get crashes anymore. But it still behaves strange.
Path < 1018 --> can be entered
Path = 1018 --> Cannot be entered *beep* sound
Path > 1018 --> Access denied message

The path lengths have been derived from TC path lengths warning dialog.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for confirming the fix!

Path = 1018 seems to be denied by Windows, while path >1018 is denied by TC itself because it cannot append *.* and add the prefix within 1023 characters.

I will check whether I could show a common error, but it's not high priority.
Author of Total Commander
https://www.ghisler.com
User avatar
Lefteous
Power Member
Power Member
Posts: 9536
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

No big deal - it's just quite silly to suggest to retry it as admin...
Post Reply