public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/12420] New: On AMD64 linux, getcontext resets FPU exception mask.
@ 2011-01-20 22:57 jean.claude.beaudoin at gmail dot com
2011-04-18 1:54 ` [Bug libc/12420] " drepper.fsp at gmail dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: jean.claude.beaudoin at gmail dot com @ 2011-01-20 22:57 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12420
Summary: On AMD64 linux, getcontext resets FPU exception mask.
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper.fsp@gmail.com
ReportedBy: jean.claude.beaudoin@gmail.com
Created attachment 5202
--> http://sourceware.org/bugzilla/attachment.cgi?id=5202
small demo to be linked with -lm
The attached program demonstrates that the floating-point exception
mask is being reset to 0 (effectively cleared) by getcontext().
The problem does not exist on i386 since the implementation of
getcontext() on it properly executes a fldenv right after the
fnstenv (as justified by the very informative comment to be seen
in the source code getcontext.S).
Seen on Ubuntu 10.10, Fedora 12 and Fedora 14 at least.
>From reading the current source code, current git code should have
the same problem.
Cheers,
Jean-Claude Beaudoin
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/12420] On AMD64 linux, getcontext resets FPU exception mask.
2011-01-20 22:57 [Bug libc/12420] New: On AMD64 linux, getcontext resets FPU exception mask jean.claude.beaudoin at gmail dot com
@ 2011-04-18 1:54 ` drepper.fsp at gmail dot com
2011-04-18 16:16 ` hjl.tools at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: drepper.fsp at gmail dot com @ 2011-04-18 1:54 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12420
Ulrich Drepper <drepper.fsp at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-04-18 01:54:05 UTC ---
Seems to be a problem with the processor. I worked around it.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/12420] On AMD64 linux, getcontext resets FPU exception mask.
2011-01-20 22:57 [Bug libc/12420] New: On AMD64 linux, getcontext resets FPU exception mask jean.claude.beaudoin at gmail dot com
2011-04-18 1:54 ` [Bug libc/12420] " drepper.fsp at gmail dot com
@ 2011-04-18 16:16 ` hjl.tools at gmail dot com
2011-04-19 16:49 ` hjl.tools at gmail dot com
2014-06-27 14:01 ` fweimer at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2011-04-18 16:16 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12420
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2011-04-18 16:16:05 UTC ---
>From Intel64 SDM:
These instructions are often used by exception handlers because they provide
access to the FPU instruction and data pointers. The environment is typically
saved in the stack. Masking all exceptions after saving the environment
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
prevents floating-point exceptions from interrupting the exception handler.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/12420] On AMD64 linux, getcontext resets FPU exception mask.
2011-01-20 22:57 [Bug libc/12420] New: On AMD64 linux, getcontext resets FPU exception mask jean.claude.beaudoin at gmail dot com
2011-04-18 1:54 ` [Bug libc/12420] " drepper.fsp at gmail dot com
2011-04-18 16:16 ` hjl.tools at gmail dot com
@ 2011-04-19 16:49 ` hjl.tools at gmail dot com
2014-06-27 14:01 ` fweimer at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2011-04-19 16:49 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12420
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2011-04-19 16:48:43 UTC ---
Inte64 SDM has
Store FPU environment to m14byte or m28byte without checking for pending
unmasked floating-point exceptions. Then mask all floatingpoint exceptions.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libc/12420] On AMD64 linux, getcontext resets FPU exception mask.
2011-01-20 22:57 [Bug libc/12420] New: On AMD64 linux, getcontext resets FPU exception mask jean.claude.beaudoin at gmail dot com
` (2 preceding siblings ...)
2011-04-19 16:49 ` hjl.tools at gmail dot com
@ 2014-06-27 14:01 ` fweimer at redhat dot com
3 siblings, 0 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 14:01 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=12420
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Flags| |security-
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-06-27 14:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-20 22:57 [Bug libc/12420] New: On AMD64 linux, getcontext resets FPU exception mask jean.claude.beaudoin at gmail dot com
2011-04-18 1:54 ` [Bug libc/12420] " drepper.fsp at gmail dot com
2011-04-18 16:16 ` hjl.tools at gmail dot com
2011-04-19 16:49 ` hjl.tools at gmail dot com
2014-06-27 14:01 ` fweimer at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).