Bug 247455 - kdm memory corruption errors due to ICEauthority patch!
Summary: kdm memory corruption errors due to ICEauthority patch!
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kdelibs
Version: 6
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 243560
TreeView+ depends on / blocked
 
Reported: 2007-07-09 13:27 UTC by Sammy
Modified: 2007-11-30 22:12 UTC (History)
6 users (show)

Fixed In Version: 3.5.7-9.fc7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-07-23 15:50:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
unable to login with kdm - log file (53.17 KB, text/plain)
2007-07-17 21:02 UTC, Nadav Kavalerchik
no flags Details

Description Sammy 2007-07-09 13:27:39 UTC
We have been trying to track down a bug with KDE people that effected
FC6, FC7, etc. and Ubuntu users. The bug is reports in the /var/log/messages
file like:

    kdm_greet[28386]: Internal error: memory corruption detected

See,

    http://bugs.kde.org/show_bug.cgi?id=147454

Well, finally we traced it to the kdelibs-3.5.7-ICEauthority.patch
where the last setenv command resets the HOME environment prematurely
for kdm, which should remain as /tmp/.some-random-numbers. Needless
to say we spent a lot of time tracking this down. What is the purpose
of this patch? Should the 1 in setenv for HOME be 0?

Comment 1 Sammy 2007-07-09 15:49:35 UTC
Also, with this patch /tmp directory fills up with directories /tmp/xxxxx
since kdm cannot clean its tmp directory, which changes to /root. We are
lucky that kdm does not remove /root by accident during cleanup!

Comment 2 Kevin Kofler 2007-07-09 15:50:35 UTC
Looking at what the patch fixes (running KDE apps with sudo corrupting 
permissions in user home directories), I wonder if the KDM log message isn't 
the lesser evil.

Comment 3 Sammy 2007-07-09 16:00:37 UTC
I have spent enough time trying to track this down. The bottom line seems
to be that whatever needs to be done for sudo should be coordinated with
kdm/kde. As I said in comment #1, it would have been easy to delete /root
since kdm has "rm -rf ..." in the cleanup code for kdm and you don't want
this happening suddenly if KDE folks are not aware of this problem/change.

Could one put test to the patch to check if the application is kdm, kdm_greet,
etc. Or someone has to patch kdm to not use HOME environment.

Comment 4 Kevin Kofler 2007-07-09 16:06:43 UTC
So this looks dangerous indeed.

Comment 5 Rex Dieter 2007-07-09 16:16:26 UTC
fwiw, it looks like omitting this patch fixes the XDMCP problems folks have
reported also.

Comment 6 Kevin Kofler 2007-07-09 16:19:11 UTC
Then killing it is probably the right thing to do after all, but we should try 
to work together with upstream and Kubuntu for a non-hack solution to the 
original sudo problem. (I don't think this issue is going to magically go away 
with KDE 4 either.)

Comment 7 Rex Dieter 2007-07-09 16:21:18 UTC
%changelog
* Mon Jul 09 2007 Rex Dieter <rdieter[AT]fedoraproject.org> - 6:3.5.7-9
- omit ICEauthority patch (kde#147454, rh#247455)

devel/rawhide only for now, will likely push an update for FC-6/F-7 soon.

Comment 8 Kevin Kofler 2007-07-12 12:00:21 UTC
Don't forget that we still need Than to push the FC6 update (unless F6 gets 
merged).

Comment 9 Nadav Kavalerchik 2007-07-13 19:39:56 UTC
i use a fc7 system that was dist-upgraded from fc6.
before the upgrade i could connect remotely to the server running kdm
i use an LTSP setup on the server, which means we have terminals connecting to
the server.

i followed the bug report that was filed with kde and this thread too.
i've downloaded the latest kdelibs 6:3.5.7-9 from rawhide and installed it.
indeed the memory corruption is gone but still i can't login :-(

i run kdm with debug level 7, so i can provide the logs if it's helpful.
how can i help to solve this ?

kindly,
nadav :-)

Comment 10 Fedora Update System 2007-07-16 16:50:42 UTC
kdelibs-3.5.7-9.fc7 has been pushed to the Fedora 7 testing repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Rex Dieter 2007-07-17 19:18:31 UTC
Nadav, your problem "can't login" is highly likely a separate issue, please file
a separate bug report, including details of your symptoms.

Comment 12 Nadav Kavalerchik 2007-07-17 21:02:27 UTC
Created attachment 159473 [details]
unable to login with kdm - log file

Comment 13 Nadav Kavalerchik 2007-07-17 21:03:28 UTC
i've just installed the testing packages and i still can't login.

i can't login from remote or with Xnest (inside root session)
although i can Switch User --> Start new session from KDE with no problem.

i'm attaching a kdm log, in case you can point me to what i'm doing wrong


Comment 14 Kevin Kofler 2007-07-17 21:06:01 UTC
> i've just installed the testing packages and i still can't login.

This confirms what Rex Dieter said: Your problem is separate, please file a 
separate bug report.

Comment 15 Nadav Kavalerchik 2007-07-17 22:20:11 UTC
i've started a separate bug report 248653:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=248653

Comment 16 Fedora Update System 2007-07-23 15:49:58 UTC
kdelibs-3.5.7-9.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.


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