From cec49bceba2427c45f184c27838ae3715344ca3d Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 4 Jul 2019 14:56:55 +0200 Subject: [PATCH 1/1] Just keep the same exception_ptr (no copy). See https://stackoverflow.com/q/37249698 or https://stackoverflow.com/q/30580128 Let's see if it helps for issue simgrid/simgrid#27. --- src/kernel/activity/CommImpl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/kernel/activity/CommImpl.cpp b/src/kernel/activity/CommImpl.cpp index 4020b9c22f..8d6c7e37bd 100644 --- a/src/kernel/activity/CommImpl.cpp +++ b/src/kernel/activity/CommImpl.cpp @@ -692,8 +692,7 @@ void CommImpl::finish() try { std::rethrow_exception(simcall->issuer->exception_); } catch (simgrid::Exception& e) { - e.value = rank; - simcall->issuer->exception_ = std::make_exception_ptr(e); + e.value = rank; } } -- 2.20.1