#584 64 bit, ssh X11 forwarding: nedit X connection breaks

release
closed-invalid
Motif (9)
5
2007-07-13
2007-03-02
Reiner
No

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.

Discussion

  • Scott Tringali
    Scott Tringali
    2007-03-02

    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

     
  • Scott Tringali
    Scott Tringali
    2007-03-02

    • status: open --> pending
     
  • Reiner
    Reiner
    2007-03-02

    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

     
  • Reiner
    Reiner
    2007-03-02

    • status: pending --> open
     
  • Scott Tringali
    Scott Tringali
    2007-03-02

    • status: open --> pending
     
  • Scott Tringali
    Scott Tringali
    2007-03-02

    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.

     
  • Scott Tringali
    Scott Tringali
    2007-03-02

    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.

     
  • Reiner
    Reiner
    2007-03-02

    • status: pending --> open
     
  • Reiner
    Reiner
    2007-03-02

    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.

     
  • Reiner
    Reiner
    2007-03-02

    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.

     
  • Scott Tringali
    Scott Tringali
    2007-07-13

    • assigned_to: nobody --> tringali
    • labels: 355502 --> Motif
    • milestone: --> release
    • status: open --> closed-invalid
     
  • Scott Tringali
    Scott Tringali
    2007-07-13

    Logged In: YES
    user_id=11321
    Originator: NO

    Seems to be a Motif issue.