Artifacts Associated With Ticket 719820ffffffffff
Ticket change [114251cf61] (rid 95110) by mic42 on 2003-04-11 17:32:56:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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. - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "mic42"
- subsystem initialized to: "None"
- title initialized to: "renaming info crashes tclsh"
- type initialized to: "Bug"
Ticket change [74d6e8dcdb] (rid 105284) by mic42 on 2003-04-12 00:32:56:
- icomment:
File Added - 47480: info-crash.stack
- login: "mic42"
- mimetype: "text/plain"
- username: "mic42"
- icomment:
Add attachment "info-crash.stack" [d8271be802] (rid 107389) by mic42 on 2003-04-12 00:32:56.
Ticket change [58e08e7626] (rid 117875) by mic42 on 2003-04-12 00:35:59:
- assignee changed to: "msofer"
- icomment:
File Added - 47481: info-crash2.stack
- login: "mic42"
- mimetype: "text/plain"
- username: "mic42"
Add attachment "info-crash2.stack" [f5c5bcd5d1] (rid 130170) by mic42 on 2003-04-12 00:35:59.
Ticket change [007c88a9fa] (rid 119327) by hobbs on 2003-04-12 00:45:57:
- closedate changed to: "2003-04-11T17:45:57"
- closer changed to: "hobbs"
- 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.
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "hobbs"
Ticket change [70beb7209a] (rid 100544) by msofer on 2003-04-12 00:59:55:
- 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?
- login: "msofer"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "msofer"
- icomment:
Ticket change [abd735ebfa] (rid 101186) by mic42 on 2003-04-12 01:29:11:
- 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.
- login: "mic42"
- mimetype: "text/plain"
- username: "mic42"
- icomment:
Ticket change [52a58a952d] (rid 126347) by hobbs on 2003-04-12 01:35:02:
- 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.
- login: "hobbs"
- mimetype: "text/plain"
- title changed to: "recursion crash with tclsh"
- username: "hobbs"
- icomment:
Ticket change [f4fbcd1b04] (rid 130018) by msofer on 2003-04-12 01:44:05:
- 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])
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [39b7f430e5] (rid 112438) by mistachkin on 2003-06-05 03:36:57:
- icomment:
Logged In: YES user_id=113501 The stack overflow core dumps are fixed on several versions of unix in patch #746378.
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [051bf30de6] (rid 88999) by mistachkin on 2003-06-05 04:57:47:
- 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.
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [0c9ffb0010] (rid 114212) by mistachkin on 2003-06-05 04:58:17:
- priority changed to: "7 High"
Ticket change [212c486af5] (rid 130536) by mistachkin on 2003-06-05 05:59:29:
- 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).
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [ffeab3a70d] (rid 108845) by msofer on 2003-06-11 20:31:46:
- 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.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [7d5a9047ce] (rid 97226) by dgp on 2003-11-13 08:35:35:
- foundin changed to: "obsolete: 8.5a0"
Ticket change [ab67ac6bd3] (rid 101104) by msofer on 2004-03-27 04:38:33:
- assignee changed to: "mistachkin"
- icomment:
Logged In: YES user_id=148712 So: the bug is actually "too small a value of TCL_WIN_STACK_THRESHOLD"?
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "None"
- status changed to: "Closed"
- username: "msofer"
Ticket change [9d798df8a4] (rid 96313) by msofer on 2004-03-27 04:38:34:
- closedate changed to: "2004-03-26T21:38:34"
- closer changed to: "msofer"