| 7 | - The doctest of `add_linear_constraint_vector` from generic_backend.pyx (which is never run for any real backend!), when applied to COIN or GLPK leads to segfaults: |
| 8 | {{{ |
| 9 | sage: sage: coeffs = ([0, vector([1, 2])], [1, vector([2, 3])]) |
| 10 | sage: sage: upper = vector([5, 5]) |
| 11 | sage: sage: lower = vector([0, 0]) |
| 12 | sage: sage: from sage.numerical.backends.generic_backend import get_solver |
| 13 | sage: sage: p = get_solver(solver = "Coin") # optional - cbc |
| 14 | sage: p.add_linear_constraint_vector(2, coeffs, lower, upper, 'foo') |
| 15 | ------------------------------------------------------------------------ |
| 16 | 0 signals.so 0x0000000109df05c5 print_backtrace + 37 |
| 17 | ------------------------------------------------------------------------ |
| 18 | Unhandled SIGSEGV: A segmentation fault occurred. |
| 19 | This probably occurred because a *compiled* module has a bug |
| 20 | in it and is not properly wrapped with sig_on(), sig_off(). |
| 21 | Python will now terminate. |
| 22 | ------------------------------------------------------------------------ |
| 23 | Segmentation fault: 11 |
| 24 | $ sage |
| 25 | SageMath Version 7.2.beta0, Release Date: 2016-03-24 |
| 26 | sage: sage: sage: coeffs = ([0, vector([1, 2])], [1, vector([2, 3])]) |
| 27 | sage: sage: sage: upper = vector([5, 5]) |
| 28 | sage: sage: sage: lower = vector([0, 0]) |
| 29 | sage: sage: sage: from sage.numerical.backends.generic_backend import get_solver |
| 30 | sage: sage: sage: p = get_solver(solver = "Coin") # optional - cbc |
| 31 | sage: p.add_linear_constraint_vector(2, coeffs, lower, upper) |
| 32 | ------------------------------------------------------------------------ |
| 33 | 0 signals.so 0x0000000109c8a5c5 print_backtrace + 37 |
| 34 | ------------------------------------------------------------------------ |
| 35 | Unhandled SIGSEGV: A segmentation fault occurred. |
| 36 | }}} |
| 37 | |