diff --git a/LibOS/shim/src/bookkeep/shim_signal.c b/LibOS/shim/src/bookkeep/shim_signal.c index 61feab9a..7e270e0d 100644 --- a/LibOS/shim/src/bookkeep/shim_signal.c +++ b/LibOS/shim/src/bookkeep/shim_signal.c @@ -472,8 +472,9 @@ static void illegal_upcall (PAL_PTR event, PAL_NUM arg, PAL_CONTEXT * context) !context_is_internal(context) && !(lookup_vma((void *) arg, &vma)) && !(vma.flags & VMA_INTERNAL)) { - if (context) - debug("illegal instruction at 0x%08lx\n", context->IP); + + assert(context); + debug("illegal instruction at 0x%08lx\n", context->IP); uint8_t * rip = (uint8_t*)context->IP; /*