Fix crash on QNX

This commit is contained in:
Gregory LEOCADIE
2025-03-25 14:20:22 +01:00
parent 4c341da1d2
commit f9855cfd9a
2 changed files with 8 additions and 0 deletions

View File

@@ -73,6 +73,8 @@ unw_is_signal_frame (unw_cursor_t *cursor)
arg = c->dwarf.as_arg;
ip = c->dwarf.ip;
if (unlikely(!ip))
return 0;
ret = (*a->access_mem) (as, ip, &w0, 0, arg);
if (ret < 0)

View File

@@ -251,6 +251,12 @@ trace_init_addr (unw_tdep_frame_t *f,
&& likely(dwarf_put (d, d->loc[UNW_ARM_R15], pc) >= 0)
&& likely((ret = unw_step (cursor)) >= 0))
*f = c->frame_info;
#if defined (__QNX__)
if (unw_is_signal_frame (cursor))
{
return NULL;
}
#endif
/* If unw_step() stopped voluntarily, remember that, even if it
otherwise could not determine anything useful. This avoids