Skip to content
Tcl Source Code History Of Ticket 978574ffffffffff
Login

History Of Ticket 978574ffffffffff

Artifacts Associated With Ticket 978574ffffffffff

  1. Ticket change [599fb781e8] (rid 117999) by patthoyts on 2004-06-23 22:25:57:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
      
    4. foundin initialized to: "obsolete: 8.5a2"
    5. priority initialized to: "6"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "patthoyts"
    9. subsystem initialized to: "20. [interp]"
    10. title initialized to: "segfault in stack.test with mingw gcc"
    11. type initialized to: "Bug"
  2. Ticket change [d1b89caba8] (rid 113405) by patthoyts on 2004-06-24 05:42:06:

    1. 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
      
      
      
    2. login: "patthoyts"
    3. mimetype: "text/plain"
    4. username: "patthoyts"
  3. Ticket change [12aea1a161] (rid 124084) by hobbs on 2004-07-15 02:14:10:

    1. assignee changed to: "mdejong"
    2. 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.
      
      
    3. login: "hobbs"
    4. mimetype: "text/plain"
    5. priority changed to: "5 Medium"
    6. username: "hobbs"
  4. Ticket change [e36879423d] (rid 87794) by msofer on 2004-07-15 02:34:05:

    1. 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.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  5. Ticket change [c4ec9ab40d] (rid 111912) by mdejong on 2004-11-23 05:34:14:

    1. 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?
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. username: "mdejong"
  6. Ticket change [cda532e494] (rid 95930) by mdejong on 2005-07-24 10:01:38:

    1. 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.
      
      
    2. login: "mdejong"
    3. mimetype: "text/plain"
    4. username: "mdejong"
  7. Ticket change [db48397712] (rid 107930) by mdejong on 2007-03-16 08:54:47:

    1. closedate changed to: "2007-03-16T01:54:47"
    2. closer changed to: "mdejong"
    3. 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.
      
      
    4. login: "mdejong"
    5. mimetype: "text/plain"
    6. resolution changed to: "Out of Date"
    7. status changed to: "Closed"
    8. username: "mdejong"