From: Jérémie Galarneau Date: Sat, 23 Jul 2016 19:59:30 +0000 (-0400) Subject: Fix: don't assert on lib unload failure X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=93830bc19f9db43f419eeecd8d292a5902d1c712;p=deliverable%2Fbabeltrace.git Fix: don't assert on lib unload failure A library's load event might have been missed because of discarded events. In this scenario, it is expected that its mapping will not be found on unload. Signed-off-by: Jérémie Galarneau --- diff --git a/lib/debug-info.c b/lib/debug-info.c index 212238640..6acf17465 100644 --- a/lib/debug-info.c +++ b/lib/debug-info.c @@ -746,8 +746,8 @@ void handle_lib_unload_event(struct debug_info *debug_info, } key_ptr = (gpointer) &baddr; - assert(g_hash_table_remove(proc_dbg_info_src->baddr_to_bin_info, - key_ptr)); + (void) g_hash_table_remove(proc_dbg_info_src->baddr_to_bin_info, + key_ptr); end: return; }