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
segmentation fault in pexpect for singular #30945
Comments
comment:1
changing alarm(0.5) to either alarm(0.5*256) or alarm(0.5/256) does not fix the issue |
comment:3
I have sometimes seen that failure too. |
This comment has been minimized.
This comment has been minimized.
Changed keywords from none to singular, segfault |
comment:4
Je suis preneur de toute suggestion. |
This comment has been minimized.
This comment has been minimized.
comment:6
Some date points, in case it might be useful: on my Ubuntu 20.04 computer, running
|
comment:7
pexpect was last updated in #29240, included in Sage 9.2.beta11 |
comment:8
Perhaps this test failure has nothing to do Singular.
Could someone who has a box where this is reliably reproduced, try adding somewhere the doctest for GAP above, and see if it fails too? |
comment:9
Bug fails with gap too, when running doctests. In the command line, provokes a very bad crash of sage. running in the doctests:
in the console, one gets
|
comment:10
OK, actually I should have checked, for me such GAP pexpect test in Sage console also results in This makes me wonder why it's important to have such a test in Singular. Only Singular has a custom
Singular custom one was added along with the test in question, and no
We can try just to erase Singular's |
comment:11
here is a tentative, just removing the New commits:
|
Branch: public/singular_pexpect |
Commit: |
comment:12
Did you mean that |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:14
hmm, this seems to have a side effect, see the latest patchbot report |
comment:15
the side effect could be that hitting I am not sure it is safe do interrupt Singular - note the warning at the end
in a console Singular session. |
comment:16
I encountered this in #31404 as well. I believe I have isolated it to a possible bug in cysignals: sagemath/cysignals#126 |
comment:17
I am able to reproduce this pretty reliably on the current develop branch with
|
comment:18
This now has a possible fix at sagemath/cysignals#127 The segfault is not caused by Singular (if it were this would crash pexpect, not cause a segfault in Sage). It's caused by cysignals itself. |
Dependencies: #31474 |
Changed commit from |
Changed branch from public/singular_pexpect to none |
comment:21
Likely solved by cysignals 1.10.3 upgrade at #31474, If we get no more reports on sage-release in a while, Can the branch |
comment:22
Branch improving the pexpect interface to Singular now at #31846. |
Changed dependencies from #31474 to none |
Reviewer: Michael Orlitzky |
This essentially reverts 85f65bf and a10d19d from trac sagemath#31846. It turns out this was originaly written for sagemath#30945, but that issue was fixed by upgrading cysignals. Singular really needs a custom `_send_interrupt()` method, because the default one will quit singular. Moreover, this handles two quirks of singular: - a small delay before sending `chr(3)` works around a bug in singular. - sometimes one needs to send `;` a few times after interrupt to get back a prompt. The original author of the custom `_send_interrupt()` is Jeroen Demeyer in commit 17d23e9 (trac sagemath#10476). I changed the timeout for a smaller one, and rewrote the doctest to call `interrupt()` explicitly instead of using `alarm()` which introduces more noise.
At least two patchbots, one Linux and one macOS, meet a failure
related to pexpect interface for Singular, namely:
The tested file also fails when run alone, but the copy-pasted test works fine.
See https://groups.google.com/d/msgid/sage-devel/54c8dd1f-5efa-4a9f-b17f-4225ef9c6c91n%40googlegroups.com.
The following test fails:
For full logs, see:
CC: @dimpase @slel @sagetrac-tmonteil @kiwifb
Component: interfaces
Keywords: singular, segfault
Reviewer: Michael Orlitzky
Issue created by migration from https://trac.sagemath.org/ticket/30945
The text was updated successfully, but these errors were encountered: