WAD TCC Crash

Sep 8, 2013
5
0
TCC 15.00.26 x64 Windows 7 [Version 6.1.7601]

Rex, I've been using TCC/4NT for years. Love it. I found the following .bat file causes TCC to crash:

Code:
call :list %include%
goto :eof
 
:list
@FOR /F "tokens=1* delims=;" %%a IN ("%*") DO @if not {%%a}=={} @echo %%a&@call %0 %%b&goto :eof
goto :eof
 
May 20, 2008
11,400
99
Syracuse, NY, USA
TCC and CMD handle IF's command differently. Fix it with parentheses:
Code:
(@echo %%a&@call %0 %%b&goto :eof)

Read about it in the help for IF, and read about the initialization directive "Duplicate CMD Bugs".
 
May 20, 2008
11,400
99
Syracuse, NY, USA
Thanks. That fixes it, though TCC generating an unhandled exception probably isn't good.
TCC usually catches nesting that's too deep without crashing. Maybe Rex will look into your example.
Code:
v:\> type callme.btm
call %0
quit

:foo
echo bar

v:\> callme.btm
TCC: V:\callme.btm [1]  Exceeded batch nesting limit
 

rconn

Administrator
Staff member
May 14, 2008
12,344
149
Thanks. That fixes it, though TCC generating an unhandled exception probably isn't good.

It's difficult for TCC to detect infinite loops of that nature (calling multiple commands within a single command) without a lot of extra code, which slows everybody down for an exceedingly minor benefit. (I.e., running a bizarre CMD script that is relying on undocumented CMD behavior, without telling TCC you're running a bizarre CMD script.)
 
Similar threads
Thread starter Title Forum Replies Date
Alpengreis Fixed Crash after copy dialog with big TCC.exception.log Support 5
nikbackm TCC crash when pressing F1 Support 2
T 64 bit TCCLE appears to crash when opening tcc.exe from within tcc.exe window Support 7
D Occasional TCMD 17 crash when starting additional TCC Support 4
7 TCC startup crash in Windows 8 Pro x64 Support 20
M PDir causing Take Command/TCC to crash... Support 6
Q tcc.exe crash with long command line Support 10
M Unexplained TCMD/TCC crash... Support 9
Spire TCC 10.0.0.57: Crash on launch in Secur32.dll Support 3
Charles Dye Crash in TCC.EXE v10.0.0.49 Support 0
MickeyF TCC crashing when copying multiple files (now resolved) Support 6
C COMSPEC constantly reset to TCC.EXE Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
C How to? starting TCC/TCMD v25 Support 2
CWBillow TCC and TCMD in Powershell Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
L FTYPE in TCC, less quirky than in cmd.exe Support 3
V Set path permanently from within TCC? Support 3
DrusTheAxe Runaway TCC.exception.log filling drive Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
Joe Caverly tcc.exception.log Support 3
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
vefatica SCRIPT ... TCC disappears Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
Jesse Heines Access Denied errors in TCC 27 Support 9
fpefpe How to? tcc inifile (%_ininame) Support 3
M How to? Black TCC Prompt Support 2
D Differences between TCC and CMD with COPY /b Support 4
M Oracle batch OPatch.bat.bat not working in TCC but correctly in CMD Support 5
Jay Sage Extra TCC Tasks Support 6
vefatica Can I turn off the minimize to tray mechanism in TCC? Support 5
N Command execution slows down in TCC Prompt after a while Support 6
R Upgrade TCMD 19 to TCC 26 Support 1
Joe Caverly Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
samintz How to? Is this doable in TCC? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.02.41 Uploaded Support 0
D TCC tab detaching & restarting Support 3
Ó Recent git output not shown on TCC Support 1
P Kill all other instances of tcc from a btm batch file Support 2
L Using TCC.exe through an SSH connection Support 3
M TCC color issue in ConEmu Support 4
Alpengreis UTF-8 problem in TCC related to Python Support 7
Alpengreis Python support for 3.8.3 in TCC v26.x? Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 26.01.40 uploaded Support 0
Peter Murschall TCC V26.01.3x Debugging has problems with Alias /R Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 26.0.37 Uploaded Support 0

Similar threads