From 166f7f138b201513c778f4259f521ed59a24085a Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Thu, 30 Jan 2014 17:30:11 +0100 Subject: [PATCH] add an error message in smpirun to point user to the stack_size parameter in case of segfault This will only work for linux, probably, but shouldn't break other systems --- src/smpi/smpirun.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/smpi/smpirun.in b/src/smpi/smpirun.in index 45f830bcbb..842448ab70 100755 --- a/src/smpi/smpirun.in +++ b/src/smpi/smpirun.in @@ -420,6 +420,8 @@ fi ${EXEC} ${TRACEOPTIONS} ${SIMOPTS} ${PLATFORMTMP} ${APPLICATIONTMP} status=$? +if [[ $status -eq 139 ]]; then echo "ERROR: A segmentation fault was triggered. A common in simgrid cause may be the use of a too small stack size for the simulated processes (default 128KB), please see contexts/stack_size parameter"; fi + if [ -z "${KEEP}" ] ; then if [ -z "${PLATFORM}" ]; then rm ${PLATFORMTMP} -- 2.20.1