This service will be undergoing maintenance at 00:00 UTC, 2016-09-28. It is expected to last about 1 hours
Bug 229006 - ConsoleKit spews all over serial console
ConsoleKit spews all over serial console
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: ConsoleKit (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: jmccann
: Reopened
: 230937 231010 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-02-16 09:21 EST by Jarod Wilson
Modified: 2015-01-14 18:20 EST (History)
6 users (show)

See Also:
Fixed In Version: 0.2.0-2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-04-25 08:07:44 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
daemonize properly (439 bytes, patch)
2007-03-19 15:53 EDT, David Zeuthen
no flags Details | Diff
grep console- of 2008-04-24 week's notes (8.38 KB, text/plain)
2008-04-23 09:31 EDT, David Timms
no flags Details

  None (edit)
Description Jarod Wilson 2007-02-16 09:21:03 EST
Description of problem:
Current rawhide system w/a serial console set up encounters large amounts of
spew at startup from the console-kit-daemon. (currently unable to find a
ConsoleKit bugzilla component, this seemed to be as close as I could get).

Console spew:

Starting console-kit daemon: 
** (console-kit-daemon:2159): CRITICAL **: Unable to open console: Invalid argument
ioctl VT_GETSTATE: Bad file descriptor
[  OK  ]

** (console-kit-daemon:2159): WARNING **: Error waiting for native console 56
activation: Bad file descriptor

** (console-kit-daemon:2159): WARNING **: Error waiting for native console 58
activation: Bad file descriptor

** (console-kit-daemon:2159): WARNING **: Error waiting for native console 59
activation: Bad file descriptor

[...repeats around 60+ times for various native console values between 1 and 62...]
Comment 1 Jarod Wilson 2007-02-16 11:12:49 EST
Okay, ConsoleKit component exists now...
Comment 2 David Zeuthen 2007-02-16 12:17:09 EST
Jon, do you have any idea about this? Otherwise I'll try to look into it next
week. Thanks.
Comment 3 David Zeuthen 2007-02-16 13:57:43 EST
Jarod, as far as I understand the problem is only CK spewing errors; it doesn't
sabotage any of your consoles right? Thanks.
Comment 4 Jarod Wilson 2007-02-16 14:34:54 EST
Correct, I can still login on vt1, serial console and via gdm without a problem.
Comment 5 Jarod Wilson 2007-02-16 14:50:28 EST
I should probably add that a graphical login also results in this getting dumped
on the serial console:

audit(1171654461.698:5): user pid=1963 uid=81 auid=4294967295
subj=system_u:system_r:system_dbusd_t:s0 msg='avc:  denied  { send_msg } for
msgtype=method_call interface=org.freedesktop.ConsoleKit.Manager
member=OpenSessionWithParameters dest=org.freedesktop.ConsoleKit spid=2544
tpid=2222 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023
tcontext=system_u:system_r:initrc_t:s0 tclass=dbus
: exe="/bin/dbus-daemon" (sauid=81, hostname=?, addr=?, terminal=?)'
Comment 6 jmccann 2007-02-19 16:02:17 EST
CK is using the getfd.c (copied from the kbd package) to get a fd that can be
used with console ioctls.  Apparently, getfd() is not finding one.  I'll try to
reduce the spew when this is the case.
Comment 8 Jarod Wilson 2007-02-28 11:02:40 EST
I munged said patch to apply to the ConsoleKit we've got in rawhide right now,
and the results certainly look much better. All I see on the serial console now is:

Starting console-kit daemon: 
** (console-kit-daemon:2165): WARNING **: Unable to open console: Invalid argument
[  OK  ]
Comment 9 David Zeuthen 2007-02-28 12:06:49 EST
Probably ConsoleKit needs to close stdin, stdout and stderr when daemonizing...
Comment 10 David Zeuthen 2007-03-19 15:26:59 EDT
*** Bug 231010 has been marked as a duplicate of this bug. ***
Comment 11 David Zeuthen 2007-03-19 15:27:13 EDT
*** Bug 230937 has been marked as a duplicate of this bug. ***
Comment 12 David Zeuthen 2007-03-19 15:53:41 EDT
Created attachment 150424 [details]
daemonize properly

Jon, how about this patch? This is what I just put in Rawhide for the 0.2.0
release.
Comment 13 David Zeuthen 2007-03-19 15:55:29 EDT
Anyway, this patch is in our 0.2.0 packages and should fix any spews from the
ConsoleKit daemon. Please reopen if this doesn't work. Thanks.
Comment 14 jmccann 2007-03-19 16:06:56 EDT
Yeah it is fine.  But this bug shows why I didn't close stderr.  It helped us
find a bug :)
Comment 15 David Timms 2008-04-23 09:31:40 EDT
Created attachment 303491 [details]
grep console- of 2008-04-24 week's notes

I don't know if ConsoleKit has been quiet since 2007-03, but at the moment on
rawhide,it is giving var/log/messages re environ, glib assertions, passed as
NULL warnings.

v ConsoleKit-0.2.10-3.fc9.i386
Comment 16 David Timms 2008-04-23 09:33:17 EDT
Getting very similar messages to bug 230937, one year after this fix. Reopening.
Comment 17 jmccann 2008-04-23 12:42:14 EDT
That looks like an entirely different issue to me.  Can you please open a new
bug.  Thanks.

Note You need to log in before you can comment on or make changes to this bug.