[Bug 1303649] Re: systemd-logind spins in cgmanager_ping_sync()

2014-04-11 Thread Serge Hallyn
** Also affects: lxc (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1303649 Title: systemd-logind spins in cgmanager_ping_sync()

[Bug 1303649] Re: systemd-logind spins in cgmanager_ping_sync()

2014-04-11 Thread Serge Hallyn
** Changed in: lxc (Ubuntu) Status: New = Confirmed ** Changed in: lxc (Ubuntu) Importance: Undecided = High ** Changed in: systemd (Ubuntu) Status: New = Confirmed ** Changed in: systemd (Ubuntu) Importance: Undecided = High -- You received this bug notification because

[Bug 1303649] Re: systemd-logind spins in cgmanager_ping_sync()

2014-04-11 Thread Serge Hallyn
Actually the source of the problem is that I was calling nih_dbus_setup(), which actually sets up the mainloop. It is not needed - as I thought it was - for making *_sync calls from cgmanager- client.so. So the right fix is to not call that. Two comments on this. First, nih_dbus_setup() seems

[Bug 1303649] Re: systemd-logind spins in cgmanager_ping_sync()

2014-04-11 Thread James Hunt
Right. So to be completely clear, by calling nih_dbus_setup(), nih was registering a libdbus handler that runs on the client side such that whenever libdbus deemed necessary, it would attempt to wake up the clients main loop by calling nih_main_loop_interrupt(). However, since the client didn't

[Bug 1303649] Re: systemd-logind spins in cgmanager_ping_sync()

2014-04-11 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/trusty-proposed/systemd -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/1303649 Title: systemd-logind spins in cgmanager_ping_sync() To manage notifications

[Bug 1303649] Re: systemd-logind spins in cgmanager_ping_sync()

2014-04-11 Thread Launchpad Bug Tracker
This bug was fixed in the package lxc - 1.0.3-0ubuntu2 --- lxc (1.0.3-0ubuntu2) trusty; urgency=medium * Cherry-pick upstream fix for cgmanager integration. (LP: #1303649) -- Stephane Graber stgra...@ubuntu.com Fri, 11 Apr 2014 12:17:41 -0400 ** Changed in: lxc (Ubuntu)

[Bug 1303649] Re: systemd-logind spins in cgmanager_ping_sync()

2014-04-11 Thread Serge Hallyn
** Changed in: libnih (Ubuntu) Status: Confirmed = Invalid ** Changed in: cgmanager (Ubuntu) Status: Confirmed = Invalid -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu.

[Bug 1303649] Re: systemd-logind spins in cgmanager_ping_sync()

2014-04-11 Thread Launchpad Bug Tracker
This bug was fixed in the package systemd - 204-5ubuntu19 --- systemd (204-5ubuntu19) trusty; urgency=medium * cgmanager: don't call nih_dbus_setup() since we won't use the nih_mainloop(). (LP: #1303649) -- Serge Hallyn serge.hal...@ubuntu.com Fri, 11 Apr 2014 10:17:04

[Bug 1303649] Re: systemd-logind spins in cgmanager_ping_sync()

2014-04-10 Thread Stéphane Graber
The stacktrace suggests we are in libcgmanager, so adding a cgmanager task. ** Also affects: cgmanager (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cgmanager in Ubuntu.

[Bug 1303649] Re: systemd-logind spins in cgmanager_ping_sync()

2014-04-10 Thread Serge Hallyn
It turns out the write() is not a part of the dbus transaction with cgmanager, but actually a part of libnih's mainloop exiting code: (gdb) where #0 0x7f70ea509700 in __write_nocancel () at ../sysdeps/unix/syscall-template.S:81 #1 0x7f70eae47377 in nih_main_loop_interrupt