From 93830bc19f9db43f419eeecd8d292a5902d1c712 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Sat, 23 Jul 2016 15:59:30 -0400 Subject: [PATCH] Fix: don't assert on lib unload failure MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- lib/debug-info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/debug-info.c b/lib/debug-info.c index 21223864..6acf1746 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; } -- 2.34.1