From owner-freebsd-bugs@FreeBSD.ORG Wed Aug 29 21:10:05 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8947C106564A for ; Wed, 29 Aug 2012 21:10:05 +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 80A1D8FC18 for ; Wed, 29 Aug 2012 21:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q7TLA18W030153 for ; Wed, 29 Aug 2012 21:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q7TLA196030152; Wed, 29 Aug 2012 21:10:01 GMT (envelope-from gnats) Resent-Date: Wed, 29 Aug 2012 21:10:01 GMT Resent-Message-Id: <201208292110.q7TLA196030152@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Devin Teske Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 69A2B106566C for ; Wed, 29 Aug 2012 21:08:34 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 5506C8FC18 for ; Wed, 29 Aug 2012 21:08:34 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q7TL8Yv9087266 for ; Wed, 29 Aug 2012 21:08:34 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q7TL8Ym4087265; Wed, 29 Aug 2012 21:08:34 GMT (envelope-from nobody) Message-Id: <201208292108.q7TL8Ym4087265@red.freebsd.org> Date: Wed, 29 Aug 2012 21:08:34 GMT From: Devin Teske To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/171174: ps(1) shows bad error message with specific arguments 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: Wed, 29 Aug 2012 21:10:05 -0000 >Number: 171174 >Category: bin >Synopsis: ps(1) shows bad error message with specific arguments >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Aug 29 21:10:01 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Devin Teske >Release: FreeBSD 10.0-CURRENT amd64 >Organization: FIS Global, Inc. >Environment: FreeBSD ref10-amd64.freebsd.org 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r231914: Sun Feb 19 17:24:37 UTC 2012 bz@glide.freebsd.org:/usr/obj/scratch/src/sys/GLIDE amd64 >Description: Executing "ps -p ''" produces an appropriate error message (shown below): ps: Invalid (zero-length) process id However, when one executes instead "ps -o ucomm -p ''", the error message contains a corrupted string (shown below): ps: Invalid process id: PfÐ >How-To-Repeat: Use the "-o" flag with any value in conjunction with "-p" passed a NULL (zero-length) argument. >Fix: >Release-Note: >Audit-Trail: >Unformatted: