-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
segfault when shared library used from petsc: mac + openmpi only #110
Comments
This appears to be affecting mpich on mac now, too. I don't know enough to debug it or move forward anywhere. It is very strange, but still building with static mumps on mac fixes the problem. So it suggests to me that some compile flags are wrong. I don't know what kind of flag could cause a segfault in The petsc KSP tests pass with mumps when I try, but this example still segfaults. I'm somewhat inclined to switch the mac builds to static while working this out, since it fixes serious problems. But I can't tell the scope of what is affected. |
@minrk Could this be related to |
Thanks for the pointer. I have no idea, but I can try it. I'd love a test that relies only on mumps, but so far I can't do it with less than petsc4py. |
From MUMP's INSTALL documentation:
Can you try to build (I have no idea how) passing that define? If the issue is related to |
Thank you! I tried with
suggesting it perhaps isn't used that often. I'll try the use_dylibs next. |
I'd still love to have a regression test in this repo if anyone knows how to translate this to pure mumps calls, but I'm thrilled to have working mumps again on mac. |
I'm not sure whether to congratulate you or say I am sorry 🤣. |
Are you planning to submit the patch upstream to MUMPS developers? |
Solution to issue cannot be found in the documentation.
Issue
Originally reported in dolfinx-mpc, I've now reproduced the issue with just petsc4py with help from @jorgensd. Running a simple solve segfaults. Amazingly, this somehow only affects mac openmpi builds. All other combinations I've tested work fine.
And after some local rebuilds of petsc and mumps, I have narrowed this down to the shared-library builds of mumps that are the issue. When I rebuild
mumps-mpi
with static libs only and then rebuild petsc with that, there are no errors.The segfault:
Still working out what to do about that, but the shared-library builds on mac rely on patches I made, so something could be wrong there.
Installed packages
Environment info
The text was updated successfully, but these errors were encountered: