var-22.1 failing on trunk with TCL_MEM_DEBUG
Closed / Fixed19a8c9399d025831a15d5bd0047a005c799e844eCreated 10 years agoUpdated 10 years ago
Descriptionplain2017-05-21 15:22:58
With --enable-symbols=all (I presume TCL_MEM_DEBUG is the trigger), checkin [abcf4db5930f] introduced some test failures, of which var-22.1 seems to point at the root.
Referenced by1
f1c99ff14c[19a8c9399d] Plug mem leak in TIP 459 machinery. check-in2017-05-23 16:00:29
aspect Ticket [19a8c9399d]: 3 changes
[History diff]2017-05-21 15:23:27
jan.nijtmansplain2017-05-22 09:51:36
Thanks for the report! Testcase var-22.1 is a test for a memory leak. Commit [abcf4db5930f] starts keeping track of files loaded during package initialization in a Tcl_Obj* list. I suspect that the test-case sees this as a leak, even though in reality it isn't. For sure, the test-case needs to be adapted some way to correct this, or maybe I'm wrong and there is a leak somehow. But anyway, I don't think this can be considered critical. I will investigate further.
dgpplain2017-05-23 15:37:22
It appears that the TIP 459 implementation created a memory leak in a cycle of interp creation and deletion.
dgpplain2017-05-23 16:00:32
Looks like a simple lack of a required ckfree(). Fixed in trunk. Thank you for reporting the problem!
jan.nijtmansplain2017-05-24 08:43:02
Thanks Don, for fixing this!!!
Log in (anonymous is fine) to add a comment.