Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2003-09-06
08:16 • Closed ticket [789949ffff]: crash on startup with 8.4.4 threaded debug build... artifact: 42fa4dad63 user: mistachkin
2003-09-04
23:01 • Ticket [789949ffff]: 4 changes artifact: 557bf34c6f user: sireland
22:18 • Ticket [789949ffff]: 4 changes artifact: 164def3940 user: sireland
2003-08-17
01:36 • New ticket [789949ffff]. artifact: 4beb610def user: mistachkin

crash on startup with 8.4.4 threaded debug build

Closed / Duplicate789949ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2003-08-17 01:36:22
tclsh84tg.exe immediately panic()'s on startup on 
Windows 2000.

The following code from tclIOUtil.c (line 590) appears to 
dereference freed memory.

if (--fsRecPtr->fileRefCount <= 0) {
    ckfree((char *)fsRecPtr);
}

Here is the stack trace:

FsRecacheFilesystemList() line 590 + 3 bytes
FsGetFirstFilesystem() line 644
GetPathType(Tcl_Obj * 0x008f8e58, Tcl_Filesystem * * 
0x0026eba8, int * 0x0026eb88, Tcl_Obj * * 
0x0026eb74) line 3180 + 5 bytes
Tcl_FSJoinPath(Tcl_Obj * 0x008f94d8, int 2) line 4569 + 
21 bytes
Tcl_FSJoinToPath(Tcl_Obj * 0x00000000, int 2, Tcl_Obj 
* const * 0x008e009c) line 1086 + 11 bytes
Tcl_FileObjCmd(void * 0x00000000, Tcl_Interp * 
0x008e9020, int 4, Tcl_Obj * const * 0x008e0094) line 
955 + 21 bytes
TclEvalObjvInternal(Tcl_Interp * 0x008e9020, int 4, 
Tcl_Obj * const * 0x008e0094, const char * 
0x00000000, int 0, int 0) line 3084 + 25 bytes
TclExecuteByteCode(Tcl_Interp * 0x008e9020, 
ByteCode * 0x008f88d8) line 1404 + 36 bytes
TclCompEvalObj(Tcl_Interp * 0x008e9020, Tcl_Obj * 
0x008f6978) line 982 + 13 bytes
TclObjInterpProc(void * 0x008f69f8, Tcl_Interp * 
0x008e9020, int 1, Tcl_Obj * const * 0x0026fc84) line 
1082 + 19 bytes
TclEvalObjvInternal(Tcl_Interp * 0x008e9020, int 1, 
Tcl_Obj * const * 0x0026fc84, const char * 
0x100d4936, int 7, int 0) line 3084 + 25 bytes
Tcl_EvalEx(Tcl_Interp * 0x008e9020, const char * 
0x100d4580 initScript, int 957, int 0) line 3675 + 36 
bytes
Tcl_Eval(Tcl_Interp * 0x008e9020, const char * 
0x100d4580 initScript) line 3871 + 17 bytes
Tcl_Init(Tcl_Interp * 0x008e9020) line 801 + 14 bytes
Tcl_AppInit(Tcl_Interp * 0x008e9020) line 146 + 10 
bytes
Tcl_Main(int 1, char * * 0x008c4348, int (Tcl_Interp *)* 
0x0040109e Tcl_AppInit(Tcl_Interp *)) line 273 + 10 
bytes
main() line 117 + 19 bytes
mainCRTStartup() line 338 + 17 bytes
KERNEL32! 7c4e87f5()
sirelandplain2003-09-04 22:18:08
Logged In: YES 
user_id=859150

I too am seeing this problem. I'm using XP and building with 
either VS.net 2003 or VS6. 

Oddly wish84tg.exe seems to work, but tclsh84tg.exe and 
tcl84tg.dll called from my embedded application crash at the 
above point.

8.4.3 works perfectly in all scenarios.
sirelandplain2003-09-04 23:01:04
Logged In: YES 
user_id=859150

Solution found in report 788780. Thanks.

P.S. Don't you just hate it when you spend the time looking 
for the solution, don't find it, post a message and THEN find 
the answer :)
mistachkin Closed ticket [789949ffff]. [History diff]2003-09-06 08:16:24
Log in (anonymous is fine) to add a comment.