[systemd-bugs] [Bug 56644] systemd-cgls shows 'n/a' for when piping output less or more
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Nov 8 05:11:17 PST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=56644
--- Comment #3 from Anders Olofsson <Anders.Olofsson at axis.com> ---
Created attachment 69696
--> https://bugs.freedesktop.org/attachment.cgi?id=69696&action=edit
Patch to handle failed columns detection.
This looks like the same problem I'm having. I have attached a patch that
solves it for me.
The problem is that terminal width detection fails (fd_columns() in
src/shared/util.c) but the calling function (columns() in src/shared/util.c)
doesn't handle signed values and returns 4294967273 as the number of columns.
When the fault column number is passed along to get_process_cmdline() (in
src/shared/util.c) it fails to allocate memory for a string that wide resulting
in a null pointer that is printed as "n/a".
Fault exists in version 195 but not in 194.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20121108/d152a512/attachment.html>
More information about the systemd-bugs
mailing list