Artifacts Associated With Ticket 219058ffffffffffffffffffffffffffffffffff
Ticket change [cab1f43b1f] (rid 95402) by nobody on 2000-10-26 01:10:00:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 4262 RFE Version: 8.3 SubmitDate: '2000-02-28' LastModified: '2000-03-30' Severity: MED Status: Released Submitter: techsupp ChangedBy: hobbs OS: Linux OSVersion: Linux FixedDate: '2000-03-30' FixedInVersion: 8.3.1 ClosedDate: '2000-10-25' Name: mo CVS: today (Feb 28) DesiredBehavior: Could you add this patch? It fixes a comment and adds some more description to a really strange crasher bug that can happen if bad arguments are passed to Tcl_CreateObjCommand(). No actual code is changed by this patch. Patch: Index: generic/tclBasic.c =================================================================== RCS file: /cvsroot/tcl/generic/tclBasic.c,v retrieving revision 1.24 diff -u -r1.24 tclBasic.c --- tclBasic.c2000/01/21 02:25:251.24 +++ tclBasic.c2000/02/28 21:24:49 @@ -2025,8 +2025,8 @@ Tcl_Interp *interp;/* Interpreter in which to look * for command. */ char *cmdName;/* Name of desired command. */ - Tcl_CmdInfo *infoPtr;/* Where to store information about - * command. */ + Tcl_CmdInfo *infoPtr;/* Where to find information to + * store in the command. */ { Tcl_Command cmd; Command *cmdPtr; @@ -2313,6 +2313,16 @@ * created when a command was imported into a namespace, this client * data will be a pointer to a ImportedCmdData structure describing * the "real" command that this imported command refers to. + */ + +/* + * If you are getting a crash during the call to deleteProc and + * cmdPtr->deleteProc is a pointer to the function free(), the + * most likely cause is that your extension allocated memory + * for the clientData argument to Tcl_CreateObjCommand() with + * the ckalloc() macro and you are now trying to deallocate + * this memory with free() instead of ckfree(). You should + * pass a pointer to your own method that calls ckfree(). */ (*cmdPtr->deleteProc)(cmdPtr->deleteData); PatchFiles: generic/tclBasic.c Fixed in 8.3.1. -- 03/30/2000 hobbs - foundin initialized to: "obsolete: 8.3"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to:
Minor comment fixup, and additional comment to help debug fr
- type initialized to: "Bug"
Ticket change [d17a240d7e] (rid 113358) by welch on 2000-10-26 08:34:06:
- closedate changed to: "2000-10-26T01:34:06"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [20d9ba79ed] (rid 130486) by dgp on 2001-04-20 02:06:50:
- closedate changed to: "2001-04-19T19:06:50"
- closer changed to: "dgp"
- subsystem changed to: "45. Parsing and Eval"