From 950bfddd57308021be2b96fbb8b68c660dba9638 Mon Sep 17 00:00:00 2001 From: Dan Haffey Date: Wed, 16 Dec 2015 16:08:02 -0800 Subject: [PATCH] Fix stack overflow handling in Linux? --- noun/events.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/noun/events.c b/noun/events.c index 6636bff45..fa606b1d8 100644 --- a/noun/events.c +++ b/noun/events.c @@ -113,6 +113,11 @@ _ce_mapfree(void* map_v) c3_i u3e_fault(void* adr_v, c3_i ser_i) { + // Let the stack overflow handler run. + if ( 0 == ser_i ) { + return 0; + } + c3_w* adr_w = (c3_w*) adr_v; if ( (adr_w < u3_Loom) || (adr_w >= (u3_Loom + u3a_words)) ) {