-
-
Notifications
You must be signed in to change notification settings - Fork 14
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 with ipopt 3.14.12_1, casadi 3.6.3_0 and libgomp >= 13 on Linux #91
Segfault with ipopt 3.14.12_1, casadi 3.6.3_0 and libgomp >= 13 on Linux #91
Comments
Originally reported in ami-iit/hippopt#8 (comment) . |
I reproduced the failure in CI in #90 and #91 (with and without re-render)
|
On C++, there is no segfault, the segfault is only on Python. I was able to obtain a really simple reproducer:
or even simpler:
The flags are:
So this seems some issue of Python with RTLD_DEEPBIND and ipopt linked with spral. |
Exploring via ldd which library is segfaulting when loaded via
None of the libraries linked by |
Indeed, the backtrace indicate a failure inside a libgomp function:
|
From https://conda-forge.org/feedstock-outputs/ I get that libgomp is produced by https://github.com/conda-forge/ctng-compilers-feedstock , and as there is no specific patch for that file (see https://github.com/conda-forge/ctng-compilers-feedstock/tree/845b9c62143c4c2b2af8e35736e64aa29d8c3e05/recipe/patches ), so the failure is in https://github.com/gcc-mirror/gcc/blob/releases/gcc-13.2.0/libgomp/env.c#L2062 . |
The issue happens with libgomp 13.2.0 and 13.1.0, but not with libgomp 12.* . |
@SDafarra a simple workaround is to install libgomp (if you want to use spral enabled in the ipopt 3.14.12_1 build). |
The crash is fixed, but a problem remains related to the use of ipopt+spral with CasADi Python bindings: #93 . |
TL;DR: A workaround is to pin
libgomp
to 12, i.e.mamba install libgomp=12
.Solution to issue cannot be found in the documentation.
Issue
Installed packages
Environment info
The text was updated successfully, but these errors were encountered: