macosunixx11xquartz

All X11 applications got unavailable in Mac OSX Yosemite


Overview

All X11 applications got unavailable without my realizing. Since there are no Time Machine backups, I need to fix up this issue anyway.

Environment

enter image description here enter image description here enter image description here

Trial

I tried to dump system calls by using dtruss. The following example is represented by sudo dtruss xclock. Other X11 applications' behaviors are also like this. All X11 applications hangs up after recvfrom.

enter image description here

I also tried...

But those have nothing to do with it.

Sorry for crossposting here in Japanese; there are still no answers...
Thank you.


Solution

  • The OS X Installer removes the symlinks at /usr. The easiest solution is for you to just reinstall XQuartz. That should set them back up for things like Wireshark and the like which use the older system location.

    You can also run sudo /usr/libexec/x11-select /opt/X11

    I recall an issue in poll(2) behavior that we tripped over in libX11 and libxcb maybe 5 years or so ago that this reminds me of. The remnants of this are in libxcb's configure.ac where we use select(2) instead of poll(2) for old versions of OS X. The issue was that they didn't support calling poll(2) on character devices and we'd just get an EAGAIN.

    In your case, it doesn't look like that's the case, but something is getting an EAGAIN in recvfrom and presumably ignoring it rather than trying again. If you can figure out what the call point is for that recvfrom (maybe in libxcb?) that would be a good next step.

    To get me some more data, can you please file a radar at http://bugreport.apple.com and include a sysdiagnose focused on xclock?