[Bug 592434] Re: ssh -X user@machine hangs when using exit to terminate

2018-11-07 Thread Bug Watch Updater
** Changed in: dbus
   Status: Confirmed => Unknown

** Changed in: dbus
   Importance: Medium => Wishlist

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/592434

Title:
  ssh -X user@machine hangs when using exit to terminate

To manage notifications about this bug go to:
https://bugs.launchpad.net/dbus/+bug/592434/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 592434] Re: ssh -X user@machine hangs when using exit to terminate

2018-03-14 Thread Anthony Jenkins
Try running the remote X client using dbus-run-session(1), which I have
on my FreeBSD build of dbus:

$ ssh mybox
$ dbus-run-session -- gedit

I came across this thread looking for why ssh sessions in which I ran
/certain/ X clients would hang the session when I tried to exit.  Now
that I know it's a dbus issue, I came across a dbus session wrapper
program that suits my needs perfectly.  Now I can alias those naughty
commands while in an ssh session.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/592434

Title:
  ssh -X user@machine hangs when using exit to terminate

To manage notifications about this bug go to:
https://bugs.launchpad.net/dbus/+bug/592434/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 592434] Re: ssh -X user@machine hangs when using exit to terminate

2016-10-14 Thread Bryan Quigley
This has been fixed in Ubuntu 16.10.  I'm guessing by systemd/dbus
changes but I'm not sure.  Tested with gedit and virt-manager.

** Changed in: dbus (Ubuntu)
   Status: Triaged => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/592434

Title:
  ssh -X user@machine hangs when using exit to terminate

To manage notifications about this bug go to:
https://bugs.launchpad.net/dbus/+bug/592434/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 592434] Re: ssh -X user@machine hangs when using exit to terminate

2016-01-24 Thread Bug Watch Updater
** Changed in: dbus (Debian)
   Status: Unknown => New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/592434

Title:
  ssh -X user@machine hangs when using exit to terminate

To manage notifications about this bug go to:
https://bugs.launchpad.net/dbus/+bug/592434/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 592434] Re: ssh -X user@machine hangs when using exit to terminate

2016-01-24 Thread Chris Bainbridge
** Bug watch added: Debian Bug tracker #639647
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=639647

** Also affects: dbus (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=639647
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/592434

Title:
  ssh -X user@machine hangs when using exit to terminate

To manage notifications about this bug go to:
https://bugs.launchpad.net/dbus/+bug/592434/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 592434] Re: ssh -X user@machine hangs when using exit to terminate

2015-07-17 Thread Bryan Quigley
I've given up on it for now.. it requires substancial changes and is a
quasi-design flaw with dbus.

I am curious (- I haven't checked) what happens with the switch to
sdbus/kdbus.

Eventually it might be worthwhile to actually have dbus start and manage
your ssh session (the server side only of course) and then everything
should might work fine, then you can have bash as a systemd managed user
job.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/592434

Title:
  ssh -X user@machine hangs when using exit to terminate

To manage notifications about this bug go to:
https://bugs.launchpad.net/dbus/+bug/592434/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 592434] Re: ssh -X user@machine hangs when using exit to terminate

2015-07-15 Thread Wimmer
still there on 14.04.
Is anybody looking into that?
I understand its not a huge bug, but it is pretty annoying.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/592434

Title:
  ssh -X user@machine hangs when using exit to terminate

To manage notifications about this bug go to:
https://bugs.launchpad.net/dbus/+bug/592434/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 592434] Re: ssh -X user@machine hangs when using exit to terminate

2014-09-23 Thread Bryan Quigley
** Description changed:

  ssh -X user@server hangs when using exit to terminate
  
  Steps to reproduce:
  user@client:~$ ssh -X user@server
  user@server:~$ gedit
  
  At this point gedit from server will run locally. Closing the program
  and returning to the terminal you run:
  
  user@server:~$ exit
  logout
  
  At this point the terminal hangs on the echo logout, but does not return to 
the client prompt. The action has been consistent when connecting to a server 
running opensolaris or ubuntu 8.04.
  The client is using Ubuntu 10.04 and the server is using 8.04, and using 
default password authentication. As you will see in the video attached I can 
confirm the issue when using a clean Ubuntu 10.04 as a client and Ubuntu 8.04 
as the server, using default password authentication.
  
- However there are a few things you can do to work around this issue.
+ Workaround
+ --
  -When logging out with "exit" and it hangs, press Ctrl-C
  -If you would like to simply use gedit on another computer use the following 
command:
-   $ dbus-launch gedit
-   
+   $ dbus-launch gedit
  
  Date: Thu Jun 10 17:34:26 2010

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/592434

Title:
  ssh -X user@machine hangs when using exit to terminate

To manage notifications about this bug go to:
https://bugs.launchpad.net/dbus/+bug/592434/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 592434] Re: ssh -X user@machine hangs when using exit to terminate

2013-09-22 Thread Ritesh Khadgaray
** Description changed:

  ssh -X user@server hangs when using exit to terminate
  
  Steps to reproduce:
  user@client:~$ ssh -X user@server
  user@server:~$ gedit
  
  At this point gedit from server will run locally. Closing the program
  and returning to the terminal you run:
  
  user@server:~$ exit
  logout
  
  At this point the terminal hangs on the echo logout, but does not return to 
the client prompt. The action has been consistent when connecting to a server 
running opensolaris or ubuntu 8.04.
  The client is using Ubuntu 10.04 and the server is using 8.04, and using 
default password authentication. As you will see in the video attached I can 
confirm the issue when using a clean Ubuntu 10.04 as a client and Ubuntu 8.04 
as the server, using default password authentication.
  
  However there are a few things you can do to work around this issue.
- -When logging out press Ctrl-D
  -When logging out with "exit" and it hangs, press Ctrl-C
  -If you would like to simply use gedit on another computer use the following 
command:
- ssh -X lucas@machine gedit
+   $ dbus-launch gedit
+   
  
- ProblemType: Bug
- DistroRelease: Ubuntu 10.04
- Package: openssh-server 1:5.3p1-3ubuntu3
- ProcVersionSignature: Ubuntu 2.6.32-22.36-generic-pae 2.6.32.11+drm33.2
- Uname: Linux 2.6.32-22-generic-pae i686
- Architecture: i386
  Date: Thu Jun 10 17:34:26 2010
- InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
- ProcEnviron:
-  LANG=en_US.utf8
-  SHELL=/bin/bash
- SourcePackage: openssh

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/592434

Title:
  ssh -X user@machine hangs when using exit to terminate

To manage notifications about this bug go to:
https://bugs.launchpad.net/dbus/+bug/592434/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 592434] Re: ssh -X user@machine hangs when using exit to terminate

2013-07-26 Thread Ritesh Khadgaray
related thread -

http://lists.freedesktop.org/archives/dbus/2010-May/012853.html
http://lists.freedesktop.org/archives/dbus/2010-May/012860.html

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/592434

Title:
  ssh -X user@machine hangs when using exit to terminate

To manage notifications about this bug go to:
https://bugs.launchpad.net/dbus/+bug/592434/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 592434] Re: ssh -X user@machine hangs when using exit to terminate

2013-07-26 Thread Bug Watch Updater
Launchpad has imported 14 comments from the remote bug at
https://bugs.freedesktop.org/show_bug.cgi?id=32509.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.


On 2010-12-19T12:01:19+00:00 Colin Walters wrote:

See

https://bugzilla.redhat.com/show_bug.cgi?id=663467

Reply at:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/592434/comments/7


On 2010-12-19T12:02:55+00:00 Colin Walters wrote:

Created attachment 41260
systemd install: Use -f for "ln"

We do want to overwrite an existing install; use case is "jhbuild"
type setup.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/592434/comments/8


On 2010-12-19T12:02:59+00:00 Colin Walters wrote:

Created attachment 41261
dbus-launch: Refactor duplicate code

De-duplicate execl() invocations of dbus-daemon.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/592434/comments/9


On 2010-12-19T12:03:03+00:00 Colin Walters wrote:

Created attachment 41262
Scope autolaunch to requesting client, don't connect to X server

Previously, when logging in via ssh with X forwarding, since
on most operating systems there is no DBUS_SESSION_BUS_ADDRESS,
we autolaunch a bus.  In this is that dbus-launch will
connect to the remote X server and scope itself to that, which
will cause ssh to refuse to exit because there are still clients.

Basically:
ssh -X remotehost
firefox &


Now, scoping of the bus is a long debated mess, but there is
a reasonable fix for the ssh -X case; we scope the bus lifetime
to the requesting client, not to the X server.

This patch adds --exit-after-clients-exit option to the bus, which
will cause the bus, after an initial connection is made once, to exit
after it has no connections.

dbus-launch --autolaunch is modified to use this.  Now, in the
Firefox case what's actually going on is that it talks to GConf,
which was recently modified to scope to DBus, bus since no bus
is available it autolaunches one.  The resulting gconfd-2 process
hangs around after ssh exits, but will eventually time out.

Possible regressions:
* Previously dbus-launch looked at the X server to try to find
  a bus address; this worked in the "local" (i.e. same uid-kernel)
  case where one manually sets:
  DISPLAY=:0 somedbusapp
  A specific example of this case is the legacy Unix getty.  But
  I don't see this as a big problem; there are other environment
  variables, and really, the right fix for this is to have the
  OS default to single session.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/592434/comments/10


On 2010-12-19T13:42:54+00:00 Colin Walters wrote:

Created attachment 41273
updated patch

V2: Clean up dbus-launch.c even more to be sure we don't connect to X in
autolaunch case.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/592434/comments/11


On 2010-12-19T14:05:01+00:00 Thiago Macieira wrote:

DISPLAY=:0 some-dbus-command

is very much used. You cannot remove this functionality.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/592434/comments/12


On 2010-12-19T16:09:33+00:00 Colin Walters wrote:

(In reply to comment #5)
> DISPLAY=:0 some-dbus-command 
> 
> is very much used. You cannot remove this functionality.

Well, eventually my goal is just

"some-dbus-command" works (this gets back to OS single session).

I agree maintaining DISPLAY= setting for legacy gettys is desirable (I
use it myself sometimes), though I don't see such a hard and fast "you
cannot remove" rule for random Linux voodoo commands.

The question is - can we come up with a variation that "fixes" the ssh
case without changing anything else?

It looks like recent versions of OpenSSH put "SSH_CONNECTION" in the
environment; in that case, we could simply not connect to X.  We could
also check inside dbus-launch for whether the X is remote, and if so
ignore it.

However - if it comes down to "do we 'break' getty or do we 'unbreak'
ssh", I think the latter really has to win.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/592434/comments/13


On 2010-12-19T16:41:11+00:00 Thiago Macieira wrote:

What's wrong with ssh?

Yes, I have run programs with remote X sessions and they start D-Bus.

The only thing missing in the autolaunch implementation is "suicide
mode" -- t

[Bug 592434] Re: ssh -X user@machine hangs when using exit to terminate

2013-07-26 Thread Ritesh Khadgaray
** Bug watch added: freedesktop.org Bugzilla #32509
   https://bugs.freedesktop.org/show_bug.cgi?id=32509

** Also affects: dbus via
   https://bugs.freedesktop.org/show_bug.cgi?id=32509
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/592434

Title:
  ssh -X user@machine hangs when using exit to terminate

To manage notifications about this bug go to:
https://bugs.launchpad.net/dbus/+bug/592434/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 592434] Re: ssh -X user@machine hangs when using exit to terminate

2013-07-24 Thread Bryan Quigley
** Package changed: openssh (Ubuntu) => dbus (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/592434

Title:
  ssh -X user@machine hangs when using exit to terminate

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/592434/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 592434] Re: ssh -X user@machine hangs when using exit to terminate

2013-07-24 Thread Bryan Quigley
This is really a dbus issue, not a SSH issue:
see 
http://serverfault.com/questions/405518/how-to-configure-d-bus-and-ssh-x-forwarding-to-prevent-ssh-from-hanging-on-exit

Gedit for whatever reason is looking for an active dbus-session and
running `dbus-launch --autostart' if none was found. But `dbus-launch
--autostart' doesn't watch the user session and therefore ssh hangs
while waiting dbus-launch to quit.

A workaround is to run  'dbus-launch --exit-with-session' when you first
connect over SSH.  (This unfortunately causes yet another issue:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/812913)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/592434

Title:
  ssh -X user@machine hangs when using exit to terminate

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/592434/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 592434] Re: ssh -X user@machine hangs when using exit to terminate

2013-03-16 Thread monochromec
Only happens with server versions later than 6. Server version
5.1p1-40.15 checks out OK... (albeit with the server running on OpenSuSE
10.3).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/592434

Title:
  ssh -X user@machine hangs when using exit to terminate

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/592434/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 592434] Re: ssh -X user@machine hangs when using exit to terminate

2013-03-03 Thread monochromec
PS: I got the the following when I ran the ssh client with -vvvX and
started an X11 application:

debug3: channel 0: will not send data after close
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 3
debug3: channel 0: status: The following connections are open:
  #0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)
  #2 x11 (t4 r4 i0/0 o0/0 fd 8/8 cc -1)
  #3 x11 (t4 r5 i0/0 o0/0 fd 9/9 cc -1)

In contrast to this, ssh with just -vvv produced the following output
when logging out of the server:

debug3: channel 0: will not send data after close
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
  #0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/592434

Title:
  ssh -X user@machine hangs when using exit to terminate

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/592434/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 592434] Re: ssh -X user@machine hangs when using exit to terminate

