https://projects.osmocom.org/https://projects.osmocom.org/favicon.ico?16647414092018-05-09T10:01:31ZOpen Source Mobile Communicationslibosmocore - Feature #2712: implement reproducible talloc context printout, i.e. without memory addresseshttps://projects.osmocom.org/issues/2712?journal_id=92312018-05-09T10:01:31Zlaforge
<ul><li><strong>Category</strong> set to <i>libosmocore</i></li><li><strong>Assignee</strong> set to <i>118</i></li></ul><p>This could also be useful in the context of TTCN3 tests. If there was a way to obtain a talloc report without address information via the VTY, it could be queried using the existing VTY interface code we have in TTCN3, in order to verify no memory leaks occurred during the execution of a given (or at some point, hopefully each) test case.</p> libosmocore - Feature #2712: implement reproducible talloc context printout, i.e. without memory addresseshttps://projects.osmocom.org/issues/2712?journal_id=151252019-07-11T15:35:47ZHoernchen
<ul><li><strong>Assignee</strong> changed from <i>118</i> to <i>Hoernchen</i></li></ul> libosmocore - Feature #2712: implement reproducible talloc context printout, i.e. without memory addresseshttps://projects.osmocom.org/issues/2712?journal_id=151262019-07-11T15:48:24Zfixeria
<ul></ul><p>Some general tips / ideas:</p>
<ul>
<li>the talloc_ctx_walk_cb() needs to be moved from libosmovty to libosmocore;</li>
<li>it should accept a pointer to the target char buffer instead of printing directly to the VTY;</li>
<li>it should accept a bitmask ('flags') where the caller can indicate whether to print addresses, references, etc. or not;</li>
<li>one of the flags (e.g. OSMO_BLABLA_F_VTY) should indicate the need to use VTY-specific new line symbol (i.e. VTY_NEWLINE).</li>
</ul> libosmocore - Feature #2712: implement reproducible talloc context printout, i.e. without memory addresseshttps://projects.osmocom.org/issues/2712?journal_id=151272019-07-11T15:54:12Zfixeria
<ul></ul><p>Also, it would probably make sense to use osmo_strbuf API in talloc_ctx_walk_cb(), i.e. accept a pointer to struct osmo_strbuf *buf.</p> libosmocore - Feature #2712: implement reproducible talloc context printout, i.e. without memory addresseshttps://projects.osmocom.org/issues/2712?journal_id=151972019-07-18T05:04:35Zlaforge
<ul><li><strong>Related to</strong> <i><a class="issue tracker-2 status-4 priority-2 priority-default" href="/issues/2781">Feature #2781</a>: Extend OsmBSC TTCN-3 test coverage regarding resource leaks</i> added</li></ul> libosmocore - Feature #2712: implement reproducible talloc context printout, i.e. without memory addresseshttps://projects.osmocom.org/issues/2712?journal_id=170302020-01-08T22:21:49Zlaforge
<ul><li><strong>Assignee</strong> deleted (<del><i>Hoernchen</i></del>)</li><li><strong>Priority</strong> changed from <i>Normal</i> to <i>Low</i></li></ul>