Bug 50227 - Loss of FPU state (in pthread based numerical code, etc).
Summary: Loss of FPU state (in pthread based numerical code, etc).
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kernel
Version: 7.1
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
Assignee: Arjan van de Ven
QA Contact: Brock Organ
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-07-28 18:03 UTC by dtc-rhbug
Modified: 2008-08-01 16:22 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2004-09-30 15:39:05 UTC


Attachments (Terms of Use)
Example code. (2.15 KB, text/plain)
2001-07-28 18:04 UTC, dtc-rhbug
no flags Details

Description dtc-rhbug 2001-07-28 18:03:38 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.77 [en] (X11; U; Linux 2.4.3-12 i686)

Description of problem:
The linux x86 kernel tries to be too clever and does not save the FPU state
after a signal but before the FPU has been touch.  The glibc pthread
timedsuspend uses a longjmp out of the resume signal handler without saving
and restoring the FPU state. The result is that the FPU state is lost.

How reproducible:
Always

Steps to Reproduce:
1.  Compile and execute the attacted example code.
2.
3.
	

Actual Results:  fpucw: 37f
sigtrap: fpstate 0x40967860
fpucw: 37b
sigtrap: fpstate (nil)
fpucw: 37f


Expected Results:  fpucw: 37f
sigtrap: fpstate 0x40967860
fpucw: 37b
sigtrap: fpstate 0x40967860
fpucw: 37b
Floating exception

Comment 1 dtc-rhbug 2001-07-28 18:04:55 UTC
Created attachment 25287 [details]
Example code.

Comment 2 Bugzilla owner 2004-09-30 15:39:05 UTC
Thanks for the bug report. However, Red Hat no longer maintains this version of
the product. Please upgrade to the latest version and open a new bug if the problem
persists.

The Fedora Legacy project (http://fedoralegacy.org/) maintains some older releases, 
and if you believe this bug is interesting to them, please report the problem in
the bug tracker at: http://bugzilla.fedora.us/



Note You need to log in before you can comment on or make changes to this bug.