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

Random timeouts in rings/polynomial/polynomial_element.pyx #39183

Open
2 tasks done
tobiasdiez opened this issue Dec 22, 2024 · 1 comment
Open
2 tasks done

Random timeouts in rings/polynomial/polynomial_element.pyx #39183

tobiasdiez opened this issue Dec 22, 2024 · 1 comment
Labels

Comments

@tobiasdiez
Copy link
Contributor

tobiasdiez commented Dec 22, 2024

Steps To Reproduce

https://github.com/sagemath/sage/actions/runs/12393386111/job/34595070714#step:11:2301

Expected Behavior

Tests pass

Actual Behavior

sage -t --long --warn-long 30.0 --random-seed=286735480429121101562228604801325644303 src/sage/rings/polynomial/polynomial_element.pyx
Error: /sage/local/var/lib/sage/venv-python3.10/lib/python3.10/site-packages/cysignals/signals.cpython-310-x86_64-linux-gnu.so(+0x93d4)[0x7f32ad4693d4]
/sage/local/var/lib/sage/venv-python3.10/lib/python3.10/site-packages/cysignals/signals.cpython-310-x86_64-linux-gnu.so(+0x9496)[0x7f32ad469496]
/sage/local/var/lib/sage/venv-python3.10/lib/python3.10/site-packages/cysignals/signals.cpython-310-x86_64-linux-gnu.so(+0xc881)[0x7f32ad46c881]
/lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f32ae9e8520]
/lib/x86_64-linux-gnu/libc.so.6(+0x91117)[0x7f32aea37117]
/lib/x86_64-linux-gnu/libc.so.6(+0x9cc78)[0x7f32aea42c78]
python3(PyThread_acquire_lock_timed+0xa0)[0x556acc422f00]
python3(+0x1a1151)[0x556acc477151]
python3(+0x18c549)[0x556acc462549]
python3(_PyEval_EvalFrameDefault+0x818)[0x556acc44bae8]
python3(+0x198e41)[0x556acc46ee41]
python3(+0x18af94)[0x556acc460f94]
python3(PyObject_CallFunctionObjArgs+0xa3)[0x556acc460e13]
/sage/local/var/lib/sage/venv-python3.10/lib/python3.10/site-packages/coverage/tracer.cpython-310-x86_64-linux-gnu.so(+0x332e)[0x7f32ae6d132e]
python3(+0x233467)[0x556acc509467]
python3(_PyEval_EvalFrameDefault+0x67b1)[0x556acc451a81]
python3(_PyFunction_Vectorcall+0x7c)[0x556acc461aec]
python3(+0x22cf02)[0x556acc502f02]
python3(_PyEval_EvalFrameDefault+0x6b6c)[0x556acc451e3c]
python3(_PyFunction_Vectorcall+0x7c)[0x556acc461aec]
python3(+0x22cf02)[0x556acc502f02]
python3(_PyEval_EvalFrameDefault+0x6b6c)[0x556acc451e3c]
python3(_PyFunction_Vectorcall+0x7c)[0x556acc461aec]
python3(+0x22cf02)[0x556acc502f02]
python3(_PyEval_EvalFrameDefault+0x6b6c)[0x556acc451e3c]
python3(_PyFunction_Vectorcall+0x7c)[0x556acc461aec]
python3(+0x22cf02)[0x556acc502f02]
python3(_PyEval_EvalFrameDefault+0x6b6c)[0x556acc451e3c]
python3(_PyFunction_Vectorcall+0x7c)[0x556acc461aec]
python3(+0x22cf02)[0x556acc502f02]
python3(_PyEval_EvalFrameDefault+0x6b6c)[0x556acc451e3c]
python3(_PyFunction_Vectorcall+0x7c)[0x556acc461aec]
python3(_PyObject_FastCallDictTstate+0x16d)[0x556acc456dbd]
python3(_PyObject_Call_Prepend+0x5c)[0x556acc46bd4c]
python3(+0x29e054)[0x556acc574054]
python3(_PyObject_MakeTpCall+0x25b)[0x556acc457b4b]
python3(_PyEval_EvalFrameDefault+0x6f05)[0x556acc4521d5]
python3(_PyFunction_Vectorcall+0x7c)[0x556acc461aec]
python3(+0x22cf02)[0x556acc502f02]
python3(_PyEval_EvalFrameDefault+0x6b6c)[0x556acc451e3c]
python3(_PyFunction_Vectorcall+0x7c)[0x556acc461aec]
python3(PyObject_Call+0x122)[0x556acc46f882]
python3(_PyEval_EvalFrameDefault+0x2c89)[0x556acc44df59]
python3(+0x198be1)[0x556acc46ebe1]
python3(+0x22cf02)[0x556acc502f02]
python3(_PyEval_EvalFrameDefault+0x6f05)[0x556acc4521d5]
python3(_PyFunction_Vectorcall+0x7c)[0x556acc461aec]
python3(+0x22cf02)[0x556acc502f02]
python3(_PyEval_EvalFrameDefault+0x6b6c)[0x556acc451e3c]
python3(_PyObject_FastCallDictTstate+0xc4)[0x556acc456d14]
python3(+0x194f64)[0x556acc46af64]
python3(_PyObject_MakeTpCall+0x1fc)[0x556acc457aec]
python3(_PyEval_EvalFrameDefault+0x663f)[0x556acc45190f]
python3(_PyFunction_Vectorcall+0x7c)[0x556acc461aec]
python3(+0x22cf02)[0x556acc502f02]
python3(_PyEval_EvalFrameDefault+0x6fdc)[0x556acc4522ac]
python3(_PyFunction_Vectorcall+0x7c)[0x556acc461aec]
python3(+0x22cf02)[0x556acc502f02]
python3(_PyEval_EvalFrameDefault+0x6fdc)[0x556acc4522ac]
python3(+0x198be1)[0x556acc46ebe1]
python3(+0x22cf02)[0x556acc502f02]
python3(_PyEval_EvalFrameDefault+0x6fdc)[0x556acc4522ac]
python3(_PyFunction_Vectorcall+0x7c)[0x556acc461aec]
python3(+0x22cf02)[0x556acc502f02]
python3(_PyEval_EvalFrameDefault+0x6b6c)[0x556acc451e3c]
python3(_PyFunction_Vectorcall+0x7c)[0x556acc461aec]
python3(+0x22cf02)[0x556acc502f02]
python3(_PyEval_EvalFrameDefault+0x6b6c)[0x556acc451e3c]
python3(_PyFunction_Vectorcall+0x7c)[0x556acc461aec]
python3(+0x22cf02)[0x556acc502f02]
python3(_PyEval_EvalFrameDefault+0x6b6c)[0x556acc451e3c]
python3(_PyFunction_Vectorcall+0x7c)[0x556acc461aec]
python3(+0x22cf02)[0x556acc502f02]
python3(_PyEval_EvalFrameDefault+0x6b6c)[0x556acc451e3c]
python3(_PyFunction_Vectorcall+0x7c)[0x556acc461aec]
python3(+0x22cf02)[0x556acc502f02]
python3(_PyEval_EvalFrameDefault+0x6b6c)[0x5
----------------------------------------------------------------------
sage -t --long --warn-long 30.0 --random-seed=286735480429121101562228604801325644303 src/sage/rings/polynomial/polynomial_element.pyx  # Timed out

Additional Information

Perhaps related to sagemath/cysignals#194

Environment

Latest

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide
@tobiasdiez tobiasdiez changed the title Random timeouts in Random timeouts in rings/polynomial/polynomial_element.pyx Dec 22, 2024
@tobiasdiez tobiasdiez mentioned this issue Dec 22, 2024
5 tasks
@user202729
Copy link
Contributor

Honestly I think it's like "unless the library is guaranteed to be reentrant/jump-safe, sigjmp/longjmp is inherently incorrect and the risk of occasional segfault is worth the ability for the user to be able to interrupt computations".

On the other hand timeout is more inexplicable. Surely sigalrm will eventually be processed? (I can't reproduce the test locally either.)

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

No branches or pull requests

2 participants