From owner-freebsd-standards@FreeBSD.ORG Mon Nov 22 11:07:14 2010 Return-Path: Delivered-To: freebsd-standards@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C60451065698 for ; Mon, 22 Nov 2010 11:07:14 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B2DC08FC1E for ; Mon, 22 Nov 2010 11:07:14 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oAMB7Ese051863 for ; Mon, 22 Nov 2010 11:07:14 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oAMB7ESN051859 for freebsd-standards@FreeBSD.org; Mon, 22 Nov 2010 11:07:14 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 22 Nov 2010 11:07:14 GMT Message-Id: <201011221107.oAMB7ESN051859@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-standards@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-standards@FreeBSD.org X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Nov 2010 11:07:14 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o stand/152415 standards [libm] implementation of expl() o stand/151316 standards lib/libc/string/strerror.c r1.9 breaks POSIX o stand/150093 standards C++ std::locale support is broken a stand/149980 standards [libc] [patch] negative value integer to nanosleep(2) o stand/147210 standards xmmintrin.h and cstdlib conflicts with each other with p stand/145517 standards POSIX getline() missing o stand/144231 standards bind/connect/sendto too strict about sockaddr length o stand/143358 standards [libm] nearbyint(3) raises spurious inexact exception o stand/142803 standards j0 Bessel function inaccurate near zeros of the functi s stand/141705 standards [libc] [request] libc lacks cexp (and friends) o stand/130067 standards Wrong numeric limits in system headers? o stand/124860 standards flockfile(3) doesn't work when the memory has been exh o stand/123688 standards POSIX standard changes in unistd.h and grp.h o stand/121921 standards [patch] Add leap second support to at(1), atrun(8) o stand/116826 standards [patch] sh support for POSIX character classes o stand/116477 standards rm(1): rm behaves unexpectedly when using -r and relat o bin/116413 standards incorrect getconf(1) handling of unsigned constants gi o stand/116081 standards make does not work with the directive sinclude o stand/114633 standards /etc/rc.subr: line 511: omits a quotation mark: "force p stand/107561 standards [libc] [patch] [request] Missing SUS function tcgetsid o stand/104743 standards [headers] [patch] Wrong values for _POSIX_ minimal lim o stand/100017 standards [Patch] Add fuser(1) functionality to fstat(1) o stand/96236 standards [patch] [posix] sed(1) incorrectly describes a functio o stand/96016 standards [headers] clock_getres et al should be in o stand/94729 standards [libc] fcntl() throws undocumented ENOTTY o kern/93705 standards [headers] [patch] ENODATA and EGREGIOUS (for glibc com o stand/92362 standards [headers] [patch] Missing SIGPOLL in kernel headers a stand/86484 standards [patch] mkfifo(1) uses wrong permissions o stand/83845 standards [libm] [patch] add log2() and log2f() support for libm o stand/82654 standards C99 long double math functions are missing o stand/81287 standards [patch] fingerd(8) might send a line not ending in CRL a stand/80293 standards sysconf() does not support well-defined unistd values o stand/79056 standards [feature request] [atch] regex(3) regression tests o stand/70813 standards [patch] ls(1) not Posix compliant o stand/66357 standards make POSIX conformance problem ('sh -e' & '+' command- s kern/64875 standards [libc] [patch] [request] add a system call: fdatasync( s stand/62858 standards malloc(0) not C99 compliant o stand/56476 standards [patch] cd9660 unicode support simple hack o stand/54410 standards one-true-awk not POSIX compliant (no extended REs) o stand/46119 standards Priority problems for SCHED_OTHER using pthreads o stand/44365 standards [headers] [patch] [request] introduce ulong and unchar a stand/41576 standards ln(1): replacing old dir-symlinks o stand/39256 standards snprintf/vsnprintf aren't POSIX-conformant for strings o kern/27835 standards [libc] execve() doesn't conform to execve(2) spec in s a docs/26003 standards getgroups(2) lists NGROUPS_MAX but not syslimits.h s stand/24590 standards timezone function not compatible witn Single Unix Spec o stand/21519 standards sys/dir.h should be deprecated some more s bin/14925 standards getsubopt isn't poisonous enough 48 problems total. From owner-freebsd-standards@FreeBSD.ORG Tue Nov 23 23:50:11 2010 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE802106566C for ; Tue, 23 Nov 2010 23:50:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id ACA798FC0C for ; Tue, 23 Nov 2010 23:50:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id oANNoBok073399 for ; Tue, 23 Nov 2010 23:50:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oANNoBZC073398; Tue, 23 Nov 2010 23:50:11 GMT (envelope-from gnats) Date: Tue, 23 Nov 2010 23:50:11 GMT Message-Id: <201011232350.oANNoBZC073398@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: Alexander Best Cc: Subject: Re: standards/143358: [libm] nearbyint(3) raises spurious inexact exception X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander Best List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Nov 2010 23:50:11 -0000 The following reply was made to PR standards/143358; it has been noted by GNATS. From: Alexander Best To: bug-followup@freebsd.org Cc: Subject: Re: standards/143358: [libm] nearbyint(3) raises spurious inexact exception Date: Tue, 23 Nov 2010 23:42:05 +0000 this is what bruce evans wrote concerning this issue. cheers. alex ----- Forwarded message from Bruce Evans ----- Date: Tue, 16 Nov 2010 06:01:06 +1100 (EST) From: Bruce Evans To: Alexander Best cc: Bruce Evans , Ulrich Spoerlein , das@FreeBSD.org Subject: Re: svn commit: r215237 - head/lib/msun/src [Cc trimmed] On Mon, 15 Nov 2010, Alexander Best wrote: >if you are interested in solving two more msun mysteries, you might want to >have a look at #PR kern/133583 and standards/143358. I had already debugged #143358. The mail wasn't sent to gnats. %%% >From bde@optusnet.com.au Sun Jan 31 02:20:33 2010 +1100 Date: Sun, 31 Jan 2010 02:20:30 +1100 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: gavin@freebsd.org cc: freebsd-amd64@freebsd.org, freebsd-standards@freebsd.org, das@freebsd.org Subject: Re: standards/143358: nearbyint raises spurious inexact exception In-Reply-To: <201001301251.o0UCpSEP077706@freefall.freebsd.org> Message-ID: <20100131014341.J78095@delplex.bde.org> References: <201001301251.o0UCpSEP077706@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Status: O X-Status: X-Keywords: X-UID: 1287 On Sat, 30 Jan 2010 gavin@freebsd.org wrote: >Synopsis: nearbyint raises spurious inexact exception >Note that a comment in the function itself in lib/msun/src/s_nearbyint.c >does also suggest that this PR is valid, "We save and restore the >floating-point environment to avoid raising an inexact exception." I've >also verified Solaris 10, Linux and FreeBSD 7.2 show the expected behaviour. This seems to be a bug in gcc-4.2, or perhaps a bug in the inline asms. gcc-4.2 still works with -O0, but with -O it removes the entire fesetenv() in nearbyint(). The fegetenv() isn't removed though its result is never used. I didn't get anywhere good trying to fix this, but I got to the following worse place of interest: after replacing the fesetenv(&env) by fesetenv(&xenv) where xenv is an invalidly initialized global variable (all 0's), the fegetenv(&env) corrupted the current environment (looks a bit like xenv was used to initialize the current environment). Removing fesetenv() in other contexts would give larger bugs. Bruce %%% Note that it is the libary that must be compiled with -O0 to avoid this bug. Bruce ----- End forwarded message ----- -- a13x