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
Fix infinite loop from #21161 - repr of NumberFields (the parents) should indicate its embedding if there is one #28036
Comments
comment:2
Adding the single line
is enough to trigger the crash. |
comment:3
This may be considered as a blocker, no ? |
comment:4
Thank you for analyzing this issue! Previous discussion in cschwan/sage-on-gentoo#541, were we assumed it was distro related. I agree that it should be included in 8.8. |
comment:5
Replying to @fchapoton:
I do not get a crash with 8.8.rc2... :-S Hmm. So there is no way to bypass the current issue and still be able to know via the Reverting completely #21161 would be too bad... Isn't there any way to remove the crash caused by calling
? |
comment:6
Nota Bene: I got the crash/not crash when using py3-sage. Not tried with py2-sage. |
This comment has been minimized.
This comment has been minimized.
comment:8
Replying to @fchapoton:
Hmm. I also tested with py3-sage. But I might have some obscure side effects... |
comment:9
Here is a branch that fixes the crash.. Not sure if this is the right thing to do. And no idea if this prevents the random infinite loop to re-appear. New commits:
|
Branch: public/ticket/28036 |
Commit: |
comment:11
the fix proposal provokes a few failing doctests, that may not be so simple.. |
Changed branch from public/ticket/28036 to public/ticket/28036_v2 |
comment:12
Here is another proposal.. (not really convincing either) New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:14
Replying to @fchapoton:
Did you test it? I don't understand how it can work, since Another option may be to use a lazy string for the error message that causes the loop. |
comment:15
Replying to @mezzarobba:
+1 |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
Author: Matthias Koeppe |
comment:18
I was able to reproduce this error. I agree it's a blocker. Using |
comment:19
(Sorry for overwriting your branch.) |
comment:20
This is a better solution indeed. Works fine for me (on py3-sage). |
comment:21
can that 1-line way to crash above be put into a doctest? |
comment:22
Replying to @dimpase:
I don't know how to reproduce the crash with a single doctest. |
comment:23
add one line
after the line
|
comment:24
This triggers the error for me in an interactive session; but not if I add it to the doctest... |
Reviewer: Volker Braun |
Changed branch from public/ticket/28036_v2 to |
Because this is causing some random infinite loops when running the testsuite. To reproduce, as reported in cschwan/sage-on-gentoo#541, use:
Another symptom:
The doctest
when it does not fail, and then one calls
again, makes sage crash.
Removing the change of repr made in #21161 fixes that.
For the complete log when the doctest fails, see for example
https://patchbot.sagemath.org/log/27408/Ubuntu/18.04/x86_64/4.15.0-52-generic/petitbonum/2019-06-20%2014:50:38?short
CC: @embray @jdemeyer @videlec @jplab @JohnCremona @tscrim @mezzarobba @mkoeppe
Component: number fields
Author: Matthias Koeppe
Branch/Commit:
c44fd16
Reviewer: Volker Braun
Issue created by migration from https://trac.sagemath.org/ticket/28036
The text was updated successfully, but these errors were encountered: