diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-05-23 15:21:51 +0200 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2021-05-23 15:25:23 +0200 |
commit | 3d5b6d9282e584557999772d3cedd7e8ceddabbd (patch) | |
tree | 3695afaf34de58ed89dfa9baa1f302522a56f0fb /Process.h | |
parent | 771a1be316d9aea91bec22c32288fe7b9d88d15c (diff) |
Fix assert failure on short running thread
The following assert failure might happen on short running threads with
an empty comm value in /proc/${pid}/stat:
htop: Process.c:1159: void Process_updateCmdline(Process *, const char *, int, int): Assertion `(cmdline && basenameStart < (int)strlen(cmdline)) || (!cmdline && basenameStart == 0)' failed.
The specific task is:
comm=''
exe='(null)'
cmdline='/usr/bin/ruby /usr/bin/how-can-i-help --apt'
So basenameStart is 0, while strlen(cmdline) is also 0.
Diffstat (limited to 'Process.h')
0 files changed, 0 insertions, 0 deletions