Skip to content
Tcl Source Code History Of Ticket 719820ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 719820ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 719820ffffffffffffffffffffffffffffffffff

  1. Ticket change [114251cf61] (rid 95110) by mic42 on 2003-04-11 17:32:56:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The crash happens on Windows 2000 (SP2):
      
      simple script:
      tclsh
      % rename info ::tcl::info
      % foo
      Crash.
      
      I see this crash with the following versions:
      8.3.2 (TclPro 1.4.1)
      8.3.4 (ActiveState/own Build)
      8.4.0 (ActiveState/own Build)
      8.4.2 (ActiveState/own Build)
      8.5a0 (nearly CVS HEAD)
      
      I also see the crash with a threaded tclsh 8.4.2.
      
      I'll append the stack trace for 8.5a0 (no other debug
      build available)
      
      The bug dissapears if one calls:
      % interp recursionlimit {} 50
      % rename info ::tcl::info
      % foo
      too many nested evaluations (infinity loop?)
      
      running:
      proc recurse {int} {
           puts $int
           recurse [incr int]
      } 
      % recurse 0
      gives 428 as last value before the stack limit is reached.
      
      
      
      
      
      
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "mic42"
    9. subsystem initialized to: "None"
    10. title initialized to: "renaming info crashes tclsh"
    11. type initialized to: "Bug"
  2. Ticket change [74d6e8dcdb] (rid 105284) by mic42 on 2003-04-12 00:32:56:

    1. icomment:
      
      
      File Added - 47480: info-crash.stack
      
      
      
    2. login: "mic42"
    3. mimetype: "text/plain"
    4. username: "mic42"
  3. Add attachment "info-crash.stack" [d8271be802] (rid 107389) by mic42 on 2003-04-12 00:32:56.

  4. Ticket change [58e08e7626] (rid 117875) by mic42 on 2003-04-12 00:35:59:

    1. assignee changed to: "msofer"
    2. icomment:
      
      
      File Added - 47481: info-crash2.stack
      
      
      
    3. login: "mic42"
    4. mimetype: "text/plain"
    5. username: "mic42"
  5. Add attachment "info-crash2.stack" [f5c5bcd5d1] (rid 130170) by mic42 on 2003-04-12 00:35:59.

  6. Ticket change [007c88a9fa] (rid 119327) by hobbs on 2003-04-12 00:45:57:

    1. closedate changed to: "2003-04-11T17:45:57"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      
      This is completely valid.  The problem is that you are 
      renaming a core command without redefining it.  This 
      command is used by the 'unknown' command, which is what 
      gets invoked by the unknown 'foo' command.  You have to 
      redefine info before that.
      
      The crash on threaded shells with deep recursion is already 
      known and has to do with limited stack set by some OSes.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "hobbs"
  7. Ticket change [70beb7209a] (rid 100544) by msofer on 2003-04-12 00:59:55:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Jeff is refering to [Bug 705917]. I tend to disagree that
      this is 100% the same issue - although I did hint at it in
      my comment to pat hoyt's report in the chat.
      
      One thing we are seeing here is the failure of
      TclpCheckStackSpace() on W2000 (maybe too small a safety
      value TCL_WIN_STACK_THRESHOLD?).
      I seem to recall TpCSS being "alloca and see if it works",
      now it is inline assembly: did it get broken when changed?
      
      Reopening ...
      
      Michael: were those all threaded builds?
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "msofer"
  8. Ticket change [abd735ebfa] (rid 101186) by mic42 on 2003-04-12 01:29:11:

    1. icomment:
      Logged In: YES 
      user_id=302287
      
      I agree that this isn't recommended behaviour (renaming info
      without replacement). But tcl shouldn't crash even with it.
      
      Miguel: Those were all unthreaded builds, just one threaded
      tcl842, so it isn't the same issue as with the threaded
      crash on SuSE8.0 i reported.
      
      
      
      
      
    2. login: "mic42"
    3. mimetype: "text/plain"
    4. username: "mic42"
  9. Ticket change [52a58a952d] (rid 126347) by hobbs on 2003-04-12 01:35:02:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      FWIW, I can't crash a non-threaded build, I always get:
      
      % lorax [~/cvs/tktable/tktable] 731 > tclsh8.4
      % rename info ::tcl::info
      % foo
      too many nested evaluations (infinite loop?)
      
      I've changed the subject to be more accurate.  This is about a 
      problem with stack checking and recursion, not 'info' in 
      particular.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. title changed to: "recursion crash with tclsh"
    5. username: "hobbs"
  10. Ticket change [f4fbcd1b04] (rid 130018) by msofer on 2003-04-12 01:44:05:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Adding some more data points (reported by RS in the chat):
      
       - correct behaviour in 8.4.1, crash in 8.4.2
       
       - [proc rec args rec; rec] does not crash, even if the
      recursion limit is increased to 50000 before running. (??
      deduce that TpCSS basic functionality is OK ??)
      
       - [rename global foo; bar] does not crash (note that
      [global] is the first core command called in [unknown])
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  11. Ticket change [39b7f430e5] (rid 112438) by mistachkin on 2003-06-05 03:36:57:

    1. icomment:
      Logged In: YES 
      user_id=113501
      
      The stack overflow core dumps are fixed on several versions 
      of unix in patch #746378.
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  12. Ticket change [051bf30de6] (rid 88999) by mistachkin on 2003-06-05 04:57:47:

    1. icomment:
      Logged In: YES 
      user_id=113501
      
      I'm able to reproduce this now on Windows NT 4.0.
      
      This appears to be caused by code paths that do not hit 
      Tcl_InterpReady in TclEvalObjvInternal. In addition, there is 
      no Tcl_InterpReady check in TclObjInterpProc or 
      TclExecuteByteCode. However, I don't actually think the 
      check should be needed in TclExecuteByteCode as long as we 
      have the other two.
      
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  13. Ticket change [0c9ffb0010] (rid 114212) by mistachkin on 2003-06-05 04:58:17:

    1. priority changed to: "7 High"
  14. Ticket change [212c486af5] (rid 130536) by mistachkin on 2003-06-05 05:59:29:

    1. icomment:
      Logged In: YES 
      user_id=113501
      
      Increasing the TCL_WIN_STACK_THRESHOLD define to 0x8000 
      seems to fix the bug here (Windows NT 4.0).
      
      
      
      
    2. login: "mistachkin"
    3. mimetype: "text/plain"
    4. username: "mistachkin"
  15. Ticket change [ffeab3a70d] (rid 108845) by msofer on 2003-06-11 20:31:46:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      The call to TclInterpReady is now part of
      TclEvalObjvInternal - this is a fix for the new incarnation
      of [Bug 495830] in 8.4. This resolves the issue that some
      paths to TEOVI were missing the TIR call raised  in a
      previous comment.
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  16. Ticket change [7d5a9047ce] (rid 97226) by dgp on 2003-11-13 08:35:35:

    1. foundin changed to: "obsolete: 8.5a0"
  17. Ticket change [ab67ac6bd3] (rid 101104) by msofer on 2004-03-27 04:38:33:

    1. assignee changed to: "mistachkin"
    2. icomment:
      Logged In: YES 
      user_id=148712
      
      So: the bug is actually "too small a value of
      TCL_WIN_STACK_THRESHOLD"? 
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. resolution changed to: "None"
    6. status changed to: "Closed"
    7. username: "msofer"
  18. Ticket change [9d798df8a4] (rid 96313) by msofer on 2004-03-27 04:38:34:

    1. closedate changed to: "2004-03-26T21:38:34"
    2. closer changed to: "msofer"