From owner-freebsd-standards@FreeBSD.ORG Mon Jun 3 07:20:00 2013 Return-Path: Delivered-To: freebsd-standards@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D16D046B for ; Mon, 3 Jun 2013 07:20:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B815E1B7E for ; Mon, 3 Jun 2013 07:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r537K0u3067489 for ; Mon, 3 Jun 2013 07:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r537K0Af067488; Mon, 3 Jun 2013 07:20:00 GMT (envelope-from gnats) Resent-Date: Mon, 3 Jun 2013 07:20:00 GMT Resent-Message-Id: <201306030720.r537K0Af067488@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-standards@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Akinori MUSHA Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 70C6F34D for ; Mon, 3 Jun 2013 07:14:47 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) by mx1.freebsd.org (Postfix) with ESMTP id 49C5B1B46 for ; Mon, 3 Jun 2013 07:14:47 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r537El0f040580 for ; Mon, 3 Jun 2013 07:14:47 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r537EkKr040579; Mon, 3 Jun 2013 07:14:46 GMT (envelope-from nobody) Message-Id: <201306030714.r537EkKr040579@oldred.freebsd.org> Date: Mon, 3 Jun 2013 07:14:46 GMT From: Akinori MUSHA To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: standards/179248: A return value of telldir(3) only seekable for once X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jun 2013 07:20:01 -0000 >Number: 179248 >Category: standards >Synopsis: A return value of telldir(3) only seekable for once >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 03 07:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Akinori MUSHA >Release: FreeBSD 9.1-STABLE >Organization: >Environment: FreeBSD 9.1-STABLE #29 r250273: Mon May 6 01:09:00 JST 2013 (amd64) >Description: Our implementation of telldir(3)/seekdir(3) is not POSIX compliant in that a value obtained from telldir(3) is invalidated after calling seekdir(3) and then readdir(3). IEEE Std 1003.1, 2008/2013 says that only a call of rewinddir(3) may invalidate the location values returned by telldir(3): If the value of loc was not obtained from an earlier call to telldir(), or if a call to rewinddir() occurred between the call to telldir() and the call to seekdir(), the results of subsequent calls to readdir() are unspecified. >How-To-Repeat: % cat ../dirtest.c #include #include #include #include int main(void) { DIR *dirp; struct dirent *dp; long pos; if ((dirp = opendir(".")) == NULL) return 1; printf("telldir = %ld\n", telldir(dirp)); if ((dp = readdir(dirp)) == NULL) return 1; printf("readdir = %s\n", dp->d_name); printf("telldir = %ld\n", telldir(dirp)); if ((dp = readdir(dirp)) == NULL) return 1; printf("readdir = %s\n", dp->d_name); printf("telldir = %ld\n", telldir(dirp)); if ((dp = readdir(dirp)) == NULL) return 1; printf("readdir = %s\n", dp->d_name); printf("telldir = %ld\n", pos = telldir(dirp)); if ((dp = readdir(dirp)) == NULL) return 1; printf("readdir = %s\n", dp->d_name); printf("telldir = %ld\n", telldir(dirp)); printf("seekdir to %ld\n", pos); seekdir(dirp, pos); if ((dp = readdir(dirp)) == NULL) return 1; printf("readdir = %s\n", dp->d_name); printf("telldir = %ld\n", telldir(dirp)); printf("seekdir to %ld\n", pos); seekdir(dirp, pos); if ((dp = readdir(dirp)) == NULL) return 1; printf("readdir = %s\n", dp->d_name); printf("telldir = %ld\n", telldir(dirp)); (void)closedir(dirp); return 0; } % make ../dirtest cc -O2 -pipe -g -march=core2 ../dirtest.c -o ../dirtest % ls -al total 35 drwxr-xr-x 2 knu knu 6 Jun 3 15:39 . drwx------ 11 knu knu 53 Jun 3 15:39 .. -rw-r--r-- 1 knu knu 0 Jun 3 15:39 aaa -rw-r--r-- 1 knu knu 0 Jun 3 15:39 bbb -rw-r--r-- 1 knu knu 0 Jun 3 15:39 ccc -rw-r--r-- 1 knu knu 0 Jun 3 15:39 ddd % ../dirtest telldir = 1 readdir = . telldir = 2 readdir = .. telldir = 3 readdir = aaa telldir = 4 readdir = ccc telldir = 5 seekdir to 4 readdir = ccc # <= OK telldir = 6 seekdir to 4 readdir = bbb # <= FAIL telldir = 7 >Fix: I don't have a quick fix for this, as it may need a revamp of how the location thing is defined. NetBSD seems to have a different implementation which doesn't have this problem. However, I'm not sure if theirs is flawless esp. wrt memory management. >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-standards@FreeBSD.ORG Mon Jun 3 11:06:52 2013 Return-Path: Delivered-To: freebsd-standards@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id ADA2B5FC for ; Mon, 3 Jun 2013 11:06:52 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 9E6E113C4 for ; Mon, 3 Jun 2013 11:06:52 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r53B6qeX015172 for ; Mon, 3 Jun 2013 11:06:52 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r53B6qiV015170 for freebsd-standards@FreeBSD.org; Mon, 3 Jun 2013 11:06:52 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 3 Jun 2013 11:06:52 GMT Message-Id: <201306031106.r53B6qiV015170@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 Subject: Current problem reports assigned to freebsd-standards@FreeBSD.org X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jun 2013 11:06:52 -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/179248 standards A return value of telldir(3) only seekable for once o stand/177742 standards conflict of dd's bs= option with use of conv=sparse o stand/176683 standards catman pages shall be stored in /var (/usr/local/var,/ o stand/176412 standards newfs writes by default, compare to bsdlabel/disklabel o stand/175711 standards When the server has more than 3 days, rising interrupt o stand/175453 standards Catching C++ std::bad_cast doesn't work in FreeBSD 9.1 o stand/174938 standards Problem statement: iSCSI target failure o stand/173421 standards [libc] [patch] strptime() accepts formats that should o stand/173087 standards pax(1) does not support the pax interchange format o stand/172805 standards Fix catopen(3)'s EINVAL usage and document EFTYPE o stand/172276 standards POSIX: {get,set}groups gidsetsize is u_int not int o stand/172215 standards localeconv() grouping appears not to match POSIX o stand/170403 standards wrong ntohs expression type tickling clang o stand/169697 standards syslogd(8) is not BOM aware o stand/166349 standards Support the assignment-allocation character for fscanf p stand/164787 standards dirfd() function not available when _POSIX_C_SOURCE is o kern/164674 standards [patch] [libc] vfprintf/vfwprintf return error (EOF) o o stand/162434 standards getaddrinfo: addrinfo.ai_family is an address family, o stand/150093 standards C++ std::locale support is broken 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/121921 standards [patch] Add leap second support to at(1), atrun(8) 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 a stand/86484 standards [patch] mkfifo(1) uses wrong permissions 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( 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 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 42 problems total. From owner-freebsd-standards@FreeBSD.ORG Wed Jun 5 19:58:58 2013 Return-Path: Delivered-To: freebsd-standards@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5FE02FBC; Wed, 5 Jun 2013 19:58:58 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 388D11DFE; Wed, 5 Jun 2013 19:58:58 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r55JwwLO017335; Wed, 5 Jun 2013 19:58:58 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r55Jww15017334; Wed, 5 Jun 2013 19:58:58 GMT (envelope-from linimon) Date: Wed, 5 Jun 2013 19:58:58 GMT Message-Id: <201306051958.r55Jww15017334@freefall.freebsd.org> To: dfilter@FreeBSD.ORG, linimon@FreeBSD.org, gnats-admin@FreeBSD.org, freebsd-standards@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: standards/179343: Re: standards/176916: commit references a PR X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jun 2013 19:58:58 -0000 Old Synopsis: Re: standard/176916: commit references a PR New Synopsis: Re: standards/176916: commit references a PR State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Wed Jun 5 19:58:02 UTC 2013 State-Changed-Why: Misfiled followup to standards/176916; content migrated. Responsible-Changed-From-To: gnats-admin->freebsd-standards Responsible-Changed-By: linimon Responsible-Changed-When: Wed Jun 5 19:58:02 UTC 2013 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=179343 From owner-freebsd-standards@FreeBSD.ORG Wed Jun 5 19:59:26 2013 Return-Path: Delivered-To: freebsd-standards@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7C784FEB; Wed, 5 Jun 2013 19:59:26 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 55A191E03; Wed, 5 Jun 2013 19:59:26 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r55JxQaW017377; Wed, 5 Jun 2013 19:59:26 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r55JxQs9017376; Wed, 5 Jun 2013 19:59:26 GMT (envelope-from linimon) Date: Wed, 5 Jun 2013 19:59:26 GMT Message-Id: <201306051959.r55JxQs9017376@freefall.freebsd.org> To: dfilter@FreeBSD.ORG, linimon@FreeBSD.org, gnats-admin@FreeBSD.org, freebsd-standards@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: standards/179345: Re: standard/176916: commit references a PR X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jun 2013 19:59:26 -0000 Synopsis: Re: standard/176916: commit references a PR State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Wed Jun 5 19:58:02 UTC 2013 State-Changed-Why: Misfiled followup to standards/176916; content migrated. Responsible-Changed-From-To: gnats-admin->freebsd-standards Responsible-Changed-By: linimon Responsible-Changed-When: Wed Jun 5 19:58:02 UTC 2013 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=179345 From owner-freebsd-standards@FreeBSD.ORG Wed Jun 5 21:33:24 2013 Return-Path: Delivered-To: freebsd-standards@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 926FAD5A; Wed, 5 Jun 2013 21:33:24 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 6B73E135F; Wed, 5 Jun 2013 21:33:24 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r55LXOJX052014; Wed, 5 Jun 2013 21:33:24 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r55LXOHv052013; Wed, 5 Jun 2013 21:33:24 GMT (envelope-from linimon) Date: Wed, 5 Jun 2013 21:33:24 GMT Message-Id: <201306052133.r55LXOHv052013@freefall.freebsd.org> To: dfilter@FreeBSD.ORG, linimon@FreeBSD.org, gnats-admin@FreeBSD.org, freebsd-standards@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: standards/179346: Re: standards/176916: commit references a PR X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jun 2013 21:33:24 -0000 Old Synopsis: Re: standard/176916: commit references a PR New Synopsis: Re: standards/176916: commit references a PR State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Wed Jun 5 21:32:44 UTC 2013 State-Changed-Why: Misfiled followup to standards/176916; content migrated. Responsible-Changed-From-To: gnats-admin->freebsd-standards Responsible-Changed-By: linimon Responsible-Changed-When: Wed Jun 5 21:32:44 UTC 2013 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=179346 From owner-freebsd-standards@FreeBSD.ORG Thu Jun 6 23:00:03 2013 Return-Path: Delivered-To: freebsd-standards@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2593BDE4 for ; Thu, 6 Jun 2013 23:00:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id F16D01A2E for ; Thu, 6 Jun 2013 23:00:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r56N02cE048689 for ; Thu, 6 Jun 2013 23:00:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r56N02fG048688; Thu, 6 Jun 2013 23:00:02 GMT (envelope-from gnats) Date: Thu, 6 Jun 2013 23:00:02 GMT Message-Id: <201306062300.r56N02fG048688@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org Cc: From: Garrett Wollman Subject: Re: standards/175453: Catching C++ std::bad_cast doesn't work in FreeBSD 9.1 X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Garrett Wollman List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jun 2013 23:00:03 -0000 The following reply was made to PR standards/175453; it has been noted by GNATS. From: Garrett Wollman To: freebsd-gnats-submit@freebsd.org Cc: Subject: Re: standards/175453: Catching C++ std::bad_cast doesn't work in FreeBSD 9.1 Date: Thu, 6 Jun 2013 18:57:08 -0400 I think it would be worth adding this to the errata document for 9.1. The patch for stable/9 applies cleanly to 9.1 and I'm working on testing it right now. -GAWollman