Overview
| Artifact ID: | cab1f43b1f5a5b344bb3432f03c0f8d8ca3f027a |
|---|---|
| Ticket: | 219058ffffffffffffffffffffffffffffffffff
Minor comment fixup, and additional comment to help debug fr |
| User & Date: | nobody on 2000-10-26 01:10:00 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "obsolete: 8.3"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "69. Other"
- title changed to:
Minor comment fixup, and additional comment to help debug fr
- type changed to: "Bug"