bin/171174: ps(1) shows bad error message with specific arguments

Devin Teske dteske at FreeBSD.org
Wed Aug 29 21:10:05 UTC 2012


>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 at 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:


More information about the freebsd-bugs mailing list