Bug 2663

Summary: strange getExe() values
Product: frysk Reporter: Sami Wagiaalla <swagiaal>
Component: generalAssignee: Sami Wagiaalla <swagiaal>
Status: RESOLVED FIXED    
Severity: normal CC: cmoller, pmuldoon, rmoseley, scox
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 1593    
Attachments: Image of what garbled list looks like

Description Sami Wagiaalla 2006-05-16 13:01:37 UTC
getExe returns some strage values:


/usr/bin/gnome-session (deleted)
/bin/dbus-daemon (deleted)
/usr/bin/dbus-launch (deleted)
/usr/libexec/gconfd-2vcsa3 (deleted)
/usr/libexec/bonobo-activation-server.#prelink#.EShnja (deleted)
/usr/bin/gnome-keyring-daemon.#prelink#.AHA9DW (deleted)
/usr/libexec/gnome-settings-daemon.#prelink#.gQZEgD (deleted)
/usr/bin/metacity
/usr/bin/gnome-panel (deleted)
/usr/bin/nautilus (deleted)
/usr/bin/gnome-volume-control.#prelink#.PleHyn (deleted)
Comment 1 Sami Wagiaalla 2006-05-26 11:58:22 UTC
Created attachment 1052 [details]
Image of what garbled list looks like
Comment 2 Sami Wagiaalla 2006-05-26 12:22:18 UTC
Commited a fix, but there is still one case missing
so if you see any garbled output, please post the output
of 
   readlink /proc/{pid}/exe

Comment 3 Sami Wagiaalla 2006-05-26 19:05:03 UTC
ps -fax
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.6/FAQ
  PID TTY      STAT   TIME COMMAND
    1 ?        S      0:01 init [5]
    2 ?        S      0:00 [migration/0]
    3 ?        SN     0:03 [ksoftirqd/0]
    4 ?        S      0:00 [watchdog/0]
    5 ?        S      0:00 [migration/1]
    6 ?        SN     0:02 [ksoftirqd/1]
    7 ?        S      0:00 [watchdog/1]
    8 ?        S<     0:01 [events/0]
    9 ?        S<     0:02 [events/1]
   10 ?        S<     0:00 [khelper]
   11 ?        S<     0:00 [kthread]
   15 ?        S<     0:00  \_ [kblockd/0]
   16 ?        S<     0:00  \_ [kblockd/1]
   17 ?        S<     0:00  \_ [kacpid]
  105 ?        S<     0:00  \_ [khubd]
  169 ?        S<     0:00  \_ [aio/0]
  170 ?        S<     0:00  \_ [aio/1]
  253 ?        S<     0:00  \_ [kseriod]
  322 ?        S<     0:00  \_ [kpsmoused]
  345 ?        S<     0:00  \_ [ata/0]
  346 ?        S<     0:00  \_ [ata/1]
  352 ?        S<     0:00  \_ [scsi_eh_0]
  353 ?        S<     0:00  \_ [scsi_eh_1]
  416 ?        S<     0:00  \_ [kauditd]
 1362 ?        S<     0:00  \_ [kmirrord]
17431 ?        S      0:00  \_ [pdflush]
12638 ?        S      0:00  \_ [pdflush]
  168 ?        S      0:31 [kswapd0]
  377 ?        S      0:05 [kjournald]
  440 ?        S<s    0:00 /sbin/udevd -d
  881 ?        S      0:00 [kedac]
 1385 ?        S      0:00 [kjournald]
 1387 ?        S      0:31 [kjournald]
 1740 ?        Ss     0:00 /sbin/dhclient -1 -q -lf /var/lib/dhclient/dhclient
1783 ?        Ss     0:01 syslogd -m 0
 1786 ?        Ss     0:00 klogd -x
 1796 ?        Ss     0:00 irqbalance
 1806 ?        Ss     0:00 portmap
 1825 ?        Ss     0:00 rpc.statd
 1855 ?        Ss     0:00 rpc.idmapd
 1869 ?        Ss     0:18 dbus-daemon --system
 1878 ?        Ss     0:00 hcid: processing events
 1881 ?        Ss     0:00 sdpd
 1901 ?        S<     0:00 [krfcommd]
 1932 ?        Ss     0:00 /usr/bin/hidd --server
 2017 ?        Ss     0:00 /usr/sbin/automount --timeout=60 /net program /etc/
2031 ?        S      0:00 /usr/sbin/smartd
 2040 ?        Ss     0:00 /usr/sbin/acpid
 2049 ?        Ssl    0:00 ./hpiod
 2054 ?        S      0:00 python ./hpssd.py
 2097 ?        Ss     0:00 /usr/sbin/sshd
 2115 ?        Ss     0:00 sendmail: accepting connections
 2122 ?        Ss     0:00 sendmail: Queue runner@01:00:00 for /var/spool/clie
2133 ?        Ss     0:00 gpm -m /dev/input/mice -t exps2
 2142 ?        Ss     0:01 crond
 2173 ?        Ss     0:00 xfs -droppriv -daemon
 2191 ?        Ss     0:00 /usr/sbin/atd
 2255 ?        Ss     0:32 avahi-daemon: running [multics.local]
 2256 ?        Ss     0:00  \_ avahi-daemon: chroot helper process
 2265 ?        Ss     0:00 cups-config-daemon
 2275 ?        Ss     0:04 hald
 2276 ?        S      0:00  \_ hald-runner
 2282 ?        S      0:00      \_ /usr/libexec/hald-addon-acpi
 2295 ?        S      0:07      \_ /usr/libexec/hald-addon-keyboard
 2324 ?        S      0:29      \_ /usr/libexec/hald-addon-storage
 2333 tty1     Ss+    0:00 /sbin/mingetty tty1
 2334 tty2     Ss+    0:00 /sbin/mingetty tty2
 2335 tty3     Ss+    0:00 /sbin/mingetty tty3
 2336 tty4     Ss+    0:00 /sbin/mingetty tty4
 2338 tty5     Ss+    0:00 /sbin/mingetty tty5
 2343 tty6     Ss+    0:00 /sbin/mingetty tty6
 2351 ?        Ss     0:00 /bin/sh /etc/X11/prefdm -nodaemon
 2361 ?        S      0:00  \_ /usr/sbin/gdm-binary -nodaemon
 2429 ?        S      0:00      \_ /usr/sbin/gdm-binary -nodaemon
 2430 tty7     Ss+  423:03          \_ /usr/bin/Xorg :0 -audit 0 -auth /var/gd
