From owner-freebsd-threads@FreeBSD.ORG Fri Jul 12 15:00:00 2013 Return-Path: Delivered-To: freebsd-threads@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D12EB71C for ; Fri, 12 Jul 2013 15:00: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 9DA1E1AF1 for ; Fri, 12 Jul 2013 15:00: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 r6CF0020024108 for ; Fri, 12 Jul 2013 15:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6CF00Zr024107; Fri, 12 Jul 2013 15:00:00 GMT (envelope-from gnats) Resent-Date: Fri, 12 Jul 2013 15:00:00 GMT Resent-Message-Id: <201307121500.r6CF00Zr024107@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-threads@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Petr Salinger Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 92396474 for ; Fri, 12 Jul 2013 14:52:02 +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 843591A9F for ; Fri, 12 Jul 2013 14:52:02 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r6CEq1fJ043660 for ; Fri, 12 Jul 2013 14:52:01 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r6CEq1YX043656; Fri, 12 Jul 2013 14:52:01 GMT (envelope-from nobody) Message-Id: <201307121452.r6CEq1YX043656@oldred.freebsd.org> Date: Fri, 12 Jul 2013 14:52:01 GMT From: Petr Salinger To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: threads/180496: clock_gettime() does not return CPU-time for zombie processes X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jul 2013 15:00:00 -0000 >Number: 180496 >Category: threads >Synopsis: clock_gettime() does not return CPU-time for zombie processes >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-threads >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 12 15:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Petr Salinger >Release: HEAD >Organization: >Environment: GNU/kFreeBSD 10.0-0-amd64 >Description: This is follow up to http://www.freebsd.org/cgi/query-pr.cgi?pr=168417 Our testsuite expects, that clock id created by clock_getcpuclockid() is valid also in time frame after process exit before its reap by parent. http://sourceware.org/git/?p=glibc.git;a=blob;f=rt/tst-cpuclock1.c;hb=HEAD live PID 46968 clock ffffffffc000b778 resolution 0.000001000 live PID 46968 before sleep => 0.000000000 live PID 46968 after sleep => 0.506846000 clock_nanosleep not supported for other process clock: Operation not supported clock_gettime on dead PID 46968 clock ffffffffc000b778 => Invalid argument It is rather reasonable expectation. Please allow getting of used time also for zombie processes. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: