From owner-freebsd-bugs@FreeBSD.ORG Mon Aug 17 11:37:35 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62A30106568E; Mon, 17 Aug 2009 11:37:35 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 519568FC43; Mon, 17 Aug 2009 11:37:35 +0000 (UTC) Received: from freefall.freebsd.org (gavin@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n7HBbZ88005873; Mon, 17 Aug 2009 11:37:35 GMT (envelope-from gavin@freefall.freebsd.org) Received: (from gavin@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n7HBbYPW005869; Mon, 17 Aug 2009 11:37:34 GMT (envelope-from gavin) Date: Mon, 17 Aug 2009 11:37:34 GMT Message-Id: <200908171137.n7HBbYPW005869@freefall.freebsd.org> To: peter@vereshagin.org, gavin@FreeBSD.org, freebsd-bugs@FreeBSD.org, gavin@FreeBSD.org From: gavin@FreeBSD.org Cc: Subject: Re: bin/137869: cc --fast-math leads to nan% CPU consumption in ps and top X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Aug 2009 11:37:35 -0000 Synopsis: cc --fast-math leads to nan% CPU consumption in ps and top State-Changed-From-To: open->feedback State-Changed-By: gavin State-Changed-When: Mon Aug 17 11:28:34 UTC 2009 State-Changed-Why: To submitter: Looking at the man page for gcc suggests that -ffast-math enables -fno-math-errno, -funsafe-math-optimizations, -fno-trapping-math, -ffinite-math-only, -fno-rounding-math, -fno-signaling-nans and fcx-limited-range. Perhaps you could spend some time and figure out which of these options are breaking top and ps? Although, the man page also says about -ffast-math: . This option [...] can result in incorrect output for programs which depend on . an exact implementation of IEEE or ISO rules/specifications for math functions. so it may well just because top and ps depend on the math functions being accurate. Lastly, compiling with unusual optimisation settings isn't supported, so it may be that this bug isn't fixed unless there is a real underlying problem. Responsible-Changed-From-To: freebsd-bugs->gavin Responsible-Changed-By: gavin Responsible-Changed-When: Mon Aug 17 11:28:34 UTC 2009 Responsible-Changed-Why: Track http://www.freebsd.org/cgi/query-pr.cgi?pr=137869