2511 ?        Ss     0:10          \_ /usr/bin/gnome-session
 2575 ?        Ss     0:00              \_ /usr/bin/ssh-agent /usr/bin/dbus-la
2578 ?        S      0:00 /usr/bin/dbus-launch --exit-with-session /etc/X11/x
2579 ?        Ss     0:00 dbus-daemon --fork --print-pid 8 --print-address 6
 2585 ?        S      0:01 /usr/libexec/gconfd-2 5
 2588 ?        S      0:00 /usr/bin/gnome-keyring-daemon
 2590 ?        Ss     0:00 /usr/libexec/bonobo-activation-server --ac-activate
2592 ?        Sl     1:23 /usr/libexec/gnome-settings-daemon --oaf-activate-i
2609 ?        Ssl  0:57 gnome-panel --sm-client-id default2
 2611 ?        Ssl    0:46 nautilus --no-default-window --sm-client-id default
2615 ?        Ss     0:12 eggcups --sm-client-id default4
 2617 ?        Ss     0:04 bluez-pin --dbus
 2618 ?        Ss     0:13 gnome-power-manager
 2623 ?        Ss     0:11 gnome-volume-manager --sm-client-id default5
 2625 ?        Ss     0:10 nm-applet --sm-disable
 2629 ?        Sl     0:01 /usr/libexec/gnome-vfs-daemon --oaf-activate-iid=OA
2631 ?        Ss     0:05 pam-panel-icon --sm-client-id default0
 2632 ?        S      0:00  \_ /sbin/pam_timestamp_check -d root
 2639 ?        S      0:09 /usr/libexec/notification-area-applet --oaf-activat
2641 ?        S      3:52 /usr/libexec/wnck-applet --oaf-activate-iid=OAFIID:
2643 ?        Sl     0:08 /usr/libexec/clock-applet --oaf-activate-iid=OAFIID
2645 ?        S  0:08 /usr/libexec/mixer_applet2 --oaf-activate-iid=OAFII 2649 ?
 S      1:34 /usr/libexec/stickynotes_applet --oaf-activate-iid= 2652 ?        S
     0:02 /usr/libexec/gam_server
 2658 ?        S      0:06 /usr/libexec/gpilotd --oaf-activate-iid=OAFIID:GNOM
2660 ?        S      0:00 /usr/libexec/mapping-daemon
 2666 ?        Ss     1:42 gnome-screensaver
 2674 ?        S      3:58 xchat
 2844 ?        Sl    26:50 gnome-terminal
 2845 ?        S      0:00  \_ gnome-pty-helper
 3387 pts/2    Ss+    0:04  \_ bash
15460 pts/4    Ss+    0:00  \_ bash
23161 pts/4    S      0:00  |   \_ eclipse/eclipse
23162 pts/4    Sl     3:34  |       \_
/usr/lib/jvm/java-1.4.2-ibm-1.4.2.1/jre13886 pts/1    Ss     0:03  \_ bash
25697 pts/1    R+     0:00  |   \_ ps -fax
 3207 pts/3    Ss     0:05  \_ /bin/bash
25670 pts/3    Sl+    0:02      \_
/tmp/swagiaal/frysk.bin/frysk-gui/frysk/gui25671 pts/3    S+     0:00    \_ tee
/tmp/,sami
 2965 ?        S      0:31 /usr/bin/jpilot
12403 ?        Ss     0:00 ssh-agent
 7880 ?        Sl     0:00 /usr/libexec/evolution-data-server-1.6 --oaf-activa 
558 ?        S      3:47 emacs
25331 ?        Ss     0:00  \_ aspell -a -m -B
30977 ?        Ss     0:00  \_
/usr/libexec/emacs/21.4/x86_64-redhat-linux/ema30327 ?        Ss 12:40 metacity
--sm-save-file 1144675119-2597-4166747710.26994 ? Sl     0:03
/usr/libexec/evolution/2.6/evolution-alarm-notify -31507 ?       S      0:00
/bin/sh /usr/lib64/thunderbird-1.5/thunderbird
31527 ?        S      0:00  \_ /bin/sh
/usr/lib64/thunderbird-1.5/run-mozilla.31532 ?        Sl    47:47 \_
/usr/lib64/thunderbird-1.5/thunderbird-bin
22898 pts/1    S      0:00 /usr/bin/gconfd-1 14
 5595 ?        Ss     1:18 cupsd
 6775 ?        S      0:00 /bin/sh /usr/lib64/firefox-1.5.0.1/firefox -UILocal
6786 ?        S      0:00  \_ /bin/sh /usr/lib64/firefox-1.5.0.1/run-mozilla.
6791 ?        Sl     3:07 \_ /usr/lib64/firefox-1.5.0.1/firefox-bin -UIL
Comment 4 Sami Wagiaalla 2006-05-29 14:27:06 UTC
commited work around. Please test
Comment 5 Sami Wagiaalla 2007-02-09 16:10:21 UTC
Fixed