Ticket UUID: | 800925 | |||
Title: | more robust TclDbInitNewObj... | |||
Type: | RFE | Version: | None | |
Submitter: | mistachkin | Created on: | 2003-09-05 08:00:19 | |
Subsystem: | 41. Memory Allocation | Assigned To: | mistachkin | |
Priority: | 5 Medium | Severity: | ||
Status: | Closed | Last Modified: | 2009-10-18 17:36:19 | |
Resolution: | Fixed | Closed By: | mistachkin | |
Closed on: | 2009-10-18 10:36:19 | |||
Description: |
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; | |||
User Comments: |
mistachkin added on 2009-10-18 17:36:19:
allow_comments - 1 mistachkin added on 2009-10-18 17:36:12: This issue is now closed. See bug 988703 for more information. dkf added on 2003-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 mistachkin added on 2003-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 hobbs added on 2003-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. mistachkin added on 2003-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. |
Attachments:
- TclDbInitNewObj.diff.zip [download] added by mistachkin on 2003-09-06 11:56:41. [details]