From: Julien EMMANUEL Date: Mon, 30 Aug 2021 10:31:07 +0000 (+0200) Subject: Fix incorrect suggestion in segvhandler X-Git-Tag: v3.29~121^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/8b0c841802a3c838be8a907d1ce4524a3aa313dd Fix incorrect suggestion in segvhandler In case of access violation the error message suggested to set an ill-formed parameter value --- 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.