Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2011-08-07
04:21 • Ticket [3384840fff] assemble.test leaks status still Closed with 4 other ch... artifact: 25b769a691 user: msofer
03:53 • Closed ticket [3384840fff]. artifact: ac56bea7cc user: kennykb
02:55 • Ticket [3384840fff]: 4 changes artifact: c148ac495d user: kennykb
2011-08-06
23:36 • Ticket [3384840fff]: 4 changes artifact: edf59faca7 user: kennykb
2011-08-04
21:26 • Ticket [3384840fff]: 4 changes artifact: e2b1d7b8a8 user: msofer
21:25 • Add attachment res.leaks to ticket [3384840fff] artifact: 7a763d5978 user: msofer
21:25 • Ticket [3384840fff] assemble.test leaks status still Open with 4 other chan... artifact: c09f26898b user: msofer
21:14 • Ticket [3384840fff]: 4 changes artifact: dfa7ee1e3c user: dkf
20:41 • Add attachment res.leaks to ticket [3384840fff] artifact: ddc63cdee5 user: msofer
20:41 • Ticket [3384840fff] assemble.test leaks status still Open with 4 other chan... artifact: c659945d8e user: msofer
20:40 • Add attachment res to ticket [3384840fff] artifact: cb12b0c951 user: msofer
20:40 • Ticket [3384840fff] assemble.test leaks status still Open with 4 other chan... artifact: 4eb93a98ce user: msofer
20:40 • Open ticket [3384840fff]. artifact: 28cbbe4b4a user: msofer
20:20 • Ticket [3384840fff]: 4 changes artifact: 23f797b433 user: msofer
20:18 • Closed ticket [3384840fff]. artifact: 3d0735a6d3 user: dkf
2011-08-02
23:28 • Ticket [3384840fff]: 1 change artifact: 8247c90774 user: msofer
23:27 • Add attachment res.leaks to ticket [3384840fff] artifact: e6150d6e8b user: msofer
23:27 • Ticket [3384840fff] assemble.test leaks status still Open with 4 other chan... artifact: 3f664350db user: msofer
23:26 • Add attachment res to ticket [3384840fff] artifact: 9f7915e5e2 user: msofer
23:26 • Ticket [3384840fff] assemble.test leaks status still Open with 4 other chan... artifact: 988cc63a49 user: msofer
16:26 • New ticket [3384840fff]. artifact: 02e549cf42 user: msofer

assemble.test leaks

Closed / Fixed3384840fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 15 years ago
Descriptionplain2011-08-02 16:26:32
Running assemble.test under valgrind shows very many leaks - 107 different stack traces of depth 10.

Attaching the full valgrind output and a summary of leaks, grouped by identical stack traces.
msoferplain2011-08-02 23:26:33
File Added - 420070: res
msoferplain2011-08-02 23:27:48
File Added - 420071: res.leaks
msofer Ticket [3384840fff]: 1 change [History diff]2011-08-02 23:28:34
dkfplain2011-08-04 20:18:16
allow_comments - 1

Was due to GetNextOperand doing Tcl_Obj allocation yet some callers of it already holding a reference to a Tcl_Obj in the out parameter. Oops!

Please recheck, but I think that's the issue squelched.
msoferplain2011-08-04 20:20:35
Fix confirmed, thx
msoferplain2011-08-04 20:40:13
allow_comments - 0

Ouch, still 41 leaks to go :(

Attaching new reports in a minute
msoferplain2011-08-04 20:40:58
File Added - 420268: res
msoferplain2011-08-04 20:41:24
File Added - 420269: res.leaks
dkfplain2011-08-04 21:14:40
That should be a bunch more; definitely not cleared all of them though, as some are coupled in ways I don't yet grok.
msoferplain2011-08-04 21:25:56
File Added - 420275: res.leaks
msoferplain2011-08-04 21:26:28
good job, 24 more to go :)
kennykbplain2011-08-06 23:36:01
Plugged another leak.  The one that's puzzling me now is that there is a cascade of leaks appearing from the test cases 'assemble-30.[45]' (at least).  It appears to be leaking a registered literal.  Refcount imbalance on error exit from the assembler?
kennykbplain2011-08-07 02:55:29
Hah.  When you're abandoning a CompileEnv because of a compile-time error, you have to clean up its literal pool and auxdata manually.  Who knew?  Still a few leaks left, leaving the bug open.
kennykbplain2011-08-07 03:53:22
And it's also necessary to clean up all the bits and pieces that TIP 280 leaves behind  I think that's the last one from miguel's list.
msoferplain2011-08-07 04:21:17
I don't see any more leaks in assemble.test ...
Log in (anonymous is fine) to add a comment.

Attachments: