From 44e9da269268818b188f95b0608ef3872e9ac288 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Tue, 6 Jun 2023 16:44:50 -0700 Subject: [PATCH] callgraph: be more graceful with unwind failures --- src/libsysprof-analyze/sysprof-callgraph.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libsysprof-analyze/sysprof-callgraph.c b/src/libsysprof-analyze/sysprof-callgraph.c index f77c7e9f..aff9b6b3 100644 --- a/src/libsysprof-analyze/sysprof-callgraph.c +++ b/src/libsysprof-analyze/sysprof-callgraph.c @@ -153,7 +153,7 @@ sysprof_callgraph_add_trace (SysprofCallgraph *self, SysprofCallgraphNode *parent; g_assert (SYSPROF_IS_CALLGRAPH (self)); - g_assert (n_symbols > 2); + g_assert (n_symbols >= 2); g_assert (symbols[n_symbols-1] == self->everything); parent = &self->root; @@ -232,7 +232,6 @@ sysprof_callgraph_add_traceable (SysprofCallgraph *self, stack_depth, &final_context); - g_assert (n_symbols > 0); g_assert (n_symbols <= stack_depth); /* We saved 3 extra spaces for these above so that we can