Skip to content
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

Crash of Cbc C interface due to presolve #607

Open
ic-ds opened this issue Jul 5, 2023 · 0 comments
Open

Crash of Cbc C interface due to presolve #607

ic-ds opened this issue Jul 5, 2023 · 0 comments

Comments

@ic-ds
Copy link

ic-ds commented Jul 5, 2023

We are getting trouble with the following mps file:
crash.zip

Using Cbc.exe (2.10.10) leads to a sol file containing

Status unknown - objective value 0.00000000

But using the C interface dll with the following code leads to a nullptr access in CBC_solve():

Cbc_Model* model = CBC_newModel();
int error = CBC_readMps(model, "D:\\crash.mps");
if (error) {
  CBC_deleteModel(model);
  return;
}
error = CBC_solve(model);
CBC_deleteModel(model);

Switching off presolve prevents the crash.
But we cannot use this as workaround as we generate different problems.

Do you see other workarounds or is there a patch possible?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant