Change in osmo-remsim[master]: client: Enable talloc NULL context tracking

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Sat Dec 14 22:59:58 UTC 2019


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-remsim/+/16592 )


Change subject: client: Enable talloc NULL context tracking
......................................................................

client: Enable talloc NULL context tracking

Change-Id: I41ac5437e9262cf9e5a6e92db9b733902c91755b
---
M src/simtrace2-remsim_client.c
1 file changed, 3 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-remsim refs/changes/92/16592/1

diff --git a/src/simtrace2-remsim_client.c b/src/simtrace2-remsim_client.c
index fc5ac55..622f150 100644
--- a/src/simtrace2-remsim_client.c
+++ b/src/simtrace2-remsim_client.c
@@ -648,6 +648,8 @@
 {
 	OSMO_ASSERT(signal == SIGUSR1);
 	talloc_report_full(g_tall_ctx, stderr);
+	printf("===== NULL\n");
+	talloc_report_full(NULL, stderr);
 }
 
 static void print_welcome(void)
@@ -790,6 +792,7 @@
 
 	signal(SIGUSR1, handle_sig_usr1);
 
+	talloc_enable_null_tracking();
 	g_tall_ctx = talloc_named_const(NULL, 0, "global");
 	talloc_asn1_ctx = talloc_named_const(g_tall_ctx, 0, "asn1");
 	msgb_talloc_ctx_init(g_tall_ctx, 0);

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-remsim/+/16592
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-remsim
Gerrit-Branch: master
Gerrit-Change-Id: I41ac5437e9262cf9e5a6e92db9b733902c91755b
Gerrit-Change-Number: 16592
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191214/98374731/attachment.htm>


More information about the gerrit-log mailing list