From ef52b3903679c2e67fdc09e82c9f4fa33aa26cb3 Mon Sep 17 00:00:00 2001 From: Peter Conrad Date: Tue, 17 Sep 2019 08:04:23 +0200 Subject: [PATCH] Preserve crash in debug mode --- src/thread/thread_d.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/thread/thread_d.hpp b/src/thread/thread_d.hpp index c81ba1c..214c2f0 100644 --- a/src/thread/thread_d.hpp +++ b/src/thread/thread_d.hpp @@ -393,7 +393,10 @@ namespace fc { * a catch block; it fails to catch a yield while unwinding the stack, which * is probably just as likely to cause crashes */ if( std::current_exception() != std::exception_ptr() ) + { print_stacktrace( std::cerr ); + assert( std::current_exception() != std::exception_ptr() ); + } check_for_timeouts(); if( !current )