LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-23-2014, 07:45 PM   #1
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Rep: Reputation: Disabled
LibreOffice-4.2.2 fail: XDM authorization key matches an existing client


I just tried upgrading from LibreOffice-4.1.x to 4.2.2, on Slackware 14.1. I am using the binaries from libreoffice.org as I have always done with prior releases, unpacking the RPM files and installing them myself. Never had this problem before.

When I try to start LibreOffice-4.2.2, it sometimes fails after displaying the splash screen with this message:
Code:
XDM authorization key matches an existing client!
/opt/libreoffice4.2/program/soffice.bin X11 error: Can't open display:
I'm not using "su" to switch users, and I know how Xauthority, DISPLAY, etc. all works. That isn't what is wrong here. The crazy thing is how this is failing most of the time, but not always. Just now I tried to start it with the exact same command 20 times, one right after another. (If it worked, I immediately quit from Libreoffice). It worked 7 times, and failed 13 times.

I've tried strace on it, and it didn't help. I can see it connect to the X socket, open and read .Xauthority, send credentials to the X server, and get the error message back. There is nothing in the xdm or Xorg log files.

I tried to watch it with wireshark, but when it uses TCP to talk to X it doesn't fail. It only fails when using UDS, and Wireshark can't see UDS. (That it never fails with TCP is probably a clue.)

Any ideas on what is wrong? My top suspect is a library conflict, but I don't know what libraries can cause this type of intermittent but frequent failure.
 
Old 03-24-2014, 02:47 PM   #2
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Original Poster
Rep: Reputation: Disabled
Update: This is apparently not Slackware-related. Firefox went through this same problem a few years ago, caused by a race condition with connections to the X server, between a parent and child process. It only happens when using the XDM login manager.

There is a work-around if anyone else is having this problem: disable one of the 2 types of X11 authentication methods by placing the following in /etc/X11/xdm/xdm-config:
Code:
DisplayManager*AuthName:  MIT-MAGIC-COOKIE-1
This disables the other type, XDM-AUTHORIZATION-1, which has the problem with the race condition. I can confirm this worked.

I will follow up with LibreOffice.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 14.0-BETA1 - XDM authorization key matches an existing client!xfce4-session GazL Slackware 4 07-23-2012 01:23 PM
SDL "XDM authorization key matches an existing client!" malloc Slackware 8 10-13-2011 06:20 PM
disabling XDM-AUTHORIZATION-1 in xdm shpenat Linux - Desktop 0 03-18-2009 09:11 AM
XDM-AUTHORIZATION-1 key sigma957 Debian 0 02-01-2004 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration