From f0aab63c26a2eb1a80385345ae2e225d62b12645 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Thu, 9 Jul 2020 16:50:23 -0400 Subject: [PATCH] fix: hack to avoid mysterious segfault --- runtime/src/sandbox.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/runtime/src/sandbox.c b/runtime/src/sandbox.c index 7051c32..e056fed 100644 --- a/runtime/src/sandbox.c +++ b/runtime/src/sandbox.c @@ -276,6 +276,11 @@ done: /* Cleanup connection and exit sandbox */ sandbox_close_http(sandbox); worker_thread_on_sandbox_exit(sandbox); + + /* This assert prevents a segfault discussed in + * https://github.com/phanikishoreg/awsm-Serverless-Framework/issues/66 + */ + assert(0); } /**