diff --git a/modules/core/src/system.cpp b/modules/core/src/system.cpp index ef9facd4f1..11d29fa846 100644 --- a/modules/core/src/system.cpp +++ b/modules/core/src/system.cpp @@ -1282,8 +1282,7 @@ void error( const Exception& exc ) if(breakOnError) { - static volatile int* p = 0; - *p = 0; + std::terminate(); } throw exc;