Re: [Bug 544139] Re: Active VT tracking can fail at startup

2010-10-01 Thread Colin Watson
Thanks a lot, Lennie!

-- 
Active VT tracking can fail at startup
https://bugs.launchpad.net/bugs/544139
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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


Re: [Bug 544139] Re: Active VT tracking can fail at startup

2010-08-22 Thread Colin Watson
The theory in the description of this bug is that something is starting
X at the time, and that ConsoleKit is racing with it.  As such, you will
see different results from the same ioctl from moment to moment.

It's not obviously that GDM is calling ConsoleKit too early - ConsoleKit
is started by D-Bus activation when GDM asks for it, no matter what
stage it asks for it, and I assert that ConsoleKit ought to be able to
back off for a while and cope even if X is starting at the time.  I'll
construct a simpler test program and see what I got wrong in my patch.

The reason you're seeing odd sequences of messages is that there are
multiple threads running in parallel.

-- 
Active VT tracking can fail at startup
https://bugs.launchpad.net/bugs/544139
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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


Re: [Bug 544139] Re: Active VT tracking can fail at startup

2010-08-22 Thread Colin Watson
On Sun, Aug 22, 2010 at 11:57:38AM -, Lennie wrote:
 Eventually they all return -1 and say error waiting for native console.

Could you please attach the full unedited log?  I'd like to go through
the whole thing myself.  Thanks.

-- 
Active VT tracking can fail at startup
https://bugs.launchpad.net/bugs/544139
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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


Re: [Bug 544139] Re: Active VT tracking can fail at startup

2010-08-21 Thread Colin Watson
On Sat, Aug 21, 2010 at 07:40:37PM -, Lennie wrote:
 If what Colin mentions is true, then would it not help to just disable
 the getting the recently-logged-in-user-list from consolekit as a
 test/workaround ?

Could you try the package from my PPA?

The UserManager stuff in gdm is one likely cause I noticed, but I didn't
put in the extensive effort to check whether it's the only one.

-- 
Active VT tracking can fail at startup
https://bugs.launchpad.net/bugs/544139
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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


Re: [Bug 544139] Re: Active VT tracking can fail at startup

2010-08-21 Thread Colin Watson
On Sat, Aug 21, 2010 at 10:26:26PM -, Lennie wrote:
 I think maybe the debug I enabled made startup of consolekit slow enough
 that it doesn't happen for me anymore. Because I can't reproduce. :-)
 
 Can I suggest adding some debug to consolekit in the if if (errno ==
 EINVAL  data-retries++  10) {, so we can see if we trigger it ?

You should still get Error waiting for native console 1 activation:
Invalid argument etc. with my patch.  Furthermore, if you arrange for
console-kit-daemon to be run with --debug, then you should get
VT_WAITACTIVE for vt 1 and VT_WAITACTIVE for vt 1 returned
something around any calls to that ioctl, whether successful or not,
which should be enough to see what's going on.

Still, I've added a few more bits of debug to the version of my patch
that I'll send upstream if this works out.

-- 
Active VT tracking can fail at startup
https://bugs.launchpad.net/bugs/544139
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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


Re: [Bug 544139] Re: Active VT tracking can fail at startup

2010-06-22 Thread Otto Kekäläinen
FYI: My computer hasn't suffered the symptoms described in this bug  
report for over 2 months, so for my part this bug is fixed.

-- 
Active VT tracking can fail at startup
https://bugs.launchpad.net/bugs/544139
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

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