Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2009-10-18
17:36 • Closed ticket [800925ffff]: more robust TclDbInitNewObj... plus 8 other chan... artifact: 4c67ad1258 user: mistachkin
17:36 • Ticket [800925ffff]: 4 changes artifact: 258fa740a4 user: mistachkin
2003-11-12
03:45 • Ticket [800925ffff]: 4 changes artifact: c8ffa08f0b user: dkf
2003-11-11
15:11 • Ticket [800925ffff]: 4 changes artifact: f800c9bfbc user: mistachkin
2003-10-13
06:38 • Ticket [800925ffff]: 5 changes artifact: 21b775e158 user: hobbs
2003-09-06
11:56 • Ticket [800925ffff]: 5 changes artifact: ee6c04a5e6 user: mistachkin
11:56 • Add attachment TclDbInitNewObj.diff.zip to ticket [800925ffffffffff|800... artifact: f45f4b1da1 user: mistachkin
2003-09-05
08:00 • New ticket [800925ffff] more robust TclDbInitNewObj.... artifact: 1b2b5efc41 user: mistachkin

more robust TclDbInitNewObj...

Closed / Fixed800925ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 17 years ago
Descriptionplain2003-09-05 08:00:19
While working on Tk bug #800419 (panic), I discovered 
that TclDbInitNewObj did not have access to the file and 
line number of the caller, like most of the other memory 
debugging functions do.  This is a very small and internal 
change.  I would really like this change to be done for 
both 8.4.x and HEAD.

From: void TclDbInitNewObj(objPtr)
    register Tcl_Obj *objPtr;

To: void TclDbInitNewObj(objPtr, file, line)
    register Tcl_Obj *objPtr;
    register CONST char *file;
    register int line;
mistachkinplain2003-09-06 11:56:41
File Added - 60784: TclDbInitNewObj.diff.zip

Logged In: YES 
user_id=113501

Patch attached. This small change was very helpful in finding 
recent memory/object allocation related bugs.
hobbsplain2003-10-13 06:38:43
Logged In: YES 
user_id=72656

This patch is incorrect - it assumes an objPtr with file and 
line info, which is not in the core currently.
mistachkinplain2003-11-11 15:11:04
Logged In: YES 
user_id=113501

I would appreciate help in writing a TIP (8.5) to modify 
Tcl_Obj to contain the necessary information. Additional 
information on all the proposed modifications is available at: 
http://wiki.tcl.tk/Tcl_Obj
dkfplain2003-11-12 03:45:51
Logged In: YES 
user_id=79902

Creating a TIP isn't hard.  What you need to do is to email
me some paragraphs explaining what you want to do and why. 
Code fragments (if present) should be *short* because of
restrictions imposed by publishing things to
comp.lang.tcl.announce, but you can always use a Tcl Patch
entry to hold the reference impl and refer to that in the TIP.

The other things I require are a real name and email address
(:^/) a proposed title, and a copyright declaration that
permits editing, publishing and other forms of reproduction
(mostly we use a release into the Public Domain - nobody's
going to make their fortune from TIPs! - but some people
prefer other kinds of copyright notice for whatever reason.)
 The copyright thing is crucial BTW; I dare not enter it
into our TIP system and publish the thing without it.

Of course, the closer it is in format to existing TIPs
(especially to the source format, which you can download for
every published TIP using the link at the bottom) the
better.  Hey, I'm at least as lazy as the next guy!  :^D
mistachkinplain2009-10-18 17:36:12
This issue is now closed.  See bug 988703 for more information.
mistachkinplain2009-10-18 17:36:19
allow_comments - 1
Log in (anonymous is fine) to add a comment.

Attachments: