-
-
Notifications
You must be signed in to change notification settings - Fork 503
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 on calling .change_ring() for a polynomial over AA #36101
Comments
And this works:
(but just converting one of the non-rational coefficients is not enough). I suppose there is something wrong with the state of the Singular interface when Here is the relevant part (I think) of the backtrace:
|
Partial progress diff --git a/src/sage/libs/singular/singular.pyx b/src/sage/libs/singular/singular.pyx
index dd1c5a35239..40cf99474af 100644
--- a/src/sage/libs/singular/singular.pyx
+++ b/src/sage/libs/singular/singular.pyx
@@ -1405,6 +1405,8 @@ cdef number *sa2si_NF(object elem, ring *_ring) noexcept:
cdef nMapFunc nMapFuncPtr = NULL
+ if currRing.cf.type != n_algExt:
+ raise RuntimeError(f"{currRing.cf.type=}")
nMapFuncPtr = naSetMap(_ring.cf, currRing.cf) # choose correct mapping function
if nMapFuncPtr is NULL: Reveals the type of |
Steps To Reproduce
The following code causes
Segmentation fault
:Expected Behavior
The ring change should be done without an issue, since individually each coefficient is converted into an element of
QuadraticField(3)
without an issue:Actual Behavior
There is a long trace produced along with the fault, which I can provide upon request.
Additional Information
No response
Environment
Checklist
The text was updated successfully, but these errors were encountered: