-
-
Notifications
You must be signed in to change notification settings - Fork 580
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
NTL segfault on OS X 10.7 #12480
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:5
Attachment: 12480.patch.gz Positive review to the patch posted right when I write this. |
Reviewer: William Stein, Jeroen Demeyer |
Author: David Roe |
comment:7
Reviewer patch fixes some documentation strings and also removes exceptions which will be ignored anyway (a cdef function can only raise exceptions if it is declared with an "except" value or if it returns a Python object). |
comment:9
William or David, could any of you please review my reviewer patch? |
comment:10
David and I discussed ValueError versus RuntimeError when he wrote this. I initially suggested ValueError (as you changed it to), but he argued that this error should never occur, ever -- there should be no way to call this code from Python to produce this error. I'm convinced by David. |
comment:11
Replying to @williamstein:
I don't see why this is an argument for How would you like |
comment:12
*** ping *** |
comment:13
*** ahem *** |
comment:14
Sorry: I wasn't getting trac notifications on this ticket for some reason. The changes look good, except the removal of the three checks for n < 0 in |
Reviewer patch, apply on top of previous |
comment:15
Attachment: 12480_review.patch.gz I kept all
|
comment:16
Looks good. Have you created a ticket to fix these ignored exceptions, or shall I? |
comment:17
Replying to @roed314:
I don't plan to deal with this code, so go ahead. |
Merged: sage-5.0.beta8 |
comment:19
Replying to @roed314:
Does this refer to how Cython used to work? Does it make sense to add an |
On OS X 10.7 (compiled with gcc-4.6.2, #12369):
This is because executing the following code (from the file
devel/sage/sage/rings/padics/padic_ZZ_pX_CR_element.pyx
):crashes Sage:
This is a huge can of worms. The relevant code is in
sage/rings/padics/pow_computer_ext.pyx
:On input 0, we have a
Py_None
typecast to antl_ZZ_pContext_class
and we pretend like that's okay. How does this make sense? The fact that it crashes on OS X 10.7 is expected, the surprising thing is that this doesn't crash on other systems.The
None
in theself.c[]
array comes from line 1671 inpow_computer_ext.pyx
:Component: interfaces
Author: David Roe
Reviewer: William Stein, Jeroen Demeyer
Merged: sage-5.0.beta8
Issue created by migration from https://trac.sagemath.org/ticket/12480
The text was updated successfully, but these errors were encountered: