From aaea1980e17ae3517ea673935837a135eacef3b2 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sat, 5 Apr 2014 22:30:42 +0200 Subject: [PATCH] Add one more failing test. An assertion is failing in lmm_print when running with --log=surf.thres:debug: ** SimGrid: UNCAUGHT EXCEPTION received on ./bug-17132(0): category: unknown error; value: 0 ** Incorrect value (10000000000.000002 is not smaller than 10000000000.000000): 1.90735e-06 ** Thrown by () in this process [0.000013] [...]/src/xbt/ex.c:144: [xbt_ex/CRITICAL] Incorrect value (10000000000.000002 is not smaller than 10000000000.000000): 1.90735e-06 ** In _Z9lmm_printP10lmm_system() at [...]/src/surf/maxmin.cpp:568 ** In lmm_solve() at [...]/src/surf/maxmin.cpp:799 ** In _ZN5Model18shareResourcesLazyEd() at [...]/src/surf/surf_interface.cpp:531 ** In _ZN5Model14shareResourcesEd() at [...]/src/surf/surf_interface.cpp:512 ** In _ZN21WorkstationCLM03Model14shareResourcesEd() at [...]/src/surf/workstation_clm03.cpp:82 ** In surf_solve() at [...]/src/surf/surf_c_bindings.cpp:80 ** In SIMIX_run() at [...]/src/simix/smx_global.c:377 ** In smpi_main() at [...]/src/simgrid/sg_config.c:1001 ** In main() at [...]/src/smpi/smpi_global.c:472 Aborted It looks like a rounding error, but I'm not sure if the problem in lmm_print itself, or before. --- buildtools/Cmake/AddTests.cmake | 3 ++- teshsuite/bug-17132/CMakeLists.txt | 1 + teshsuite/bug-17132/bug-17132-surf-debug.tesh | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 teshsuite/bug-17132/bug-17132-surf-debug.tesh diff --git a/buildtools/Cmake/AddTests.cmake b/buildtools/Cmake/AddTests.cmake index 1b7ea2c81c..106e4c3753 100644 --- a/buildtools/Cmake/AddTests.cmake +++ b/buildtools/Cmake/AddTests.cmake @@ -446,7 +446,8 @@ if(NOT enable_memcheck) ADD_TEST(smpi-compute-thread ${TESH_COMMAND} ${TESH_OPTION} --cfg contexts/factory:thread --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/compute.tesh) # https://gforge.inria.fr/tracker/index.php?func=detail&aid=17132&group_id=12&atid=165 - ADD_TEST(smpi-bug-17132 ${TESH_COMMAND} ${TESH_OPTION} --cfg contexts/factory:thread --setenv srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/bug-17132 --cd ${CMAKE_BINARY_DIR}/teshsuite/bug-17132 ${CMAKE_HOME_DIRECTORY}/teshsuite/bug-17132/bug-17132.tesh) + ADD_TEST(smpi-bug-17132 ${TESH_COMMAND} ${TESH_OPTION} --cfg contexts/factory:thread --setenv srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/bug-17132 --cd ${CMAKE_BINARY_DIR}/teshsuite/bug-17132 ${CMAKE_HOME_DIRECTORY}/teshsuite/bug-17132/bug-17132.tesh) + ADD_TEST(smpi-bug-17132-surf-debug ${TESH_COMMAND} ${TESH_OPTION} --cfg contexts/factory:thread --setenv srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/bug-17132 --cd ${CMAKE_BINARY_DIR}/teshsuite/bug-17132 ${CMAKE_HOME_DIRECTORY}/teshsuite/bug-17132/bug-17132-surf-debug.tesh) if (NOT WIN32) ADD_TEST(smpi-shared-thread ${TESH_COMMAND} ${TESH_OPTION} --cfg contexts/factory:thread --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/shared.tesh) diff --git a/teshsuite/bug-17132/CMakeLists.txt b/teshsuite/bug-17132/CMakeLists.txt index f2000e0c22..87b5a824ea 100644 --- a/teshsuite/bug-17132/CMakeLists.txt +++ b/teshsuite/bug-17132/CMakeLists.txt @@ -17,6 +17,7 @@ if(enable_smpi) set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/bug-17132.tesh + ${CMAKE_CURRENT_SOURCE_DIR}/bug-17132-surf-debug.tesh PARENT_SCOPE) set(xml_files ${xml_files} diff --git a/teshsuite/bug-17132/bug-17132-surf-debug.tesh b/teshsuite/bug-17132/bug-17132-surf-debug.tesh new file mode 100644 index 0000000000..92568830d9 --- /dev/null +++ b/teshsuite/bug-17132/bug-17132-surf-debug.tesh @@ -0,0 +1,2 @@ +! output ignore +$ ../../smpi_script/bin/smpirun -np 16 -platform ${srcdir:=.}/small_platform.xml -hostfile ${srcdir:=.}/hostfile.txt ./bug-17132 --cfg=smpi/cpu_threshold:-1 --log=surf.thres:debug -- 2.20.1