Overview
| Artifact ID: | 6b70d040945288eaa423923310cfad645ef7ef7b |
|---|---|
| Ticket: | 1084111fffffffffffffffffffffffffffffffff
memory leak in [array names] |
| User & Date: | pointsman on 2004-12-13 01:23:23 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
tcl head as of 2004-12-13 02:19:05 CET This script let tclsh8.5 (slowly) grow indefinitely: package require tcltest while {1} { namespace import ::tcltest::* namespace forget ::tcltest::* } (It's only 24 bytes per loop. That is, grows slow enough to watch it with top without real danger.) valgrind tells me, that the spot is: 24 bytes in 1 blocks are definitely lost in loss record 1 of 3 at 0x40027B98: malloc (vg_replace_malloc.c:153) by 0x40251A5D: TclpAlloc (../generic/tclAlloc.c:685) by 0x40259325: Tcl_Alloc (../generic/tclCkalloc.c:1018) by 0x402C511B: Tcl_NewObj (../generic/tclObj.c:628) by 0x402EA208: Tcl_ArrayObjCmd (../generic/tclVar.c:2924) by 0x40254CAB: TclEvalObjvInternal (../generic/tclBasic.c:3053) by 0x4028F528: TclExecuteByteCode (../generic/tclExecute.c:1629) by 0x4028DC16: TclCompEvalObj (../generic/tclExecute.c:980) by 0x402D6D5F: TclObjInterpProc (../generic/tclProc.c:1126) by 0x40254CAB: TclEvalObjvInternal (../generic/tclBasic.c:3053) by 0x40254EE4: Tcl_EvalObjv (../generic/tclBasic.c:3167) by 0x402BDC8C: Tcl_Import (../generic/tclNamesp.c:1392) by 0x402C01EC: NamespaceImportCmd (../generic/tclNamesp.c:3544) by 0x402BF279: Tcl_NamespaceObjCmd (../generic/tclNamesp.c:2800) by 0x40254CAB: TclEvalObjvInternal (../generic/tclBasic.c:3053) by 0x402557F5: Tcl_EvalEx (../generic/tclBasic.c:3537) by 0x402B4CF3: Tcl_FSEvalFileEx (../generic/tclIOUtil.c:1687) by 0x402BC0B4: Tcl_Main (../generic/tclMain.c:434) by 0x8048705: main (tclAppInit.c:87) by 0x4035D8AD: __libc_start_main (in /lib/libc.so.6) by 0x8048630: (within /usr/local/tcl-head/bin/tclsh8.5) - foundin changed to: "obsolete: 8.5a3"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "pointsman"
- subsystem changed to: "None"
- title changed to: "memory leak with namespace import"
- type changed to: "Bug"