Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add an error message in smpirun to point user to the stack_size parameter in case...
authorAugustin Degomme <degomme@idpann.imag.fr>
Thu, 30 Jan 2014 16:30:11 +0000 (17:30 +0100)
committerAugustin Degomme <degomme@idpann.imag.fr>
Thu, 30 Jan 2014 16:30:11 +0000 (17:30 +0100)
This will only work for linux, probably, but shouldn't break other systems

src/smpi/smpirun.in

index 45f830b..842448a 100755 (executable)
@@ -420,6 +420,8 @@ fi
 ${EXEC} ${TRACEOPTIONS} ${SIMOPTS} ${PLATFORMTMP} ${APPLICATIONTMP}
 status=$?
 
 ${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}
 if [ -z "${KEEP}" ] ; then
    if [ -z "${PLATFORM}" ]; then
        rm ${PLATFORMTMP}