Localized a bit further:

var("q A")
p = A*(1+1/A)-A-1
V=(q^p)._maxima_().rectform()

after this, V._sage_() crashes, and I think it's the same crash as above.

Transcribing what V is in maxima, we get:

I*sin(atan2(0,q)*((1/A+1)*A-A-1))*abs(q)^((1/A+1)*A-A-1)+cos(atan2(0,q)*((1/A+1)*A-A-1))*abs(q)^((1/A+1)*A-A-1)

which indeed causes a crash when input directly into sage. More simply:

var("q A")
U=atan2(0,q)*((1/A+1)*A-A-1)
sin(U)     #this crashes

It looks like an infinite recursion, so probably the constructor (of sin?) 
tries to do some simplification, which ends up trying to construct the same 
expression again. The traceback implicates Pynac.


On Monday, 29 May 2023 at 13:07:50 UTC-7 dwb...@gmail.com wrote:

> I was shown the following way of getting a segmentation fault in Sage.
>
> sage: var("q A")
> sage: p = A*(1+1/A)-A-1
> sage: (q^p).full_simplify()
>
> This consistently causes a crash. The person who found it was doing some 
> actual work, got a crash, and boiled it down to a minimal example.
>
> Daniel Bump
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/8ad4b6f1-c697-4af1-90eb-f41ec9d4f3a9n%40googlegroups.com.

Reply via email to