diff --git a/client/coproc_detect.cpp b/client/coproc_detect.cpp index 830fb632d9..6bc78496f0 100644 --- a/client/coproc_detect.cpp +++ b/client/coproc_detect.cpp @@ -539,8 +539,11 @@ void COPROCS::get( ati.get(use_all, descs, warnings, ignore_ati_dev); } #endif - get_opencl(use_all, warnings); - + if (setjmp(resume)) { + warnings.push_back("Caught SIGSEGV in OpenCL detection"); + } else { + get_opencl(use_all, warnings); + } signal(SIGSEGV, old_sig); #endif }