From 476a79fe2fc6c4c7b809d0b359ad041a1034ffce Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 1 Sep 2022 20:23:16 -0700 Subject: Substantially increase context_t stack size It's nearly free to do so, because it's just virtual address space. @davidbiancolin recently fell into this pit when using context_t with VCS. --- fesvr/context.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fesvr/context.cc') diff --git a/fesvr/context.cc b/fesvr/context.cc index ca73813..1dceeec 100644 --- a/fesvr/context.cc +++ b/fesvr/context.cc @@ -49,7 +49,7 @@ void context_t::init(void (*f)(void*), void* a) #ifdef USE_UCONTEXT getcontext(context.get()); context->uc_link = creator->context.get(); - context->uc_stack.ss_size = 64*1024; + context->uc_stack.ss_size = 1024 * 1024; context->uc_stack.ss_sp = new void*[context->uc_stack.ss_size/sizeof(void*)]; #ifndef GLIBC_64BIT_PTR_BUG makecontext(context.get(), (void(*)(void))&context_t::wrapper, 1, this); -- cgit v1.1