-
Notifications
You must be signed in to change notification settings - Fork 110
Exceptions not being properly caught on OS X #203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There is now a Minimum Reproducible Example:
|
What if it's const reference |
Could you be more specific? I am not aware of anything that could be changed to a |
sorry the exception itself.
Catch( const std::reference & foo) { }
|
For what it's worth, this issue seems to only appear for certain compilation commands, as a standalone build of the above MRE runs just fine with a script of the form:
but the MRE fails if the |
After some extensive bisection of linker commands, it appears that the problem is due to CMake automatically adding the linker command EDIT: After looking through the CMake module files (in |
It seems that this is a known problem: http://lists.mcs.anl.gov/pipermail/petsc-dev/2013-April/011992.html @knepley |
It seems that the fix is to configure MPICH with the option |
This issue appears to also effect GCC on OS X Sierra. And unfortunately configuring MPICH with the |
Does Open-MPI work? I wonder how coupled to MPICH this is. |
Unfortunately (fortunately?) it seems to be independent. Compiling
via |
@poulson : Did you find any fix to this abort while throwing exception ? I am facing the same issue on Sierra . |
It seems that exceptions are not being properly handled on OS X, as I see errors of the following form when running the
examples/lapack_like/Hilbert
driver, which is expected to throw exceptions when attempting to run Cholesky on the Hilbert matrix withfloat
anddouble
:The text was updated successfully, but these errors were encountered: