Bug 119600 - gnomesu hangs often
Summary: gnomesu hangs often
Status: VERIFIED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: GNOME (show other bugs)
Version: RC 4
Hardware: Other All
: P1 - Urgent : Critical
Target Milestone: ---
Assignee: Stanislav Brabec
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-30 08:16 UTC by Wolfgang Rosenauer
Modified: 2005-11-03 10:57 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang Rosenauer 2005-09-30 08:16:09 UTC
In my 10.0 GNOME desktop gnomesu hangs very often after I try to start YaST from
the menu (for example).
I type in the password and then nothing happens anymore until I kill gnomesu and
gnomesu-pam-backend. Afterwards my .Xauthority stuff is screwed up because it
reports that it's locked and no xauth is possible anymore.

What information you need to get some hint what's wrong?
Comment 1 JP Rosevear 2005-10-12 15:22:36 UTC
It looks like the .Xauthority file is getting corrupted somehow.  "xauth list"
probably fails for you, which is what libgnomesu hangs on reading.  It should be
a little smarter than hanging too.

Removing .Xauthority should work around the issue.

Comment 2 Hans Petter Jansson 2005-10-14 02:05:42 UTC
This turned out to be gnome-su's xauth invocation doing DNS lookup. Patch
submitted to build.
Comment 3 JP Rosevear 2005-10-14 13:51:03 UTC
Re-opening for submission to sl 10.0
Comment 4 JP Rosevear 2005-10-14 13:51:27 UTC
Really reopening
Comment 5 JP Rosevear 2005-10-14 14:01:26 UTC
Swamp ID please.
Comment 7 Stanislav Brabec 2005-10-17 12:33:23 UTC
I have copied your patch libgnomesu-1.0.0-xauth-nolookup.patch from STABLE to 10.0 and tried. gnomesu does not work for me at all:

sbrabec@hammer:~> gnomesu /sbin/YaST2
Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
y2controlcenter: cannot connect to X server :0.0
Comment 8 JP Rosevear 2005-10-17 19:08:14 UTC
Same problem here.
Comment 9 Hans Petter Jansson 2005-10-17 20:16:54 UTC
I submitted a patch for bug 98627 to gdm STABLE, and it works for me with these two patches applied. The gdm patch may be necessary for this patch to work. Also, remove your old .Xauthority file.

Please try this and let me know if it's still broken for you.
Comment 10 Hans Petter Jansson 2005-10-17 22:35:11 UTC
I just submitted a new libgnomesu to STABLE and PLUS, with an updated patch. The previous one was broken.
Comment 11 Stanislav Brabec 2005-10-18 13:24:46 UTC
Does it mean, that we have to release both fixes for 10.0 via YOU at once?

Without gdm patch, it seems to work, but shows following error:
cat: write error: Broken pipe
Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed

Second one is OK, first one is not OK.
Comment 12 Stanislav Brabec 2005-10-18 14:08:08 UTC
First one was probably a random message from YaST (I have seen it 3 times) and does not occur now. I will provide a package for YOU.
Comment 13 JP Rosevear 2005-10-18 14:43:34 UTC
Is it necessary to remove the old .Xauthority hpj?
Comment 14 Stanislav Brabec 2005-10-18 14:46:11 UTC
To hpj:

I am now preparing YOU. Do we need special message to users?

What can be in POST:
- Nothing.
- "You may need to re-login."
- "You may need to remove ~/.Xauthority file and re-login to complete the fix."
Comment 15 Ludwig Nussel 2005-10-18 15:14:14 UTC
please don't use a popup for that. Just state it in the description.
Comment 16 Stanislav Brabec 2005-10-21 15:33:32 UTC
Patchinfo created. Text "You may need to remove ~/.Xauthority file and re-login to complete the fix." was added only to description instead of pop-up.
Comment 17 Anja Stock 2005-11-03 10:57:24 UTC
released