LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-30-2014, 11:05 AM   #1
heehau
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Rep: Reputation: Disabled
Interprocess Communication (Socket) Fails, Freezing Applications


[Posted this also on ubuntuforums.org.]

I have been running Kubuntu for years on my Samsung NP900X3D without a problem. Then, about a week ago, all applications that use socket-based communication with named sockets started failing all of a sudden. This affects a lot of applications, from the simplest (kcalc) to the more complex (LibreOffice).

An strace on any of them reveals that they open a socket file, write to it, wait for a response... and go on waiting forever. There is never any reply. Kcalc will wait on an ICE socket, LibreOffice on one of its own.

Quote:
socket(PF_LOCAL, SOCK_STREAM, 0) = 8
uname({sys="Linux", node="xyz", ...}) = 0
connect(8, {sa_family=AF_LOCAL, sun_path=@"/tmp/.ICE-unix/3673"}, 22) = 0
fcntl(8, F_SETFD, FD_CLOEXEC) = 0
write(8, "\0\1\0\0\0\0\0\0", 8) = 8
read(8,
I suppose re-installing Linux would eventually fix the issue, since there seems to be nothing wrong with the hardware. Also, a great number of applications work (e.g. Firefox or FreeCiv), so the problem is isolated to those that open sockets.

If you have any idea what's going on or what I could do to help debug the issue, please respond! I won't include any log files at this point, because there is nothing in any of them in reponse to an application startup failure. But if you'd like some, I can add them in here.

The system is a Kubuntu 14.04, upgraded to the latest. Tons of PPAs and external repositories.

Thanks in advance for your help.
 
Old 10-01-2014, 06:06 AM   #2
sbaynes
LQ Newbie
 
Registered: Oct 2014
Posts: 26

Rep: Reputation: Disabled
I had something like this occasionally on xubuntu. I think one of the interprocess message bus daemons must have hung up. A reboot solved it (until it happened again). You don't say if you have tried a reboot.
 
Old 10-01-2014, 09:01 AM   #3
heehau
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for replying!

Yes, I rebooted several times, and the problem persists. Worse than that, it seemingly affects ALL named socket-based communication. Even trying to start something as simple as the KDE calculator, kcalc, fails.

So, this is persistent, consistent, and survives reboot and upgrade.
 
Old 10-02-2014, 11:34 AM   #4
heehau
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Finally figured out what happened - sort of. Posting here in case anyone else encounters the same problem.

Turns out the process to blame was ksmserver. It was gummed up trying to deal with something (unspecified at this point).

To fix it, I had to go to a TTY and start a process from there. You Alt-Ctrl-F1, log in, then type:

DISPLAY=:0 kcalc

If you switch back to graphical mode (Alt-Ctrl-F7, usually), you'll see a bunch of things you started in the distant past (in my case, about a week) happening at the same time, and then the application you started pops up (here, kcalc).

If you strace connect() calls, you can see the application going past the ICE-unix stage:

Quote:
> strace -e connect kcalc
connect(6, {sa_family=AF_LOCAL, sun_path=@"/tmp/.X11-unix/X0"}, 20) = 0
connect(7, {sa_family=AF_LOCAL, sun_path=@"/tmp/dbus-go5zFa52OC"}, 23) = 0
connect(8, {sa_family=AF_LOCAL, sun_path=@"/tmp/.ICE-unix/3628"}, 22) = 0
connect(9, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
connect(9, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
What is interprocess communication Ashok_mittal Linux - Kernel 2 12-12-2007 05:04 AM
What is interprocess communication Ashok_mittal Linux - Newbie 1 12-12-2007 05:00 AM
Cross-platform interprocess communication ondrej.ilcik Programming 2 01-30-2004 05:04 AM
Interprocess Communication in linux. hemanexp Linux - Software 0 01-16-2004 07:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration