From: Augustin Degomme Date: Thu, 30 Jan 2014 16:30:11 +0000 (+0100) Subject: add an error message in smpirun to point user to the stack_size parameter in case... X-Git-Tag: v3_11_beta~105 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/166f7f138b201513c778f4259f521ed59a24085a?ds=sidebyside 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 --- 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}