[ nedit-Bugs-1672539 ] 64 bit, ssh X11 forwarding: nedit X connection breaks

SourceForge.net noreply at sourceforge.net
Fri Mar 2 18:40:38 CET 2007


Bugs item #1672539, was opened at 2007-03-02 16:21
Message generated for change (Comment added) made by rschulz_uk
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=111005&aid=1672539&group_id=11005

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Program
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Reiner (rschulz_uk)
Assigned to: Nobody/Anonymous (nobody)
Summary: 64 bit, ssh X11 forwarding: nedit X connection breaks

Initial Comment:
running 64 bit ubuntu server LTS 6.01 (2.6.15-28-amd64-server kernel) on a dual core Xeon rack server. running 32 bit ubuntu desktop LTS 6.01 on my dual core Xeon desktop. version of nedit is the same on both platforms (so are the versions of the other packages that nedit depends on: lesstif2, libc6, libice6, libsm6, libx11-6, libxext6, libxp6, libxt6).

version on server:
     Built on: Linux, x86-64, GNU C
     Built at: Oct  8 2005, 20:15:23
   With Motif: 2.1.0 [@(#)GNU/LessTif Version 2.1 Release 0.93.94] (UNTESTED)
Running Motif: 2.1 [unknown]
       Server: The X.Org Foundation 70000000
       Visual: 24-bit TrueColor (ID 0x21, Default)
       Locale: en_GB.UTF-8

version on desktop:

     Built on: Linux, 486, GNU C
     Built at: Oct  8 2005, 20:13:19
   With Motif: 2.1.0 [@(#)GNU/LessTif Version 2.1 Release 0.93.94] (UNTESTED)
Running Motif: 2.1 [unknown]
       Server: The X.Org Foundation 70000000
       Visual: 24-bit TrueColor (ID 0x21, Default)
       Locale: en_GB.UTF-8

after ssh -X -v -v <server> and calling nedit, nedit fails to open a window and i get this:

debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 38848
debug2: fd 7 setting O_NONBLOCK
debug1: channel 1: new [x11]
debug1: confirm x11
debug2: channel 1: rcvd adjust 33696
debug2: channel 1: read<=0 rfd 7 len -1
debug2: channel 1: read failed
debug2: channel 1: close_read
debug2: channel 1: input open -> drain
debug2: channel 1: ibuf empty
debug2: channel 1: send eof
debug2: channel 1: input drain -> closed
debug2: channel 1: write failed
debug2: channel 1: close_write
debug2: channel 1: output open -> closed
debug2: channel 1: send close
X connection to localhost:10.0 broken (explicit kill or server shutdown).
debug2: channel 1: rcvd close
debug2: channel 1: is dead
debug2: channel 1: garbage collecting
debug1: channel 1: free: x11, nchannels 2

after ssh -X -v -v <desktop> and calling nedit, everything is fine and i get this:

debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 60257
debug2: fd 7 setting O_NONBLOCK
debug1: channel 1: new [x11]
debug1: confirm x11
debug2: channel 1: rcvd adjust 34164
debug2: channel 1: rcvd adjust 36456
debug2: channel 1: window 64284 sent adjust 66788
debug2: channel 1: window 64944 sent adjust 66128
debug2: channel 1: rcvd adjust 33280

things like xlogo, xemacs and synaptic, when started on the server, display remotely on my desktop w/o problems.

built nedit from source on server. made no difference. same behavior.

this is an obscure bug to me, and i'd appreciate any hint on how to track it down to its source.

----------------------------------------------------------------------

>Comment By: Reiner (rschulz_uk)
Date: 2007-03-02 17:40

Message:
Logged In: YES 
user_id=1733494
Originator: YES

oh this is just marvellous ... an intermittent bug :-/ nedit now suddenly
works on the 64 bit platform, and i have absolutely no idea why since i
didn't change a thing. and even better, ddd decided to start working also.
so, LessTif on 64 bit and/or with an SMP kernel is a bit moody it seems.

----------------------------------------------------------------------

Comment By: Reiner (rschulz_uk)
Date: 2007-03-02 16:54

Message:
Logged In: YES 
user_id=1733494
Originator: YES

good point, and yes, ddd segfaults specifically on the 64 bit system, not
on 32 bit. will try OpenMotif and report back.

----------------------------------------------------------------------

Comment By: Scott Tringali (tringali)
Date: 2007-03-02 16:37

Message:
Logged In: YES 
user_id=11321
Originator: NO

Also, try running some other non-nedit Motif application like ddd.  If
that exhibits the same problem, the bug is almost certainly in LessTif.


----------------------------------------------------------------------

Comment By: Scott Tringali (tringali)
Date: 2007-03-02 16:35

Message:
Logged In: YES 
user_id=11321
Originator: NO

Sorry, I think I misunderstood that.  

LessTif 0.93.94 for x86_64 is not a tested or supported configuration by
us.  Suggest that you build against OpenMotif and try again.  We really get
nailed by LessTif bugs more than anything else.


----------------------------------------------------------------------

Comment By: Reiner (rschulz_uk)
Date: 2007-03-02 16:32

Message:
Logged In: YES 
user_id=1733494
Originator: YES

hi tringali, thanks for being so prompt. tried ssh -Y. unfortunately
results in the same behavior:

debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from 127.0.0.1 60843
debug2: fd 7 setting O_NONBLOCK
debug1: channel 1: new [x11]
debug1: confirm x11
debug2: channel 1: rcvd adjust 33696
debug2: channel 1: read<=0 rfd 7 len -1
debug2: channel 1: read failed
debug2: channel 1: close_read
debug2: channel 1: input open -> drain
debug2: channel 1: ibuf empty
debug2: channel 1: send eof
debug2: channel 1: input drain -> closed
debug2: channel 1: write failed
debug2: channel 1: close_write
debug2: channel 1: output open -> closed
debug2: channel 1: send close
X connection to localhost:10.0 broken (explicit kill or server shutdown).
debug2: channel 1: rcvd close
debug2: channel 1: is dead
debug2: channel 1: garbage collecting
debug1: channel 1: free: x11, nchannels 2


----------------------------------------------------------------------

Comment By: Scott Tringali (tringali)
Date: 2007-03-02 16:25

Message:
Logged In: YES 
user_id=11321
Originator: NO

-X changed meaning in recent versions of openssh and now is mostly
useless.  Use ssh -Y.

Or, put this in your /etc/ssh/ssh_config or ~/.ssh/config file:
  ForwardX11Trusted yes


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=111005&aid=1672539&group_id=11005


More information about the Develop mailing list