Subject: bin/29475: ssh on -current doesn't forward X properly
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <smb@cs.columbia.edu>
List: netbsd-bugs
Date: 02/21/2005 02:06:00
>Number: 29475
>Category: bin
>Synopsis: some X applications don't run over ssh
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 21 02:06:00 +0000 2005
>Originator: Steven M. Bellovin
>Release: NetBSD 2.99.16
>Organization:
>Environment:
System: NetBSD bigboy.machshav.com 2.99.16 NetBSD 2.99.16 (BIGBOY) #0: Sat Feb 19 20:29:06 EST 2005 smb@bigboy.machshav.com:/usr/BUILD/obj/sys/arch/i386/compile/BIGBOY i386
Architecture: i386
Machine: i386
>Description:
I upgraded my laptop and a desktop to yesterday's -current. I'm
now having trouble running certain X applications over ssh.
The laptop uses XFree86 4.4.0; the desktop uses xorg.
I did not upgrade X on either machine. If I log in from my desktop
to my laptop via ssh (with X forwarding -- it's all done by scripts
that haven't changed), I can't fire up (for example) exmh, acroread5,
or psi. With the first two, the startup fails completely. I get
X Error of failed request: BadAtom (invalid Atom parameter)
Major opcode of failed request: 18 (X_ChangeProperty)
Atom id in failed request: 0x182
Serial number of failed request: 137
Current serial number in output stream: 138
with acroread5 (via Linux emulation, of course) and
X Error of failed request: BadAtom (invalid Atom parameter)
Major opcode of failed request: 18 (X_ChangeProperty)
Atom id in failed request: 0x184
Serial number of failed request: 12
Current serial number in output stream: 15
for exmh (native).
psi is rather weirder -- I get lots of mesages like this, every few
seconds:
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 2
Minor opcode: 0
Resource id: 0x40
but it fires up. (The messages continue while psi is running.) When
I exit, I get
X Error of failed request: BadWindow (invalid Window parameter)
Major opcode of failed request: 2 (X_ChangeWindowAttributes)
Resource id in failed request: 0x40
Serial number of failed request: 20747
Current serial number in output stream: 20767
On the other hand, I can fire up some X applications, such as xterm
and xwininfo. I can run xmms successfully, but when it exits it says
Gdk-ERROR **: BadAccess (attempt to access private resource denied)
serial 2977 error_code 10 request_code 102 minor_code 0
Switching to an older version of ssh solves the problem, which
strongly points to the trouble area.
>How-To-Repeat:
See above
>Fix:
>Unformatted: