[gpm]gpm-root doesn't work

Alain.Monvoisin card.lemoine@noos.fr
Fri, 5 Oct 2001 21:26:02 +0200


Hi all,


I have installed gpm-1-19-3 on my (2.2.19) linux box without any problem (*)...  gpm seems working as expected (fits the operation section in "man") but gpm-root has no effect at all. When I launch gpm-root, gpm itself complains about a certain socket connection which would be absent.

Has anyone any idea about this trouble ? I put some trace below. Thank you for your help.

I have also found no relevant protocol toward /dev/gpmdata and have to killall gpm before startx. What a pity !

Alain


(*) The error in protocol from syslog only happens when gpm is started from rc.local.

----
CardLemoine:/usr2/share/gpm-1.19.3# uname -a
Linux CardLemoine 2.2.19 #35 SMP sam sep 22 22:17:29 CEST 2001 i686 unknown
CardLemoine:/usr2/share/gpm-1.19.3# ldd /usr/sbin/gpm
        libc.so.6 => /lib/libc.so.6 (0x4001b000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
-----
  248 ?        S      0:00 /usr/sbin/gpm -m /dev/mouse -R ps2 -t imps2
-----
328   execve("/usr/bin/gpm-root", ["gpm-root"], [/* 42 vars */]) = 0
328   brk(0)                            = 0x804f2cc
328   mmap()                            = 0x40013000
328   open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
328   open("/etc/ld.so.cache", O_RDONLY) = 4
328   fstat(4, {...})                   = 0
328   mmap()                            = 0x40014000
328   close(4)                          = 0
328   open("/lib/libc.so.6", O_RDONLY)  = 4
328   fstat(4, {...})                   = 0
328   read(4, 0xbfffe274, 4096)         = 4096
328   mmap()                            = 0x4001b000
328   mprotect(0x400fc000, 28188, PROT_NONE) = 0
328   mmap()                            = 0x400fc000
328   mmap()                            = 0x40100000
328   close(4)                          = 0
328   mprotect(0x4001b000, 921600, PROT_READ|PROT_WRITE) = 0
328   mprotect(0x4001b000, 921600, PROT_READ|PROT_EXEC) = 0
328   munmap(0x40014000, 25792)         = 0
328   personality(PER_LINUX)            = 0
328   getpid()                          = 328
328   brk(0)                            = 0x804f2cc
328   brk(0x804f46c)                    = 0x804f46c
328   brk(0x8050000)                    = 0x8050000
328   setuid(0)                         = 0
328   getuid()                          = 0
328   uname({...})                      = 0
328   stat("/dev/vcs0", {...})          = 0
328   rt_sigaction(0x11, 0xbffff258, 0, 0x8, 0x11) = 0
328   getpid()                          = 328
328   open("/dev/tty0", O_WRONLY)       = 4
328   ioctl(4, TIOCGWINSZ, 0xbffff218)  = 0
328   socket(PF_UNSPEC, 0 /* SOCK_??? */, 0) = 5
                             --------
328   stat("/tmp", {...})               = 0
328   gettimeofday({...}, NULL)         = 0
328   getpid()                          = 328
328   stat("/tmp/gpmw9rjv1", 0xbfffe0d8) = -1 ENOENT (No such file or directory)
328   bind(0, NULL, 0)                  = 0
328   connect(0, NULL, 0)               = 0
328   write(5, 0xbffff818, 16)          = 16
328   rt_sigaction(0x14, 0xbfffeff8, 0xbfffef6c, 0x8, 0x14) = 0
328   rt_sigaction(0x14, 0xbfffeff8, 0xbfffef6c, 0x8, 0x14) = 0
328   rt_sigaction(0x1c, 0xbfffeff8, 0xbfffef6c, 0x8, 0x1c) = 0
328   chdir("/")                        = 0
328   open("/dev/console", O_RDONLY)    = 6
328   ioctl(6, TIOCGWINSZ, {ws_row=54, ws_col=144, ws_xpixel=0, ws_ypixel=0}) = 0
328   close(6)                          = 0
328   fork()                            = 329
329   close(0)                          = 0
329   close(1)                          = 0
329   close(2)                          = 0
329   open("/dev/console", O_WRONLY|O_CREAT|O_TRUNC|0x8000, 0666) = 0
329   setsid()                          = 329
329   read(5,  <unfinished ...>
328   _exit(0)                          = ?
-----
from syslog ... Oct  4 22:10:48 CardLemoine /usr/sbin/gpm[248]: Error in protocol
-----
root$ls -rt /var/log | tail -1
lastlog
root$/usr2/share/gpm-1.19.3/gpm-root
Oct  5 20:49:54 CardLemoine /usr/sbin/gpm[248]: Address  not a socket in processConn
root$killall gpm
root$Oct  5 20:51:04 CardLemoine /usr2/share/gpm-1.19.3/gpm-root[291]: Warning: closing connection

root$gpm -t imps2 &
[1] 293
root$/usr2/share/gpm-1.19.3/gpm-root
[1]+  Done                    gpm -t imps2
root$ps -ax |grep gp.*
  294 ?        S      0:00 gpm -t imps2
  296 ?        S      0:00 /usr2/share/gpm-1.19.3/gpm-root
  298 tty1     S      0:00 grep gp.*

-- 
                 Alain Monvoisin
          28, rue du Cardinal Lemoine
                  75005 Paris

<< En ce monde il se faut l'un l'autre secourir :
         Si ton voisin vient à mourir,
      C'est sur toi que le fardeau tombe.
         ...>>    Jean de La Fontaine.