|
2001-04-20
| ||
| 02:06 | • Ticket [219058ffff] Minor comment fixup, and additional comment to help debug fr... artifact: 20d9ba79ed user: dgp | |
|
2000-10-26
| ||
| 08:34 | • Closed ticket [219058ffff]. artifact: d17a240d7e user: welch | |
| 01:10 | • New ticket [219058ffff]. artifact: cab1f43b1f user: nobody | |
Minor comment fixup, and additional comment to help debug fr
Closed / Fixed219058ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:10:00
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
welch Closed ticket [219058ffff].
[History diff]2000-10-26 08:34:06
dgp Ticket [219058ffff]: 3 changes
[History diff]2001-04-20 02:06:50
Log in (anonymous is fine) to add a comment.