2013-03-03 Thread monochromec
This bug is still around 12.10. Openssh client  and server version
1:6.0p1-3ubuntu1.

Given the duration and progress (or lack thereof :-) of this bug:
Anybody looking at this upstream?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/592434

Title:
  ssh -X user@machine hangs when using exit to terminate

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/592434/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 592434] Re: ssh -X user@machine hangs when using exit to terminate

2012-10-18 Thread Maciej Puzio
I can confirm the issue still occurring in 12.04.
openssh-client and openssh-server version 1:5.9p1-5ubuntu1

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/592434

Title:
  ssh -X user@machine hangs when using exit to terminate

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/592434/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 592434] Re: ssh -X user@machine hangs when using exit to terminate

2012-10-09 Thread Joe Joysn
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype e...@openssh.com reply 0
debug2: channel 0: rcvd eow
debug2: channel 0: close_read
debug2: channel 0: input open -> closed
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug2: channel 0: rcvd close
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 3


^Cdebug1: channel 3: free: x11, nchannels 2
debug1: channel 4: free: x11, nchannels 1
debug1: Killed by signal 2.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/592434

Title:
  ssh -X user@machine hangs when using exit to terminate

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/592434/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 592434] Re: ssh -X user@machine hangs when using exit to terminate

2012-10-09 Thread Joe Joysn
issue still available in 12.04 LTS

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/592434

Title:
  ssh -X user@machine hangs when using exit to terminate

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/592434/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs