try {
XBT_INFO("Waiting a message on %s", mailbox->get_cname());
payload = static_cast<double*>(mailbox->get());
- comp_size = *payload;
xbt_assert(payload != nullptr, "mailbox->get() failed");
+ comp_size = *payload;
if (comp_size < 0) { /* - Exit when -1.0 is received */
XBT_INFO("I'm done. See you!");
delete payload;
extern "C" void _gfortran_set_args(int, char **);
#endif
-#ifndef RTLD_DEEPBIND
-/* RTLD_DEEPBIND is a bad idea of GNU ld that obviously does not exist on other platforms
- * See https://www.akkadia.org/drepper/dsohowto.pdf
- * and https://lists.freebsd.org/pipermail/freebsd-current/2016-March/060284.html
-*/
-#define RTLD_DEEPBIND 0
-#endif
-
#if HAVE_PAPI
#include "papi.h"
std::string papi_default_config_name = "default";
rank++;
// Load the copy and resolve the entry point:
- void* handle = dlopen(target_executable.c_str(), RTLD_LAZY | RTLD_LOCAL | RTLD_DEEPBIND);
+ void* handle = dlopen(target_executable.c_str(), RTLD_LAZY | RTLD_LOCAL);
int saved_errno = errno;
if (simgrid::config::get_value<bool>("smpi/keep-temps") == false) {
unlink(target_executable.c_str());
then
export TSAN_OPTIONS="memory_limit_mb=1500"
SANITIZER_OPTIONS="-Denable_address_sanitizer=OFF -Denable_undefined_sanitizer=OFF -Denable_thread_sanitizer=ON"
- export SMPI_PRIVATIZATION="mmap" # TSAN don't play well with dlopen
elif [ "${SANITIZER}" = "undefined" ]
then
export UBSAN_OPTIONS="print_stacktrace=1"