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
Improve GLPK error handling #19525
Comments
Dependencies: #19527 |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
Commit: |
Upstream: Reported upstream. No feedback yet. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed upstream from Reported upstream. No feedback yet. to Reported upstream. Developers acknowledge bug. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed upstream from Reported upstream. Developers acknowledge bug. to Fixed upstream, but not in a stable release. |
Changed upstream from Fixed upstream, but not in a stable release. to Fixed upstream, in a later stable release. |
Changed upstream from Fixed upstream, in a later stable release. to Not yet reported upstream; Will do shortly. |
This comment has been minimized.
This comment has been minimized.
comment:14
Upstream claims we are mis-using the GLPK error hook. They are probably right. However, given that I'd like to keep "upgrade GLPK" separated from this ticket, I still propose to review this ticket as-is and then deal with the upgrade on a new ticket. |
Changed upstream from Not yet reported upstream; Will do shortly. to Fixed upstream, in a later stable release. |
comment:15
Does a reviewer need to create a patched GLPK tarball himself? |
comment:16
Replying to @dimpase:
No. This isn't a GLPK upgrade. |
This comment has been minimized.
This comment has been minimized.
comment:18
Any news on the upstream situation? |
comment:19
does not apply on the latest beta |
Changed branch from u/jdemeyer/improve_glpk_error_handling to u/vdelecroix/19525 |
comment:29
A commit to fix changes in error messages. New commits:
|
comment:30
See also #10232 |
comment:31
Indeed, in order to fix #10232 there need to be the appropriate |
comment:32
Jeroen, do you prefer another ticket to add the appropriate |
comment:33
If yes, then the ticket is good to go from my point of view. |
Reviewer: Vincent Delecroix |
comment:35
Fails on 32-bit
|
Changed branch from u/vdelecroix/19525 to u/jdemeyer/19525 |
comment:37
This should do the trick... New commits:
|
Changed branch from u/jdemeyer/19525 to |
This ticket adds a proper error handler for GLPK (similar to what we already have for PARI, NTL, ...). It suffices to add
sig_on()
/sig_off()
around a GLPK call to get an error message.Some more cleanup is also done:
MIPSolverException
to just inherit fromRuntimeError
without any custom implementation.MemoryAllocator
in a few places to make some allocations safer.This branch requires a patch to GLPK, a modified version of it was accepted upstream: http://lists.gnu.org/archive/html/help-glpk/2015-11/msg00008.html
Upstream: Fixed upstream, in a later stable release.
CC: @nathanncohen
Component: cython
Author: Jeroen Demeyer
Branch/Commit:
76a11fd
Reviewer: Vincent Delecroix
Issue created by migration from https://trac.sagemath.org/ticket/19525
The text was updated successfully, but these errors were encountered: