Red Hat Bugzilla – Bug 1174311
tgid addition to format_array disables thcount option
Last modified: 2016-11-04 02:36:18 EDT
Description of problem: When `tgid` option was introduced and added to format_array[] wrongly after `thcount` record the latter option no longer can be specified as a parameter. The broken alphabetical order confuses the bsearch() function. Version-Release number of selected component (if applicable): procps-ng-3.3.10-3.el7.x86_64 How reproducible: Always Steps to Reproduce: 1. $ ps -o thcount Actual results: error: unknown user-defined format specifier "thcount" Usage: ... Expected results: THCNT 1 1 Additional info: Patch with fix proposal attached. Please propagate to upstream as usual.
Created attachment 969096 [details] format array alphabetical order fix
Upstream already fixed this in commit https://gitlab.com/procps-ng/procps/commit/3a52dfa340276a7f8f55af1b8267392ee48988b9
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2447.html