From 8b0c841802a3c838be8a907d1ce4524a3aa313dd Mon Sep 17 00:00:00 2001 From: Julien EMMANUEL Date: Mon, 30 Aug 2021 12:31:07 +0200 Subject: [PATCH] Fix incorrect suggestion in segvhandler In case of access violation the error message suggested to set an ill-formed parameter value --- src/simix/smx_global.cpp | 2 +- teshsuite/kernel/stack-overflow/stack-overflow.tesh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simix/smx_global.cpp b/src/simix/smx_global.cpp index 3256da84cd..554ba7364c 100644 --- a/src/simix/smx_global.cpp +++ b/src/simix/smx_global.cpp @@ -73,7 +73,7 @@ static void segvhandler(int signum, siginfo_t* siginfo, void* /*context*/) "Access violation or Bus error detected.\n" "This probably comes from a programming error in your code, or from a stack\n" "overflow. If you are certain of your code, try increasing the stack size\n" - " --cfg=contexts/stack-size=XXX (current size is %u KiB).\n" + " --cfg=contexts/stack-size:XXX (current size is %u KiB).\n" "\n" "If it does not help, this may have one of the following causes:\n" "a bug in SimGrid, a bug in the OS or a bug in a third-party libraries.\n" diff --git a/teshsuite/kernel/stack-overflow/stack-overflow.tesh b/teshsuite/kernel/stack-overflow/stack-overflow.tesh index fc8a1168a6..58dc9ff13d 100644 --- a/teshsuite/kernel/stack-overflow/stack-overflow.tesh +++ b/teshsuite/kernel/stack-overflow/stack-overflow.tesh @@ -4,7 +4,7 @@ $ ${bindir:=.}/stack-overflow --cfg=contexts/stack-size:96 ${srcdir:=.}/examples > Access violation or Bus error detected. > This probably comes from a programming error in your code, or from a stack > overflow. If you are certain of your code, try increasing the stack size -> --cfg=contexts/stack-size=XXX (current size is 96 KiB). +> --cfg=contexts/stack-size:XXX (current size is 96 KiB). > > If it does not help, this may have one of the following causes: > a bug in SimGrid, a bug in the OS or a bug in a third-party libraries. -- 2.20.1