Artifacts Associated With Ticket 1446864fffffffff
Ticket change [3ed9707765] (rid 121341) by msofer on 2006-03-10 00:57:02:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- comment initialized to:
As found by coverity on HEAD (applies to 8.4 too): tclBasic.c line 350 & 3294 tclEvent.c line 408 tclHash.c line 539 tclInterp.c line 2214 tclListObj.c line 830, 544, 333 & 179 tclNamesp.c line 6218 tclVar.c line 4667 tclUnixInit.c line 994
- foundin initialized to: "None"
- priority initialized to: "8"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "msofer"
- subsystem initialized to: "None"
- title initialized to: "segfaults if Tcl_Panic() returns"
- type initialized to: "Bug"
Ticket change [44744a7b8f] (rid 116712) by mistachkin on 2006-03-10 08:02:05:
- icomment:
Logged In: YES user_id=113501 Separate policy from mechanism... 1. The policy is that Tcl_Panic "must not return". 2. The mechanism is either to call the panicProc or the built-in panic proc. When the hook was put in for Tcl_SetPanicProc, you deferred that policy to the application programmer, not the core itself. You can't just un-defer it now. Changing Tcl_Panic to call abort() after the panicProc is a breaking change.
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [6a8e9c7adc] (rid 128173) by msofer on 2006-03-10 08:03:30:
- icomment:
Logged In: YES user_id=148712 Quotes from Panic.3 Tcl_PanicProc *panicProc (in) Procedure to report fatal error message and abort. To maintain consistency with the callers of Tcl_Panic, panicProc must not return; it must call abort. The current implementation of Tcl_Panic() permits it to return after a suitable returning panicProc has been defined. - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [35a3db97f2] (rid 106973) by msofer on 2006-03-10 08:08:40:
- icomment:
Logged In: YES user_id=148712 Plus many others that coverity missed, like tclVar.c line 3293. The core (and probably everybody else save joe) assumes that Tcl_Panic() does not return, as documented and suggested by the function's name.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [7d5e355afe] (rid 97227) by hobbs on 2006-03-10 09:37:21:
- icomment:
Logged In: YES user_id=72656 It is common knowledge that Tcl_SetPanicProc is the one mechanism that can be used to handle low memory conditions. In fact, it was one of the original reasons for being. Until we have an alternate documented mechanism, we should not change Tcl_Panic's behavior.
- login: "hobbs"
- mimetype: "text/plain"
- priority changed to: "7 High"
- username: "hobbs"
- icomment:
Ticket change [76c1c1b5c1] (rid 143162) by jan.nijtmans on 2015-09-23 11:26:03:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2457288.97642402"
- closer changed to: "jan.nijtmans"
- comment changed to:
As found by coverity on HEAD (applies to 8.4 too): tclBasic.c line 350 & 3294 tclEvent.c line 408 tclHash.c line 539 tclInterp.c line 2214 tclListObj.c line 830, 544, 333 & 179 tclNamesp.c line 6218 tclVar.c line 4667 tclUnixInit.c line 994
- icomment: "Fixed in trunk [4a27b0487a8d9860]."
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- severity changed to: "Minor"
- status changed to: "Closed"