ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 06 Dec 2012 23:14:31 -0600Sage 5.0 plot issuehttps://ask.sagemath.org/question/8978/sage-50-plot-issue/Okay, so I've rebooted my Mac in 64 bit mode and am running Sage 5.0. When I do a `plot3d` and specify an opacity, I get the following error:
------------------------------------------------------------------------
Unhandled SIGILL: An illegal instruction occurred in Sage.
This probably occurred because a *compiled* component of Sage has a bug
in it and is not properly wrapped with sig_on(), sig_off(). You might
want to run Sage under gdb with 'sage -gdb' to debug this.
Sage will now terminate.
------------------------------------------------------------------------
I also get this on one simple interact that runs in the single cell server at sagemath.org/eval.html, which I assume is running Sage 5.0. Other interacts seem to run okay for me. The interact is:
var('x')
@interact
def test(a=slider(0,10,0.1,2),b=slider(-6,6,.1,0),c=slider(-3,3,1,1),d=slider(-4,4,1,0)):
print 'Plot y = '+str(c)+'sin('+str(a)+'x + '+str(b)+') + '+str(d)
p1=plot(c*sin(a*x+b)+d,(x,-6,6))
show(p1)
I'm guessing that I don't have something set up right for Sage 5.0 to run correctly. Any ideas?
Thu, 17 May 2012 07:56:50 -0500https://ask.sagemath.org/question/8978/sage-50-plot-issue/Answer by stecher for <p>Okay, so I've rebooted my Mac in 64 bit mode and am running Sage 5.0. When I do a <code>plot3d</code> and specify an opacity, I get the following error:</p>
<pre><code>------------------------------------------------------------------------
Unhandled SIGILL: An illegal instruction occurred in Sage.
This probably occurred because a *compiled* component of Sage has a bug
in it and is not properly wrapped with sig_on(), sig_off(). You might
want to run Sage under gdb with 'sage -gdb' to debug this.
Sage will now terminate.
------------------------------------------------------------------------
</code></pre>
<p>I also get this on one simple interact that runs in the single cell server at sagemath.org/eval.html, which I assume is running Sage 5.0. Other interacts seem to run okay for me. The interact is:</p>
<pre><code>var('x')
@interact
def test(a=slider(0,10,0.1,2),b=slider(-6,6,.1,0),c=slider(-3,3,1,1),d=slider(-4,4,1,0)):
print 'Plot y = '+str(c)+'sin('+str(a)+'x + '+str(b)+') + '+str(d)
p1=plot(c*sin(a*x+b)+d,(x,-6,6))
show(p1)
</code></pre>
<p>I'm guessing that I don't have something set up right for Sage 5.0 to run correctly. Any ideas?</p>
https://ask.sagemath.org/question/8978/sage-50-plot-issue/?answer=14355#post-id-14355I'm having the exact same problem with Sage 5.4.1 on a Core 2 Duo Mac running OSX 10.7.5. Trac 12954 suggests the problem is fixed. Is this a new problem then? (The error output is the same as given above...)Thu, 06 Dec 2012 03:57:23 -0600https://ask.sagemath.org/question/8978/sage-50-plot-issue/?answer=14355#post-id-14355Comment by kcrisman for <p>I'm having the exact same problem with Sage 5.4.1 on a Core 2 Duo Mac running OSX 10.7.5. Trac 12954 suggests the problem is fixed. Is this a new problem then? (The error output is the same as given above...)</p>
https://ask.sagemath.org/question/8978/sage-50-plot-issue/?comment=18573#post-id-18573Probably the problem is that you have a Core 2 Duo that is not 100% 64-bit; this has been a common issue lately with binaries. Xcode should be enough, or you might do well with a 10.6 binary. We're working on fixing this problem.Thu, 06 Dec 2012 14:23:34 -0600https://ask.sagemath.org/question/8978/sage-50-plot-issue/?comment=18573#post-id-18573Comment by stecher for <p>I'm having the exact same problem with Sage 5.4.1 on a Core 2 Duo Mac running OSX 10.7.5. Trac 12954 suggests the problem is fixed. Is this a new problem then? (The error output is the same as given above...)</p>
https://ask.sagemath.org/question/8978/sage-50-plot-issue/?comment=18569#post-id-18569Thanks for that. The 64-bit 10.6 binary seems to work.Thu, 06 Dec 2012 23:14:31 -0600https://ask.sagemath.org/question/8978/sage-50-plot-issue/?comment=18569#post-id-18569Comment by Jason Grout for <p>I'm having the exact same problem with Sage 5.4.1 on a Core 2 Duo Mac running OSX 10.7.5. Trac 12954 suggests the problem is fixed. Is this a new problem then? (The error output is the same as given above...)</p>
https://ask.sagemath.org/question/8978/sage-50-plot-issue/?comment=18577#post-id-18577It sounds like it might be a new problem. Did you build Sage from source, or did you download the binary?Thu, 06 Dec 2012 04:49:08 -0600https://ask.sagemath.org/question/8978/sage-50-plot-issue/?comment=18577#post-id-18577Comment by stecher for <p>I'm having the exact same problem with Sage 5.4.1 on a Core 2 Duo Mac running OSX 10.7.5. Trac 12954 suggests the problem is fixed. Is this a new problem then? (The error output is the same as given above...)</p>
https://ask.sagemath.org/question/8978/sage-50-plot-issue/?comment=18576#post-id-18576I downloaded the binary (Sage-5.4.1-OSX-64bit-10.7.app). Would it help if I tried to build it? Would I need anything other than Xcode for that?Thu, 06 Dec 2012 05:24:39 -0600https://ask.sagemath.org/question/8978/sage-50-plot-issue/?comment=18576#post-id-18576Answer by kcrisman for <p>Okay, so I've rebooted my Mac in 64 bit mode and am running Sage 5.0. When I do a <code>plot3d</code> and specify an opacity, I get the following error:</p>
<pre><code>------------------------------------------------------------------------
Unhandled SIGILL: An illegal instruction occurred in Sage.
This probably occurred because a *compiled* component of Sage has a bug
in it and is not properly wrapped with sig_on(), sig_off(). You might
want to run Sage under gdb with 'sage -gdb' to debug this.
Sage will now terminate.
------------------------------------------------------------------------
</code></pre>
<p>I also get this on one simple interact that runs in the single cell server at sagemath.org/eval.html, which I assume is running Sage 5.0. Other interacts seem to run okay for me. The interact is:</p>
<pre><code>var('x')
@interact
def test(a=slider(0,10,0.1,2),b=slider(-6,6,.1,0),c=slider(-3,3,1,1),d=slider(-4,4,1,0)):
print 'Plot y = '+str(c)+'sin('+str(a)+'x + '+str(b)+') + '+str(d)
p1=plot(c*sin(a*x+b)+d,(x,-6,6))
show(p1)
</code></pre>
<p>I'm guessing that I don't have something set up right for Sage 5.0 to run correctly. Any ideas?</p>
https://ask.sagemath.org/question/8978/sage-50-plot-issue/?answer=13587#post-id-13587Do you have a middle-aged Mac? (Say, a Core Duo?)
Try
sage: int(2.4)
and if it crashes, you have the problem described at [Trac 12954](http://trac.sagemath.org/sage_trac/ticket/12954).
Building from scratch will make things fine, otherwise you may want to revert to 4.8 for now. Sadly.Thu, 17 May 2012 08:20:15 -0500https://ask.sagemath.org/question/8978/sage-50-plot-issue/?answer=13587#post-id-13587Comment by calc314 for <p>Do you have a middle-aged Mac? (Say, a Core Duo?)</p>
<p>Try </p>
<pre><code>sage: int(2.4)
</code></pre>
<p>and if it crashes, you have the problem described at <a href="http://trac.sagemath.org/sage_trac/ticket/12954">Trac 12954</a>.</p>
<p>Building from scratch will make things fine, otherwise you may want to revert to 4.8 for now. Sadly.</p>
https://ask.sagemath.org/question/8978/sage-50-plot-issue/?comment=19774#post-id-19774That was it. Too bad. Thanks!Thu, 17 May 2012 08:34:39 -0500https://ask.sagemath.org/question/8978/sage-50-plot-issue/?comment=19774#post-id-19774