Bug 276958 - Process name is truncated to 15 characters
Summary: Process name is truncated to 15 characters
Status: RESOLVED FIXED
Alias: None
Product: ksysguard
Classification: Applications
Component: ksysguard (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-02 16:11 UTC by Mad Fish
Modified: 2011-07-06 20:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.7.0


Attachments
Screenshot of the problem (122.86 KB, image/png)
2011-07-02 16:11 UTC, Mad Fish
Details
Fix for GUI problem. (1.51 KB, patch)
2011-07-03 23:17 UTC, Mad Fish
Details
Fix for ksysguardd. (1.48 KB, patch)
2011-07-03 23:17 UTC, Mad Fish
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mad Fish 2011-07-02 16:11:31 UTC
Created attachment 61555 [details]
Screenshot of the problem

Version:           unspecified (using KDE 4.6.3) 
OS:                Linux

See attached screenshot.

Reproducible: Always

Steps to Reproduce:
Open "System monitor" application and observe process list.


Expected Results:  
Name should contain full, non-truncated, name.

OS: Linux (x86_64) release 2.6.39-ck
Compiler: gcc
Comment 1 John Tapsell 2011-07-03 21:55:45 UTC
It is the kernel that truncates it.  ksysguard tries to deduce the
untruncated name from the command line.

Does it work in the gnome- system-monitor ?  Or in top or ps?

John
Comment 2 Mad Fish 2011-07-03 22:03:10 UTC
It is in fact working in gnome-system-monitor. /proc/*/stat contains truncated name, but /proc/*/cmdline has the full name. So, for some reason, it fails to deduce the name from the command line.
Comment 3 John Tapsell 2011-07-03 22:04:41 UTC
Could you paste what stat and cmdline say please?

On 3 July 2011 23:03, Mad Fish <MadFishTheOne@gmail.com> wrote:
> https://bugs.kde.org/show_bug.cgi?id=276958
>
>
>
>
>
> --- Comment #2 from Mad Fish <MadFishTheOne gmail com>  2011-07-03 22:03:10 ---
> It is in fact working in gnome-system-monitor. /proc/*/stat contains truncated
> name, but /proc/*/cmdline has the full name. So, for some reason, it fails to
> deduce the name from the command line.
>
> --
> Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are watching the assignee of the bug.
>
Comment 4 Mad Fish 2011-07-03 22:09:09 UTC
For process "gnome-system-monitor":

stat:
21070 (gnome-system-mo) S 1 21069 21069 0 -1 4202496 12447 0 0 0 1001 321 0 0 1 0 3 0 3537005 409067520 6214 18446744073709551615 4194304 4421528 140735894906672 140735894905792 140278792727427 0 0 4102 0 18446744073709551615 0 0 17 1 0 0 0 0 0

cmdline:
/usr/bin/gnome-system-monitor\0

\0 is a zero character.
Comment 5 Mad Fish 2011-07-03 23:17:07 UTC
Created attachment 61587 [details]
Fix for GUI problem.
Comment 6 Mad Fish 2011-07-03 23:17:51 UTC
Created attachment 61588 [details]
Fix for ksysguardd.

Apparently, it was not necessary, but the work has been done. :)
Comment 7 John Tapsell 2011-07-03 23:49:16 UTC
Looks good.  Feel free to merge if you can.
Comment 8 Mad Fish 2011-07-03 23:56:33 UTC
How do I do that? I don't have a developer account, I'm just some random guy from the internets. :)
Comment 9 Albert Astals Cid 2011-07-06 20:17:55 UTC
Commited to 4.7 and master