Activity log for bug #1410558

Date Who What changed Old value New value Message
2015-01-13 22:19:14 Adrien Beau bug added bug
2015-09-09 20:22:54 Launchpad Janitor procps (Ubuntu): status New Confirmed
2020-02-05 14:00:55 Heitor Alves de Siqueira tags sts
2020-02-05 14:01:39 Heitor Alves de Siqueira description In Ubuntu 12.04.5 LTS (procps 1:3.2.8-11ubuntu6.3), the following worked fine: $ export PS_FORMAT=thcount $ ps THCNT 1 1 In Ubuntu 14.04.1 LTS (procps 1:3.3.9-1ubuntu2), it does not work anymore: $ export PS_FORMAT=thcount $ ps warning: $PS_FORMAT ignored. (unknown user-defined format specifier "thcount") PID TTY TIME CMD 6593 pts/1 00:00:00 ps 16633 pts/1 00:00:00 bash Other PS_FORMAT specifiers still work fine (I have tried many, but not all). In real-life usage, a more complex PS_FORMAT would of course be used, such as PS_FORMAT=pid,s,thcount,nice,euser,egroup,etime,cputime,%mem,rssize:6,size:7,vsize:7,command Workaround: use nlwp instead of thcount (they are alias to the same data, and nlwp works fine in both versions). [Impact] ps -o thcount doesn't print out an error (error: unknown user-defined format specifier "thcount") [Description] The Xenial version of procps has a bug in the thcount format specifier. ps doesn't recognize it, and complains about an unknown user-defined format. This is due to the format specifier table in ps/output.c, which is queried with a binary search. Since the "thcount" entry appears out of order in Xenial, it can't be looked up and the program fails with the "unknown user-defined format specifier" error. This has been fixed upstream by the commit below: - Fix for Bug:1174313 (3a52dfa34027) $ git describe --contains 3a52dfa34027 v3.3.12~58^2 $ rmadison procps procps | 2:3.3.10-4ubuntu2 | xenial | source, ... procps | 2:3.3.10-4ubuntu2.4 | xenial-security | source, ... procps | 2:3.3.10-4ubuntu2.4 | xenial-updates | source, ... <-------- procps | 2:3.3.12-3ubuntu1 | bionic | source, ... procps | 2:3.3.12-3ubuntu1.1 | bionic-security | source, ... procps | 2:3.3.12-3ubuntu1.2 | bionic-updates | source, ... Releases starting with Bionic already have this fix, so it's only needed for Xenial. [Test case] 1. Boot up a Xenial environment with e.g. an lxd container: # lxc launch images:ubuntu/xenial xenial 2. Execute ps with the '-o thcount' options: # lxc exec xenial -- ps -o thcount error: unknown user-defined format specifier "thcount" Usage: ps [options] Try 'ps --help <simple|list|output|threads|misc|all>' or 'ps --help <s|l|o|t|m|a>' for additional help text. For more details see ps(1). [Regression Potential] The fix just fixes the order of two entries in the format specifier array, so the regression potential is very low. Furthermore, the patch has been present and tested in up-to-date versions of procps since Bionic. Any new regressions introduced in Xenial will be checked with autopkgtest. [Original Description] In Ubuntu 12.04.5 LTS (procps 1:3.2.8-11ubuntu6.3), the following worked fine: $ export PS_FORMAT=thcount $ ps THCNT     1     1 In Ubuntu 14.04.1 LTS (procps 1:3.3.9-1ubuntu2), it does not work anymore: $ export PS_FORMAT=thcount $ ps warning: $PS_FORMAT ignored. (unknown user-defined format specifier "thcount")   PID TTY TIME CMD  6593 pts/1 00:00:00 ps 16633 pts/1 00:00:00 bash Other PS_FORMAT specifiers still work fine (I have tried many, but not all). In real-life usage, a more complex PS_FORMAT would of course be used, such as PS_FORMAT=pid,s,thcount,nice,euser,egroup,etime,cputime,%mem,rssize:6,size:7,vsize:7,command Workaround: use nlwp instead of thcount (they are alias to the same data, and nlwp works fine in both versions).
2020-02-05 14:01:55 Heitor Alves de Siqueira nominated for series Ubuntu Xenial
2020-02-05 14:01:55 Heitor Alves de Siqueira bug task added procps (Ubuntu Xenial)
2020-02-05 14:02:03 Heitor Alves de Siqueira procps (Ubuntu): status Confirmed Fix Released
2020-02-05 14:02:07 Heitor Alves de Siqueira procps (Ubuntu Xenial): status New In Progress
2020-02-05 14:02:11 Heitor Alves de Siqueira procps (Ubuntu Xenial): assignee Heitor Alves de Siqueira (halves)
2020-02-05 14:04:25 Heitor Alves de Siqueira summary PS_FORMAT=thcount does not work anymore ps doesn't support "thcount" format specifier on Xenial
2020-02-07 14:43:01 Launchpad Janitor merge proposal linked https://code.launchpad.net/~halves/ubuntu/+source/procps/+git/procps/+merge/378736
2020-02-12 15:59:08 Dan Streetman bug added subscriber Dan Streetman
2020-02-15 12:27:07 Heitor Alves de Siqueira description [Impact] ps -o thcount doesn't print out an error (error: unknown user-defined format specifier "thcount") [Description] The Xenial version of procps has a bug in the thcount format specifier. ps doesn't recognize it, and complains about an unknown user-defined format. This is due to the format specifier table in ps/output.c, which is queried with a binary search. Since the "thcount" entry appears out of order in Xenial, it can't be looked up and the program fails with the "unknown user-defined format specifier" error. This has been fixed upstream by the commit below: - Fix for Bug:1174313 (3a52dfa34027) $ git describe --contains 3a52dfa34027 v3.3.12~58^2 $ rmadison procps procps | 2:3.3.10-4ubuntu2 | xenial | source, ... procps | 2:3.3.10-4ubuntu2.4 | xenial-security | source, ... procps | 2:3.3.10-4ubuntu2.4 | xenial-updates | source, ... <-------- procps | 2:3.3.12-3ubuntu1 | bionic | source, ... procps | 2:3.3.12-3ubuntu1.1 | bionic-security | source, ... procps | 2:3.3.12-3ubuntu1.2 | bionic-updates | source, ... Releases starting with Bionic already have this fix, so it's only needed for Xenial. [Test case] 1. Boot up a Xenial environment with e.g. an lxd container: # lxc launch images:ubuntu/xenial xenial 2. Execute ps with the '-o thcount' options: # lxc exec xenial -- ps -o thcount error: unknown user-defined format specifier "thcount" Usage: ps [options] Try 'ps --help <simple|list|output|threads|misc|all>' or 'ps --help <s|l|o|t|m|a>' for additional help text. For more details see ps(1). [Regression Potential] The fix just fixes the order of two entries in the format specifier array, so the regression potential is very low. Furthermore, the patch has been present and tested in up-to-date versions of procps since Bionic. Any new regressions introduced in Xenial will be checked with autopkgtest. [Original Description] In Ubuntu 12.04.5 LTS (procps 1:3.2.8-11ubuntu6.3), the following worked fine: $ export PS_FORMAT=thcount $ ps THCNT     1     1 In Ubuntu 14.04.1 LTS (procps 1:3.3.9-1ubuntu2), it does not work anymore: $ export PS_FORMAT=thcount $ ps warning: $PS_FORMAT ignored. (unknown user-defined format specifier "thcount")   PID TTY TIME CMD  6593 pts/1 00:00:00 ps 16633 pts/1 00:00:00 bash Other PS_FORMAT specifiers still work fine (I have tried many, but not all). In real-life usage, a more complex PS_FORMAT would of course be used, such as PS_FORMAT=pid,s,thcount,nice,euser,egroup,etime,cputime,%mem,rssize:6,size:7,vsize:7,command Workaround: use nlwp instead of thcount (they are alias to the same data, and nlwp works fine in both versions). [Impact] ps -o thcount prints out an error (error: unknown user-defined format specifier "thcount") [Description] The Xenial version of procps has a bug in the thcount format specifier. ps doesn't recognize it, and complains about an unknown user-defined format. This is due to the format specifier table in ps/output.c, which is queried with a binary search. Since the "thcount" entry appears out of order in Xenial, it can't be looked up and the program fails with the "unknown user-defined format specifier" error. This has been fixed upstream by the commit below: - Fix for Bug:1174313 (3a52dfa34027) $ git describe --contains 3a52dfa34027 v3.3.12~58^2 $ rmadison procps  procps | 2:3.3.10-4ubuntu2 | xenial | source, ...  procps | 2:3.3.10-4ubuntu2.4 | xenial-security | source, ...  procps | 2:3.3.10-4ubuntu2.4 | xenial-updates | source, ... <--------  procps | 2:3.3.12-3ubuntu1 | bionic | source, ...  procps | 2:3.3.12-3ubuntu1.1 | bionic-security | source, ...  procps | 2:3.3.12-3ubuntu1.2 | bionic-updates | source, ... Releases starting with Bionic already have this fix, so it's only needed for Xenial. [Test case] 1. Boot up a Xenial environment with e.g. an lxd container: # lxc launch images:ubuntu/xenial xenial 2. Execute ps with the '-o thcount' options: # lxc exec xenial -- ps -o thcount error: unknown user-defined format specifier "thcount" Usage:  ps [options]  Try 'ps --help <simple|list|output|threads|misc|all>'   or 'ps --help <s|l|o|t|m|a>'  for additional help text. For more details see ps(1). [Regression Potential] The fix just fixes the order of two entries in the format specifier array, so the regression potential is very low. Furthermore, the patch has been present and tested in up-to-date versions of procps since Bionic. Any new regressions introduced in Xenial will be checked with autopkgtest. [Original Description] In Ubuntu 12.04.5 LTS (procps 1:3.2.8-11ubuntu6.3), the following worked fine: $ export PS_FORMAT=thcount $ ps THCNT     1     1 In Ubuntu 14.04.1 LTS (procps 1:3.3.9-1ubuntu2), it does not work anymore: $ export PS_FORMAT=thcount $ ps warning: $PS_FORMAT ignored. (unknown user-defined format specifier "thcount")   PID TTY TIME CMD  6593 pts/1 00:00:00 ps 16633 pts/1 00:00:00 bash Other PS_FORMAT specifiers still work fine (I have tried many, but not all). In real-life usage, a more complex PS_FORMAT would of course be used, such as PS_FORMAT=pid,s,thcount,nice,euser,egroup,etime,cputime,%mem,rssize:6,size:7,vsize:7,command Workaround: use nlwp instead of thcount (they are alias to the same data, and nlwp works fine in both versions).
2020-03-05 12:40:42 Łukasz Zemczak procps (Ubuntu Xenial): status In Progress Fix Committed
2020-03-05 12:40:44 Łukasz Zemczak bug added subscriber Ubuntu Stable Release Updates Team
2020-03-05 12:40:47 Łukasz Zemczak bug added subscriber SRU Verification
2020-03-05 12:40:49 Łukasz Zemczak tags sts sts verification-needed verification-needed-xenial
2020-03-05 16:10:21 Heitor Alves de Siqueira tags sts verification-needed verification-needed-xenial sts verification-done verification-done-xenial
2020-03-26 09:19:16 Launchpad Janitor procps (Ubuntu Xenial): status Fix Committed Fix Released
2020-03-26 09:19:21 Łukasz Zemczak removed subscriber Ubuntu Stable Release Updates Team