TC 8.0 x64 compare by content crash

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
LoRenZoR
Junior Member
Junior Member
Posts: 6
Joined: 2008-08-02, 15:47 UTC

TC 8.0 x64 compare by content crash

Post by *LoRenZoR »

Hi,

I have just stumbled upon the following issue:

If I use the compare by content option with the 64bit client and use find with backward search (SHIFT+F3), I get wierd pop-up message (not all the time but I can still hear the assigned sound in the OS) and after pressing SHIFT+F3 2 or 3 times more, the program gets terminated.
I also saw wierd directory listing in the background when I triggered this error. I was able to reproduce this whenever I tried to search backwards.

I made some screenshots, please check them out as well:

Error message
Image: http://i49.tinypic.com/2evrqfb.png

Backgrond (note that you should see the same content in both panels)
Image: http://i47.tinypic.com/2z4l0d1.png


My OS is Windows 7 x64 with SP1. I could neither reproduce this with the 32bit client, nor on Windows XP x64.
I hope this will not be a duplicate post because I have checked the latest topics and search for this and well but could not find this mentioned.
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

Confirmed in TC x64 (TC x32 is not affected), and it's very strange.
Steps to reproduce:
1. Create any text file
2. Compare that text file in TC x64 with something else in its directory
3. Use Shift+F3 to search for some existing text - the first occurrence should be selected
4. Use it again

Now you may see that weird dialog, you may hear a "ding" sound (a different that usual), plus the dialog may contain a warning icon just before the "R" char. Whether you see it or not seems to be random.

But what is more interesting is, that when this happens, TC creates a file called "C" in the directory containing both compared files. And this file contains a small section of TC's wincmd.ini - more precisely parts related to file comparison.
Windows 7 Pro x64, Windows 10 Pro x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Cannot reproduce. I get the following dialog (with English language):

---------------------------
Not found:
---------------------------
a
---------------------------
OK
---------------------------

Can you send me two files and the search string to use to get this error, please?
Author of Total Commander
https://www.ghisler.com
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

Here is a video (sorry about the compression, something is wrong with my encoder):
http://s1057.photobucket.com/albums/t399/uumbra8/TC/bugs/?action=view&current=3-6-compare_crash.mp4

Note: in 00:09 and 00:16 I pressed Shift+F3.
Also, it looks like the creation of file "C" and its contents is also random, not just the error dialogs.
Windows 7 Pro x64, Windows 10 Pro x64
mhanor
Junior Member
Junior Member
Posts: 22
Joined: 2010-04-07, 11:04 UTC

Post by *mhanor »

ghisler, try again by searching a string of at least 2 characters.
This is definitely reproducible. Stop at the first occurence of the string, then press shift+f3. Use a file that only contains the word test and another empty file. Compare them, then search for "te", then shift+f3.

If the debugger is attached to the process, this is what it bumps into:
http://pastebin.com/bk056a6m

If I continue the execution of the process, memory corruption occurs.
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I can confirm the bug in TC 8.0 x 64 with two files like umbra's:

One file with the content:

Code: Select all

123
456
and one blank file.

1. I open the two files in CbC
2. I press Shift+F3, write 123 and press Enter.
3. I close CbC dialog and open it agin.
4. I press Shift+F3 (123 is now prefilled) and press Enter.
5. I press Shift+F3 and get a soft ding.
6. If I press Shift+F3 again I get the almost empty error box just with an L (not an R as umbra does).
7. After that TC gets unstable and hangs and eventually craches.

If I skip step 3, I don't get the errorbox, but after a few Shift+F3 presses TC hangs.

I can also confirm that a file C with some wincmd.ini content is written in the same directory of the two test files.

If I test with a clean wincmd.ini I have so far obtained different Windows reports when crashing:
Problemsignatur:
Navn på problemhændelse: APPCRASH
Programnavn: TOTALCMD64.EXE
Programversion: 8.0.0.1
Tidsstempel for program: 00000000
Fejlmodulnavn: TOTALCMD64.EXE
Fejlmodulversion: 8.0.0.1
Tidsstempel for fejlmodul: 00000000
Undtagelseskode: c0000005
Undtagelsesforskydning: 0000000000019ae2
OS-version: 6.1.7601.2.1.0.768.3
Landestandard-id: 1030
Flere oplysninger 1: 4eb4
Flere oplysninger 2: 4eb4c510da539008c39874b08ca4a681
Flere oplysninger 3: fa00
Flere oplysninger 4: fa00561841491f275e5aa46441ebea2b
Problemsignatur:
Navn på problemhændelse: APPCRASH
Programnavn: TOTALCMD64.EXE
Programversion: 8.0.0.1
Tidsstempel for program: 00000000
Fejlmodulnavn: ntdll.dll
Fejlmodulversion: 6.1.7601.17725
Tidsstempel for fejlmodul: 4ec4aa8e
Undtagelseskode: c0000005
Undtagelsesforskydning: 0000000000052fc6
OS-version: 6.1.7601.2.1.0.768.3
Landestandard-id: 1030
Flere oplysninger 1: 4ad9
Flere oplysninger 2: 4ad9771c87cff2057969d6ff2cb4b376
Flere oplysninger 3: 2412
Flere oplysninger 4: 241292c6258fe3fb97257323d569d161
Problemsignatur:
Navn på problemhændelse: BEX64
Programnavn: TOTALCMD64.EXE
Programversion: 8.0.0.1
Tidsstempel for program: 00000000
Fejlmodulnavn: StackHash_2264
Fejlmodulversion: 0.0.0.0
Tidsstempel for fejlmodul: 00000000
Undtagelsesforskydning: 0000000000000000
Undtagelseskode: c0000005
Undtagelsesdata: 0000000000000008
OS-version: 6.1.7601.2.1.0.768.3
Landestandard-id: 1030
Flere oplysninger 1: 2264
Flere oplysninger 2: 2264db07e74365624c50317d7b856ae9
Flere oplysninger 3: 875f
Flere oplysninger 4: 875fa2ef9d2bdca96466e8af55d1ae6e
I have also had a file named F written with something that looked like the [MRUD] section of imagine.ini - that was when testing with my normal wincmd.ini file - hence with plugins enabled.
Last edited by petermad on 2012-06-04, 19:44 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

2petermad
Thanks, I can reproduce it with your files. It really depends on what files you search in...
Author of Total Commander
https://www.ghisler.com
umbra
Power Member
Power Member
Posts: 871
Joined: 2012-01-14, 20:41 UTC

Post by *umbra »

In TC 8.01 rc1 it doesn't crash anymore.
Windows 7 Pro x64, Windows 10 Pro x64
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I can confirm that TC 8.01 RC1 x 64 no longer crashes :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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