From daeb398dddbee6e665db5610d70e1ca86d705fe9 Mon Sep 17 00:00:00 2001 From: Leo-Besancon Date: Wed, 17 Jul 2024 10:02:03 +0200 Subject: [PATCH] Increase execution stack size (#4726) * Increase execution stack size * fmt * Update version to MAIN.2.3 (#4727) * review comment * Revert "Update version to MAIN.2.3 (#4727)" This reverts commit 3f07cede1074b9e187f8ca5df1e9c89eb1644afd. * Update worker.rs * update comment --- massa-execution-worker/src/worker.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/massa-execution-worker/src/worker.rs b/massa-execution-worker/src/worker.rs index a751dae5ce9..332ac92f25e 100644 --- a/massa-execution-worker/src/worker.rs +++ b/massa-execution-worker/src/worker.rs @@ -287,7 +287,12 @@ pub fn start_execution_worker( // launch the execution thread let input_data_clone = input_data.clone(); - let thread_builder = thread::Builder::new().name("execution".into()); + + // We set the stack size to 200 Mb instead of the default 2 Mb to avoid stack overflows + // as a temporary workaround fully fixed by https://github.com/massalabs/massa/pull/4729 + let thread_builder = thread::Builder::new() + .stack_size(200 * 1024 * 1024) + .name("execution".into()); let thread_handle = thread_builder .spawn(move || { ExecutionThread::new(config, input_data_clone, execution_state, selector).main_loop();