-
Notifications
You must be signed in to change notification settings - Fork 24
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
invalid read in CbcModel::setBestSolution() #159
Comments
Can't see any obvious recent changes to cause this. Looking at release 2_10_8, I think the call to setBestSolution at 7363 of CbcSolver.cpp is the one giving the error. Does the error go away if the argument model_.solver()->getNumCols(), |
Yes, that helps!
Thank you! |
Fixed by coin-or/Cbc@07f2287276c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have recently updated to the latest releases of Cbc, Cgl, Osi, Clp, CoinUtils.
On GAMS modellib model minlphix I sometimes get a crash on Windows (difficult to reproduce) and some serious complaints from valgrind on some memcopy within CbcModel.
The memcpy that is problematic is the last line of
Somehow is reads more bytes from
solution
than have been allocated.(Note that
numberColumns
is hereCoinMax(numberColumns, solver_->getNumCols())
.)The solution array has been allocated in the last line of:
Here,
n
is onlysolver_->getNumCols()
.More detailed log:
CC @jjhforrest
The text was updated successfully, but these errors were encountered: