#12873: Clear MMX state in i686 longjmp()
----------------------------------+-----------------------------------------
Reporter: jdemeyer | Owner: jdemeyer
Type: defect | Status: new
Priority: major | Milestone: sage-5.0
Component: c_lib | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Jeroen Demeyer | Merged in:
Dependencies: | Stopgaps:
----------------------------------+-----------------------------------------
Changes (by jdemeyer):
* owner: drkirkby => jdemeyer
* component: solaris => c_lib
Old description:
> The libc `setjmp`/`longjmp` functions of OpenSolaris 06.2009-32 on i686
> hardware do not fully restore the x87 FPU state, in particular when MMX
> instructions have been used. The proposed solution is to execute the
> `EMMS` instruction before `longjmp()`. For more context, see #12777
> where this bug was discovered.
New description:
The libc `setjmp`/`longjmp` functions on i686 hardware do not fully
restore the x87 FPU state, in particular when MMX instructions have been
used. The proposed solution is to execute the `EMMS` instruction before
`longjmp()`. For more context, see #12777 where this bug was discovered.
--
Comment:
I can't be sure that the problem is limited to Solaris. Using a test
program (attached), I managed to reproduce the issue on Linux also.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12873#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.