-
Notifications
You must be signed in to change notification settings - Fork 16
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
new release 0.60.7 introduces PulpSolverError (free(): invalid pointer) on previously working code #93
Comments
I couldn't say from the diff in the source what would cause this. If |
I could replicate this in a fresh conda environment. It's not necessary to use PuLP or even try to solve a MIP. Just starting cbc causes it to crash.
But so far, I can't get How did you determine it's CGL that's the issue? Does rolling back CGL also roll back other packages? Or is it really just dropping in a different version of CGL with the newest versions of all other packages? I wouldn't think it would happily do that. |
Everything looks fine on the builds, but I think what could have happened is that I might have merged pull requests in the wrong order for the update versions and accidentally caused Cbc 2.10.9 to be built with Cgl 0.60.6 (see here). In theory, this shouldn't cause problems, as it should be fine to drop in 0.60.7 in place of 0.60.7, but maybe we somehow introduced a breaking change? I have no idea how to force a re-build, but I'll investigate a bit. |
OK, now with |
To address coin-or/Cgl#93.
@tkralphs So I determined cgl was the root cause by systematically building new conda environment with different versions of dependencies & running the .py file, ie use default resolver (latest release) versions of all dependencies and roll back one dependency. Here are all the dependencies I tested: -pulp=2.7.0 (default resolver) |
This is great, thanks for doing that. Let's hope the re-build fixes things. |
🤞 thanks for the quick response. |
It works! |
And now it breaks when dropping in 0.60.6, so we must have introduced some kind of breaking change :(. |
Hi.
coin-or-cgl 0.60.7 release introduced PuLPSolverError on previously working code. With msg=True, the underlying error was
free(): invalid pointer
Replicating this error:
This fails for me in both linux and mac (Macbook Pro M1 OS12.6) environments. Using Python 3.8 pulp 2.7.0
Download Sudoku2.py from PuLP User Guide sudoku2 example.
yields a solution without error
yields
The text was updated successfully, but these errors were encountered: