void vmod_ch_sighandler(int i){ VAS_Fail(__func__, __FILE__, __LINE__, "You asked for it", errno, 0); }
vmod_panic(const struct vrt_ctx *ctx, const char *str, ...) { va_list ap; const char *b; CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC); va_start(ap, str); b = VRT_String(ctx->ws, "PANIC: ", str, ap); va_end(ap); VAS_Fail("VCL", "", 0, b, 0, VAS_VCL); }
void VRT_panic(const struct sess *sp, const char *str, ...) { va_list ap; char *b; va_start(ap, str); b = VRT_String(sp->http->ws, "PANIC: ", str, ap); va_end(ap); VAS_Fail("VCL", "", 0, b, 0, 2); }
child_sigsegv_handler(int s, siginfo_t *si, void *c) { char buf[1024]; (void)s; (void)c; sprintf(buf, "Segmentation fault by instruction at %p", si->si_addr); VAS_Fail(__func__, __FILE__, __LINE__, buf, VAS_ASSERT); }