Bug 881489

Summary: procps compiles with -ffast-math, breaking things
Product: [Fedora] Fedora Reporter: Andy Lutomirski <luto>
Component: procpsAssignee: Jaromír Cápík <jcapik>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: davejohansen, fedora, jcapik, ovasik
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-03 22:57:23 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andy Lutomirski 2012-11-29 00:43:37 UTC
libproc is built (and, in particular, linked) with -ffast-math.  That pulls in crtfastmath.o, which sets the flush-to-zero flag (on x86) for  which causes hilarity when you innocently link against libproc.

This is IMO so bad that I'm filing a GCC bug about it.  Fedora 18 should be unaffected because the package is completely gone.  In the mean time, please patch out the -ffast-math option.

Comment 1 Jaromír Cápík 2012-11-30 14:15:39 UTC
Hello Andy.

Could you please tell me more about those hilarities you've experienced?
Thank you.

Regards,
Jaromir.

Comment 2 Andy Lutomirski 2012-11-30 19:28:42 UTC
I have a financial program that (unsurprisingly) does math.  I added a feature that involved linking against libproc.  A while later, I noticed that floating-point math was behaving oddly.  After much cursing and modifying ld-linux to figure out what was going on, I figured out that libproc had an initializer that set the flush-to-zero and denormals-are-zero bits.  Oops.

There's nothing wrong with compiling with -ffast-math, but linking with -ffast-math is bad when you're a shared library.

Comment 3 Fedora End Of Life 2013-07-03 22:53:52 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Andy Lutomirski 2013-07-03 22:57:23 UTC
As noted, this is fixed in Fedora 18.