Artifacts Associated With Ticket 978574ffffffffff
Ticket change [599fb781e8] (rid 117999) by patthoyts on 2004-06-23 22:25:57:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Using Mingw gcc 3.2 (mingw special 20020817-1) on Windows XP I reliably get a segfault in stack-3.1. This only seems to occur for this compiler (MSVC is OK on the same platform) and it requires -O in the CFLAGS. Also for another user (steve redler) with gcc version 3.2.3 (mingw special 20030504-1) also on WinXP. I got the following stack trace (part of): (gdb) where 10 #0 0x1008cc63 in probe () #1 0x011a8cf8 in ?? () #2 0x1000dc97 in TclInterpReady (interp=0x3d5980) at ../generic/tclBasic.c:2983 #3 0x10035f3a in TclCompEvalObj (interp=0x3d5980, objPtr=0xabfa08) at ../generic/tclExecute.c:923 #4 0x1006b47a in TclObjInterpProc (clientData=0x11ef0c0, interp=0x3d5980, objc=2, objv=0x11a8cf8) at ../generic/tclProc.c:1088 At level #2 we are called from 2983 if (((iPtr->numLevels) > iPtr->maxNestingDepth) where it seems iPtr is NULL - foundin initialized to: "obsolete: 8.5a2"
- priority initialized to: "6"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "patthoyts"
- subsystem initialized to: "20. [interp]"
- title initialized to: "segfault in stack.test with mingw gcc"
- type initialized to: "Bug"
Ticket change [d1b89caba8] (rid 113405) by patthoyts on 2004-06-24 05:42:06:
- icomment:
Logged In: YES user_id=202636 More info - it seems that in the offending function we have: 2952 TclInterpReady(interp) 2953 Tcl_Interp *interp; 2954 { 2955 register Interp *iPtr = (Interp *) interp; But for me interp is valid while iPtr is 0x0. !?! Optimisation bug? I may add that we don't seem to be all that far in: (gdb) print ((Interp *)interp)->numLevels $11 = 1312 (gdb) print ((Interp *)interp)->maxNestingDepth $12 = 10000 - login: "patthoyts"
- mimetype: "text/plain"
- username: "patthoyts"
- icomment:
Ticket change [12aea1a161] (rid 124084) by hobbs on 2004-07-15 02:14:10:
- assignee changed to: "mdejong"
- icomment:
Logged In: YES user_id=72656 Isn't this an issue that the stack depth check isn't operating correctly for those compilers? Make sure that tclWin32Dll.c:TclpCheckStackSpace is correct when not using MSVC. That is Mo's code, IIRC.
- login: "hobbs"
- mimetype: "text/plain"
- priority changed to: "5 Medium"
- username: "hobbs"
Ticket change [e36879423d] (rid 87794) by msofer on 2004-07-15 02:34:05:
- icomment:
Logged In: YES user_id=148712 Stack corruption is a very likely outcome if the stack depth check is not working. In this sense, iPtr==0x0!=interp is not so surprising. Note also that stack-3.1 will definitely cause a segfault if TclpCheckStackDepth is non-functional.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [c4ec9ab40d] (rid 111912) by mdejong on 2004-11-23 05:34:14:
- icomment:
Logged In: YES user_id=90858 I have run the tests over and over again on my Windows XP box with a mingw compiled version of Tcl and I am not seeing the problem you describe here. Are you seeing this every time, or does it only happen once in a blue moon?
- login: "mdejong"
- mimetype: "text/plain"
- username: "mdejong"
- icomment:
Ticket change [cda532e494] (rid 95930) by mdejong on 2005-07-24 10:01:38:
- icomment:
Logged In: YES user_id=90858 Has this problem been fixed in the CVS HEAD or the Tcl 8 .4.11 release? There were some mingw related changes, so this is likely fixed now. Please advise.
- login: "mdejong"
- mimetype: "text/plain"
- username: "mdejong"
- icomment:
Ticket change [db48397712] (rid 107930) by mdejong on 2007-03-16 08:54:47:
- closedate changed to: "2007-03-16T01:54:47"
- closer changed to: "mdejong"
- icomment:
Logged In: YES user_id=90858 Originator: NO I am closing this bug since I can't reproduce it and I have tested it many times on an XP box.
- login: "mdejong"
- mimetype: "text/plain"
- resolution changed to: "Out of Date"
- status changed to: "Closed"
- username: "mdejong"