Ticket #78 (closed Defect: fixed)

Opened 3 months ago

Last modified 2 months ago

autosu-gtk seems to freeze on KDE4

Reported by: dazjorz Assigned to: taj
Priority: High Milestone: 1.2.5
Component: main Version: development
Severity: Critical Keywords: kde4 autosu-gtk freezes does not return
Cc: hylke@starez.org, jhasse@gmail.com

Description

I've tested this problem on two PC's running KDE4 until now and got the same problem. It seems autosu-gtk freezes on KDE4, or at least it sits there waiting for a reply while no window or anyting shows up. I know this sounds silly, but it seems to be like this, anyway.

For example, when I run:

/tmp/autopackage/libexec$ ./autosu-gtk id

it never returns. I've attached the output of:

/tmp/autopackage/libexec$ strace ./autosu-gtk id >strace_out 2>&1

(ctrl+C'ing after about twenty seconds.)

Something really odd, too, is that when I run autosu-gtk as root, the same happens. You'd say it doesn't have to show a window then, but you guys know the implementation details a *lot* better than I do.

I'm setting priority to High and severity to Critical, since this makes Autopackage unusable on KDE 4 systems.

Attachments

strace_out (60.2 kB) - added by dazjorz on 04/25/08 16:22:11.
Output of strace
timeout.diff (435 bytes) - added by Jan-Nik on 04/29/08 15:58:23.
See: http://colabti.org/irclogger/irclogger_log/autopackage?date=2008-04-29

Change History

04/25/08 16:22:11 changed by dazjorz

  • attachment strace_out added.

Output of strace

04/25/08 16:27:32 changed by Jan-Nik

  • cc changed from hylke@starez.org to jhasse@gmail.com.
  • milestone set to 1.2.5.

04/25/08 16:28:05 changed by Jan-Nik

  • cc changed from jhasse@gmail.com to hylke@starez.org, jhasse@gmail.com.

Hm.. How can I add my to CC in trac?

04/25/08 16:30:45 changed by dazjorz

Hylke's the other guy working on Starez with me, that's why I CC'd him :-)

04/28/08 19:00:40 changed by dazjorz

  • version changed from 1.2.4 to development.

I just compiled autosu-gtk in the SVN version of Autopackage, same problems occur there.

04/29/08 15:52:38 changed by Jan-Nik

  • milestone deleted.

Okay, "xauth list" is causing the problem because it doesn't return. I think it's a bug in the xauth tool (does someone know where to report that?).

Maybe we should add a timeout for reading the output of xauth? Would that cause any side effects?

04/29/08 15:58:23 changed by Jan-Nik

  • attachment timeout.diff added.

04/29/08 16:12:11 changed by isak

  • status changed from new to closed.
  • resolution set to fixed.

Committed in r2445. It appears xauth is blocking on a name resolution since adding '-n' fixes the problem.

05/10/08 21:05:27 changed by curtis

  • milestone set to 1.2.5.