Bug#26394: marked as done (sudo xlib Invalid MIT-MAGIC-COOKIE-1) by John Firebaugh <jfirebaugh at kde.org>
owner at bugs.kde.org
Sat Aug 31 05:13:28 UTC 2002
Your message with subj: sudo xlib Invalid MIT-MAGIC-COOKIE-1
Thank you for your bug report.
The bug that your reported no longer applies to the latest development (CVS)
version of KDE. This is most probably because the bug has been fixed, the
application has been substantially modified, or the application no longer
exists. The bug report will be closed.
has caused the attached bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I'm
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
(administrator, KDE bugs database)
(Complete bug history is available at http://bugs.kde.org/db/26/26394.html)
Received: (at submit) by bugs.kde.org; 30 May 2001 06:33:43 +0000
Received: (qmail 5623 invoked by uid 33); 30 May 2001 06:33:43 -0000
Date: 30 May 2001 06:33:43 -0000
Message-ID: <20010530063343.5622.qmail at master.kde.org>
To: submit at bugs.kde.org
Subject: sudo xlib Invalid MIT-MAGIC-COOKIE-1
From: van at dedserius.com
Version: 1.4 (using KDE 2.1.2 )
Installed from: compiled sources
Compiler: gcc version 2.95.3 20010315 (release)
OS: Linux 2.4.3 i686
On the 2nd invocation of an su, sudo, telnet, ssh to localhost that creates a root shell, kdevelop no longer allows konsoles when testing compiled apps with build | execute.
The message received via stderr is:
Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
konqueror: cannot connect to X server :0.0
This is on a slackware-current box. Any further requests for an X application fail with the same error.
I discovered this while testing the following code:
fprintf(stderr, "gethostname = %s\n", hname);
fprintf(stderr, "no host name, length was %u...\n", hnamelen);
Obviously, I need to have root permissions to test the error part.
***THIS CODE SHOULD NOT BE USED FOR DEVELOPMENT PURPOSES. IT HAS NOT BEEN TESTED FULLY AND IS IN A STATE OF HIGH INSTABILITY***
Don't know what kind of a fix could be implemented, but, it has plagued me for the past three hours.
Log out of KDE. Kill the X server and restart it.
Open up your 15 windows you typically keep open. >:(
This is a real deterrent to application development.
BTW: Thanks for all your work, guys. KDevelop is awesome once you sink your teeth into it. In the end, I'm sure your work will drastically increase the speed of KDE and other apps. This one is a console-based application, which is probably why it hasn't appeared in a previous bug report.
(Submitted via bugs.kde.org)
(Called from KBugReport dialog)
More information about the KDevelop-devel