You are not logged in.

#1 2008-12-14 17:09:40

peti
Member
From: Berlin
Registered: 2008-12-14
Posts: 24
Website

[Solved] Cannot start emacs through an ssh-forwarded x11 connection

Hi,

I recently installed Archlinux and am quite happy with it.  Thanks to everyone who has apparently worked hard to make it so nice. There is one error that baffles me, however. I'm used to being able to start Emacs as 'root' through an ssh-forwarded x11 connection, but for some reason this doesn't work on Archlinux:

[simons@peti ~]$ ssh root@localhost
Last login: Sun Dec 14 17:50:28 2008 from localhost
[root@peti ~]# emacs
The program 'emacs' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAccess (attempt to access private resource denied)'.
  (Details: serial 15 error_code 10 request_code 152 minor_code 4)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Starting other applications this way does works -- it's only Emacs that aborts outright --, but I do get similar error messages, i.e. from qgit:

X Error: BadAccess (attempt to access private resource denied) 10
  Extension:    152 (RANDR)
  Minor opcode: 4 (RRSelectInput)
  Resource id:  0x5c
X Error: BadAccess (attempt to access private resource denied) 10
  Major opcode: 2 (X_ChangeWindowAttributes)
  Resource id:  0x5c

I'm not exactly an X11 expert; I have no idea how to debug this error. The syslog doesn't say anything about an invalid resourcess access, neither does /var/log/Xorg.0.log. In ~/.xsession-errors I see the following error, but I don't know what it means:

gnc.bin-Message: main: binreloc relocation support was disabled at configure time.

Does anyone have an idea how to explain this phenomenon? Any suggestions would be appreciated.

Take care,
Peter

Last edited by peti (2008-12-14 20:01:27)

Offline

#2 2008-12-14 17:17:14

pointone
Wiki Admin
From: Waterloo, ON
Registered: 2008-02-21
Posts: 379

Re: [Solved] Cannot start emacs through an ssh-forwarded x11 connection

Where's the X11 forwarding you speak of?

ssh -Y root@localhost
man ssh

(Unless you have it set already in your config file... Just making sure!)


M*cr*s*ft: Who needs quality when you have marketing?

Offline

#3 2008-12-14 17:29:56

peti
Member
From: Berlin
Registered: 2008-12-14
Posts: 24
Website

Re: [Solved] Cannot start emacs through an ssh-forwarded x11 connection

This is what I call an easy solution. Thanks for the tip, pointone. I wasn't aware of the difference between x11 forwarding and trusted x11 forwarding. My old installation didn't seem to make that distinction. Maybe that feature was added to SSH somewhat recently. Anyway, the point is that, now, Emacs starts up fine.

Thanks,
Peter

Offline

#4 2008-12-14 18:43:47

pointone
Wiki Admin
From: Waterloo, ON
Registered: 2008-02-21
Posts: 379

Re: [Solved] Cannot start emacs through an ssh-forwarded x11 connection

Glad to help. Please mark the thread as SOLVED!


M*cr*s*ft: Who needs quality when you have marketing?

Offline

Board footer

Powered by FluxBB