← Back to team overview

desktop-packages team mailing list archive

[Bug 864609] Re: xfce4-terminal fails to record utmp/login entries

 

Looks like libvte9 package is internally using an incorrect path for
gnome-pty-helper. libvte-2.90-9 package of the same library is using the
correct path. gnome-terminal updates utmp successfully because it is
using the latter library.

libvte9 tries to run /usr/lib/vte/gnome-pty-helper but installs
/usr/lib/libvte9/gnome-pty-helper.

The following shows the incorrect path in libvte.so.9 and the correct
path in libvte2_90.so.9:

$ strings /usr/lib/libvte.so.9 | fgrep /gnome-pty-helper
/usr/lib/vte/gnome-pty-helper
$ strings /usr/lib/libvte2_90.so.9 | fgrep /gnome-pty-helper
/usr/lib/libvte2-90/gnome-pty-helper

This shows where these packages have installed their gnome-pty-helper:

$ dpkg -S gnome-pty-helper
libvte9: /usr/lib/libvte9/gnome-pty-helper
libvte-2.90-9: /usr/lib/libvte2-90/gnome-pty-helper

As a workaround I made a symbolic link such as follows:

$ ln -s libvte9 /usr/lib/vte
$ ls -la /usr/lib/vte
lrwxrwxrwx 1 root root 7 2011-10-12 20:14 /usr/lib/vte -> libvte9

...and that solves the problem for me. xfce4-terminal now correctly adds
utmp entries.

These are the installed libvte package versions:

$ apt-cache policy libvte9 libvte-2.90-9
libvte-2.90-9:
  Installed: 1:0.28.2-0ubuntu2
  Candidate: 1:0.28.2-0ubuntu2
  Version table:
 *** 1:0.28.2-0ubuntu2 0
        500 http://kh.archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages
        100 /var/lib/dpkg/status
libvte9:
  Installed: 1:0.28.2-0ubuntu2
  Candidate: 1:0.28.2-0ubuntu2
  Version table:
 *** 1:0.28.2-0ubuntu2 0
        500 http://kh.archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages
        100 /var/lib/dpkg/status


** Package changed: xfce4-terminal (Ubuntu) => vte (Ubuntu)

** Summary changed:

- xfce4-terminal fails to record utmp/login entries
+ libvte9 fails to record utmp/login entries

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to vte in Ubuntu.
https://bugs.launchpad.net/bugs/864609

Title:
  libvte9 fails to record utmp/login entries

Status in “vte” package in Ubuntu:
  New

Bug description:
  When using xfce4-terminal (0.4.8-1) on freshly installed Xubuntu 11.10
  beta2 x86_64 no utmp entries are being recorded.

  On the same machine login, sshd, screen, xterm and gnome-terminal all
  record utmp entries successfully.

  This is an example output of "w" and "who" run on a machine with
  several xfce4-terminals open:

  snabb@oil:~$ w
   19:47:37 up  2:32,  0 users,  load average: 0.52, 2.00, 2.81
  USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
  snabb@oil:~$ who am i
  snabb@oil:~$ who -a
             system boot  2011-10-02 17:15
             run-level 2  2011-10-02 17:15
  LOGIN      tty4         2011-10-02 17:15              1255 id=4
  LOGIN      tty5         2011-10-02 17:15              1259 id=5
  LOGIN      tty2         2011-10-02 17:15              1266 id=2
  LOGIN      tty3         2011-10-02 17:15              1268 id=3
  LOGIN      tty6         2011-10-02 17:15              1274 id=6
  LOGIN      tty1         2011-10-02 17:15              2198 id=1
  snabb@oil:~$ 

  This is an example output when xterm is being used (with one window
  open). It can be seen that xterm records utmp entries successfully:

  snabb@oil:~$ w
   19:49:47 up  2:34,  1 user,  load average: 0.32, 1.38, 2.48
  USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
  snabb    pts/14   :0.0             19:49    0.00s  0.33s  0.01s w
  snabb@oil:~$ who am i
  snabb    pts/14       2011-10-02 19:49 (:0.0)
  snabb@oil:~$ who -a
             system boot  2011-10-02 17:15
             run-level 2  2011-10-02 17:15
  LOGIN      tty4         2011-10-02 17:15              1255 id=4
  LOGIN      tty5         2011-10-02 17:15              1259 id=5
  LOGIN      tty2         2011-10-02 17:15              1266 id=2
  LOGIN      tty3         2011-10-02 17:15              1268 id=3
  LOGIN      tty6         2011-10-02 17:15              1274 id=6
  LOGIN      tty1         2011-10-02 17:15              2198 id=1
  snabb    + pts/14       2011-10-02 19:49   .         10462 (:0.0)
  snabb@oil:~$ 

  Some additional observations:

  - I am surprised that gnome-terminal does NOT exhibit this problem. I
  thought that both xfce4-terminal and gnome-terminal just use libvte
  routines for utmp handling.

  - utmp was recently moved to /run/utmp. Maybe this is related?

  I will add additional details to this report in case I notice
  something useful.

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: xfce4-terminal 0.4.8-1
  ProcVersionSignature: Ubuntu 3.0.0-12.19-generic 3.0.4
  Uname: Linux 3.0.0-12-generic x86_64
  ApportVersion: 1.23-0ubuntu2
  Architecture: amd64
  Date: Sun Oct  2 19:42:57 2011
  InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110920.2)
  ProcEnviron:
   LANGUAGE=en_US:en
   PATH=(custom, user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: xfce4-terminal
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vte/+bug/864609/+subscriptions