Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71509 - Add info about ForwardX11Trusted to /etc/ssh/ssh_config
Summary: Add info about ForwardX11Trusted to /etc/ssh/ssh_config
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 79343 85828 (view as bug list)
Depends on:
Blocks: 85828
  Show dependency tree
 
Reported: 2004-11-17 03:34 UTC by Jakob Schiotz
Modified: 2005-11-12 20:34 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakob Schiotz 2004-11-17 03:34:29 UTC
When I connect from a Gentoo machine to another machine (Gentoo, Fedora Core 1, Fedora Core 3) and start emacs on the remote machine, emacs crashes as soon as I mark a region with the mouse, or if I do it with the keyboard, as soon as I copy or cut the region.  It seems to be placing things on the X clipboard (or whatever it is called) which causes the problem.  The problem also appears if I use ssh to connect to the local machine.  There are no problems connecting between the other involved machine machines and running emacs.

The problem appears if and only if the machine running the display is a Gentoo Linux, and no matter what distribution the remote machine is running.  Also, connecting from a Fedora to the Gentoo and onto another Fedora does not cause the problem.

When crashing, emacs gives the following error:
[noether] ~>emacs
X protocol error: BadAtom (invalid Atom parameter) on protocol request 18

xemacs gives a similar error, but does not crash:
[noether] ~>xemacs
Warning: Missing charsets in String to FontSet conversion
Warning: Missing charsets in String to FontSet conversion

xemacs: X Error of failed request:  BadAtom (invalid Atom parameter)
  Major opcode of failed request:  18 (X_ChangeProperty)
  Atom id in failed request:  0x123
  Serial number of failed request:  1796
  Current serial number in output stream:  1797


Since one of the main thing I do with this computer is connecting to my work place's computers using ssh, and working on those, the problem is very serious for me.



Reproducible: Always
Steps to Reproduce:
1. ssh some.other.machine (with X forwarding enabled in ssh_config and sshd_config).
2. emacs somefile
3. Mark something with the mouse

Actual Results:  
Emacs crashes with the error
X protocol error: BadAtom (invalid Atom parameter) on protocol request 18


Expected Results:  
The region should be marked.

E04/Week9> esearch xorg
[ Results for search key : xorg ]
[ Applications found : 1 ]

*  x11-base/xorg-x11
      Latest version available: 6.8.0-r1
      Latest version installed: 6.8.0-r1
      Size of downloaded files: [no/bad digest]
      Homepage:    http://freedesktop.org/XOrg
      Description: An X11 implementation maintained by the X.Org Foundation


E04/Week9> esearch openssh
[ Results for search key : openssh ]
[ Applications found : 1 ]

*  net-misc/openssh
      Latest version available: 3.8.1_p1-r1
      Latest version installed: 3.8.1_p1-r1
      Size of downloaded files: [no/bad digest]
      Homepage:    http://www.openssh.com/
      Description: Port of OpenBSD's free SSH release


E04/Week9> esearch emacs
[ Results for search key : emacs ]
[ Applications found : 18 ]

 [ ... ]
*  app-editors/emacs
      Latest version available: 21.3-r3
      Latest version installed: 21.3-r3
      Size of downloaded files: [no/bad digest]
      Homepage:    http://www.gnu.org/software/emacs
      Description: An incredibly powerful, extensible text editor

E04/Week9> emerge info
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1,
2.6.9 i686)
=================================================================
System uname: 2.6.9 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/var/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/
ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.rhnet.is/pub/gentoo/
ftp://gd.tuwien.ac.at/opsys/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X Xaw3d acpi alsa arts atlas avi berkdb bitmap-fonts cdr crypt cups dga dvd
emacs encode fam flac foomaticdb fortran gdbm gif gpm gtk gtk2 imagemagick imap
imlib java jpeg kde libg++ libwww mad maildir mbox mikmod motif mozilla mpeg
mule ncurses netcdf nls nptl oggvobis oggvorbis opengl oss pam pcmcia pdflib
perl png pnp ppds python qt quicktime readline scanner sdl slang spell sse ssl
svga tcltk tcpd tetex tiff truetype trusted usb wxwindows x86 xml2 xmms xv xvid
zlib"
Comment 1 Jakob Schiotz 2004-11-17 07:20:34 UTC
A Google search actually helped (http://www.dbforums.com/t1054531.html).  If ssh is called with -Y or "ForwardX11Trusted yes" set in ssh_config, the problem goes away.

Suggested action, before closing this bug:

Add the following two lines to /etc/ssh/ssh_config (in the net-misc/openssh package), just under the "# ForwardX11 no" line:
# ForwardX11Trusted no
# Some programs, for example emacs, require this to be set to yes to work over an ssh tunnel.

Comment 2 Don Seiler (RETIRED) gentoo-dev 2005-04-27 09:48:42 UTC
*** Bug 85828 has been marked as a duplicate of this bug. ***
Comment 3 Daniel Webert 2005-05-11 08:57:37 UTC
*** Bug 79343 has been marked as a duplicate of this bug. ***
Comment 4 Daniel Webert 2005-05-11 09:00:58 UTC
yes, it is the -X / -Y Trusted-hosts issue - maybe a einfo/info-in-sshd.conf about the 'ForwardX11Trusted' option and the bug is done
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-11-11 09:31:08 UTC
Re-assign. 
Comment 6 SpanKY gentoo-dev 2005-11-12 20:34:14 UTC
no point in duplicating the info in the manpage