TC75b7 access violation on exit

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

Moderators: Hacker, petermad, Stefan2, white

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The problem seems to be the thread which is used for FindFirstFile when ThreadFindFirst was on (which is now the default in TC 7.5). I'm working on a solution, but it's very difficult because I do not get any crash here. It seems to be some sort of timing problem. Do you all have multi-core systems (core-duo, core-quad etc.) or does anyone experience this also on a single core system? My development system is single core, but I don't get the error on a dual core system either...
Author of Total Commander
https://www.ghisler.com
jy307@columbia.edu
Junior Member
Junior Member
Posts: 11
Joined: 2006-11-11, 17:11 UTC

access violation

Post by *jy307@columbia.edu »

With respect to multi-core my machine is a relatively old hp so I dont think so. However the device manager says that I have ACPI multiprocessor computer. cpuz says:

-------------------------
CPU-Z version 1.41
-------------------------

Processors Map
------------------------------------------------------------------------------------

Number of processors 1
Number of threads 2

Processor 0
-- Core 0
-- Thread 0
-- Thread 1


Processors Information
------------------------------------------------------------------------------------

Processor 1 (ID = 0)
Number of cores 1
Number of threads 2 (max 2)
Name Intel Pentium 4 530
Codename Prescott
Specification Intel(R) Pentium(R) 4 CPU 3.00GHz
Package Socket 775 LGA (platform ID = 4h)
CPUID F.3.4
Extended CPUID F.3
Core Stepping D0
Technology 90 nm
Core Speed 3000.9 MHz (15.0 x 200.1 MHz)
Rated Bus speed 800.2 MHz
Stock frequency 3000 MHz
Instructions sets MMX, SSE, SSE2, SSE3
L1 Data cache 16 KBytes, 8-way set associative, 64-byte line size
Trace cache 12 Kuops, 8-way set associative
L2 cache 1024 KBytes, 8-way set associative, 64-byte line size
FID/VID Control no
Features
jvh
Member
Member
Posts: 187
Joined: 2007-07-20, 12:28 UTC

Post by *jvh »

I have both PC's with single core CPU (AMD Athlon 64 3700+ and AMD Athlon 64 3700+).

And there is UUE encoded part of my wincmd.ini with non-default values:

Code: Select all

begin 644 wincmd.zip
M4$L#!!0``@`(`&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\U=COG+`8TMNQ(6:^-<6"<7F"-]3A-U!+`0(4`!0``@`(`&R<]SKH
M/L*3\0(``*0%```*````````````(`````````!W:6YC;60N:6YI4$L%!@``
0```!``$`.````!D#````````
`
end
sum -r/size 27514/871
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Good morning, folks.
I have been using ThreadFindFirst=1 since the times when the default still was 0 and I have not had any crash on exit caused by ThreadFindFirst=1. [...] So there must be at minimum one other factor which is relevant and which in combination with ThreadFindFirst=1 may lead to crashes on exit.
I am afraid I have got to correct the number of 0 crashes on exit to 1 since 01:00 a.m. (METDST). :shock:

Windows XP Prof SP2, 32bit, ger
Total Commander 7.50 pb7
The machine is connected to my ISP via a DSL modem.

Possibly relevant factor:
5 minutes before I decided to call it quits and shut Windows down, the DSL line had broken down (for 30 minutes by the way).

Kind regards,
Karl
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

And the crash address was?
Author of Total Commander
https://www.ghisler.com
alm
Junior Member
Junior Member
Posts: 59
Joined: 2006-06-23, 17:25 UTC

Post by *alm »

So far this crash on exit only occured on my Athlon 1400 system. On my C2D E6750 it did not happen yet, same counts for laptop with T7300 cpu in it.
Using TC since 1997, known as Windows Commander in the old days ;)
jy307@columbia.edu
Junior Member
Junior Member
Posts: 11
Joined: 2006-11-11, 17:11 UTC

more on access violations

Post by *jy307@columbia.edu »

I can make an access violation happen almost every time by doing the following: I put a thumb drive into a usb port. I open total commander. I select the thumb drive. I then close tc without shutting down or removing the thumb drive. unfortunately I cannot make it happen every time, but the propensity for access violation associated with thumb drive file transfers is very high.
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, Christian.
ghisler(Author) wrote:And the crash address was?
I am sorry, but I did not take a screenshot. - My fault, I know. - :oops: It looked much like the access violation reported by waelderer at the beginning of this thread.
Provided the same access violation on exit occurs again I will take a screenshot.

By the way, the machine is a single core machine. No OODefrag monitoring in the background.

Kind regards,
Karl
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Re: more on access violations

Post by *karlchen »

jy307@columbia.edu wrote:I can make an access violation happen almost every time by doing the following: I put a thumb drive into a usb port. I open total commander. I select the thumb drive. I then close tc without shutting down or removing the thumb drive.
Cannot confirm this. So far I have not experienced any relation to my USB stick on any of my machines:
+ Pentium III, single core, Windows XP Prof SP2, 32bit
+ Intel DualCore, Windows XP Prof SP2, 32bit
+ Intel QuadCore, Windows Vista Home Premium, 32bit
all using T.C 7.50 pb7

Karl
ouzoWTF
Junior Member
Junior Member
Posts: 93
Joined: 2009-04-20, 21:03 UTC

Post by *ouzoWTF »

Got an access violation too when closing tcmd a moment ago.

Exception EAccessViolation in module TOTALCMD.EXE at 000648E1.
Access violation at address 00465B0D. Write of address 00E000BD.


I'm using WinXP SP3 and pb7.
Single User Licence #201763
User avatar
Boofo
Power Member
Power Member
Posts: 1431
Joined: 2003-02-11, 00:29 UTC
Location: Des Moines, IA (USA)
Contact:

Post by *Boofo »

I am also using WinXP SP3 (32-bit) and pb7 and do not get any errors on close. I have a single core system (P4 2.8 GHZ from the stone-age).
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden

How do I un-overwrite all my data?

User of Total Commander
#60471 Single user license
User avatar
petermad
Power Member
Power Member
Posts: 16009
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2jy307@columbia.edu
but the propensity for access violation associated with thumb drive file transfers is very high.
If you have CopyCompatUsbSticks=0 in the [Configuration] section of your wincmd.ini file then try removing that.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50390
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

CopyCompatUsbSticks only has an effect when you COPY from or to an USB stick.

Unfortunately I couldn't reproduce the error so far, but at least I know where it occurs, so I can try to write a workaround...
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16009
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

but the propensity for access violation associated with thumb drive file transfers is very high.
CopyCompatUsbSticks only has an effect when you COPY from or to an USB stick.
Sorry, I thought that file transfer would be the same as copying.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

Hello, Christian.
ghisler(Author) wrote:And the crash address was?
I was lucky enough to be able to reproduce the crash on exit. :)

Same machine, same network error preceding the crash on exit. (Which is why I assume the network problem may be relevant.)

T.C. 7.50pb7 was running. The USB stick had been put in. (But this has never had any effect for me.) Tried to open my DSL connection (but had forgotten to put in the network cable). So I pressed the Cancel button in the "Connecting ..." dialogue box.
Next, I shutdown Total Commander 7.50 pb7.

Received this crash on exit message by Windows:
Application Error
Exception EAccessViolation in module TOTALCMD.EXE at 000648E1.
Access violation at address 00465B0D. Write of address 0157AFF9.
Windows XP Prof SP2, 32bit
Total Commander 7.50pb7
ThreadFindFirst=1 is active
As the DSL connection is an internet connection T.C. will never have any access to any network shares via UNC pathnames or via mapped drive letters.

Such a crash on exit has never occurred in cases
+ when the DSL connection had not been opened, yet
+ when the DSL connection had been terminated properly.

HTH,
Karl
Post Reply