command ps -A has fixed lenght output

Bug #825753 reported by pschonmann
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Some of lines are cropped with fixed lenght, see below. For example, 1st line should end daemon

  971 ? 00:00:00 console-kit-dae
 1059 ? 00:00:00 bluetoothd
 1063 ? 00:00:00 krfcommd
 1138 ? 00:00:00 upowerd
 1178 ? 00:00:00 accounts-daemon
 1207 tty1 00:00:00 getty
 1215 ? 00:00:00 dhclient
 1281 ? 00:00:00 gnome-keyring-d
 1283 ? 00:00:00 gnome-session
 1313 ? 00:00:00 ssh-agent
 1316 ? 00:00:00 dbus-launch
 1317 ? 00:00:13 dbus-daemon
 1319 ? 00:00:00 gvfsd
 1324 ? 00:00:00 gvfs-fuse-daemo
 1336 ? 00:00:02 gnome-settings-
 1347 ? 00:00:01 gconfd-2
 1350 ? 00:00:00 gsd-printer
 1356 ? 00:00:00 gnome-screensav
 1361 ? 00:00:38 pulseaudio
 1363 ? 00:00:00 rtkit-daemon
 1368 ? 00:00:00 gconf-helper
 1371 ? 00:00:01 syndaemon
 1372 ? 00:00:01 nautilus
 1373 ? 00:00:00 polkit-gnome-au
 1374 ? 00:00:00 gnome-fallback-
 1377 ? 00:00:00 nm-applet
 1381 ? 00:00:00 zeitgeist-datah
 1389 ? 00:00:00 zeitgeist-daemo
 1390 ? 00:00:00 bluetooth-apple
 1394 ? 00:00:00 gvfs-gdu-volume
 1400 ? 00:00:02 notify-osd
 1407 ? 00:00:00 udisks-daemon
 1409 ? 00:00:00 udisks-daemon
 1412 ? 00:00:00 gvfs-afc-volume
 1413 ? 00:00:00 telepathy-indic
 1416 ? 00:00:00 gvfs-gphoto2-vo
 1418 ? 00:00:00 mission-control
 1428 ? 00:00:00 gdu-notificatio
 1438 ? 00:00:00 cat
 1441 ? 00:00:00 gvfsd-trash
 1443 ? 00:00:00 gvfsd-burn
 1447 ? 00:00:00 dconf-service
 1454 ? 00:06:35 compiz
 1465 ? 00:00:00 sh
 1466 ? 00:00:01 gtk-window-deco
 1470 ? 00:00:00 bamfdaemon
 1475 ? 00:00:10 unity-panel-ser
 1481 ? 00:00:00 indicator-appli
 1482 ? 00:00:00 indicator-sound
 1485 ? 00:00:00 indicator-datet
 1486 ? 00:00:00 indicator-sessi
 1488 ? 00:00:00 indicator-messa
 1517 ? 00:00:00 unity-applicati
 1519 ? 00:00:00 unity-files-dae
 1538 ? 00:00:00 geoclue-master
 1562 ? 00:00:07 gwibber-service
 1563 ? 00:00:01 applet.py
 1636 ? 00:00:10 ubuntuone-syncd
 1657 ? 00:00:01 gwibber-service
 1658 ? 00:00:00 gwibber-service
 1706 ? 00:00:00 update-notifier
 1728 ? 00:00:00 update-apt-xapi
 2481 ? 00:00:00 deja-dup-monito
 2491 ? 00:03:51 firefox-bin
 2655 ? 00:01:12 plugin-containe
 2674 ? 00:03:35 npviewer.bin
 2770 ? 00:00:00 scsi_eh_5
 2771 ? 00:00:00 usb-storage
 2774 ? 00:00:00 udevd
 2802 ? 00:00:00 udevd
 2811 ? 00:00:00 gvfsd-metadata
 2902 ? 00:00:05 pidgin
 3026 ? 00:00:32 thunderbird-bin
 3066 ? 00:00:00 kworker/0:2
 3086 ? 00:00:00 gwibber-poster <defunct>
 3125 ? 00:00:00 gvfsd-http
 3131 ? 00:00:01 kworker/1:1
 3144 ? 00:00:00 kworker/1:2
 3145 ? 00:00:00 kworker/0:0
 3157 ? 00:00:00 kworker/0:1
 3162 ? 00:00:00 gnome-terminal
 3168 ? 00:00:00 gnome-pty-helpe

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: gnome-terminal 3.0.1-0ubuntu3
ProcVersionSignature: Ubuntu 3.0.0-8.10-generic 3.0.1
Uname: Linux 3.0.0-8-generic x86_64
Architecture: amd64
Date: Sat Aug 13 12:41:56 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha amd64 (20110808)
ProcEnviron:
 PATH=(custom, no user)
 LANG=cs_CZ.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-terminal
UpgradeStatus: Upgraded to oneiric on 2011-08-12 (0 days ago)

Revision history for this message
pschonmann (pschonmann) wrote :
Revision history for this message
Dave Gilbert (ubuntu-treblig) wrote :

Hi,
  This isn't gnome-terminal (happens in other terminals).

But I also, don't think it's actually a bug; I think ps -A is using /proc/pid/comm to get the unchangable task name, the
kernel docs (Documentation/filesystems/proc.txt) state:

3.6 /proc/<pid>/comm & /proc/<pid>/task/<tid>/comm
--------------------------------------------------------
These files provide a method to access a tasks comm value. It also allows for
a task to set its own or one of its thread siblings comm value. The comm value
is limited in size compared to the cmdline value, so writing anything longer
then the kernel's TASK_COMM_LEN (currently 16 chars) will result in a truncated
comm value.

So, that's what the kernel provides, so I don't think that's a bug.
(You might decide it is a bug, in which case it seems to be the kernel).

Dave

affects: gnome-terminal (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.