Getting bad DISPLAY value during use of 2.6.1-2.6.2 (not with 2.6.0 & before).
Hello, I think DISPLAY is getting a weird value on my system here. We've completely rebooted, and this is still occurring on my system with any of the 2.6.1-2.6.2 incarnations of Xquartz. (IIRC this didn't happen with 2.6.0 and earlier.) Presently I have the beta1 of 2.6.2 installed and trying to get it started-up here. (Yes I did re-run the installer for 2.6.2_beta1 after the 10.6.7/etc system updates.) The user's env-var matches what launchctl returns: $ launchctl getenv DISPLAY /tmp/launch-s9kPWX/org.x:0 $ _ There _IS_ a critter placed there: $ ls -al /tmp/launch-s9kPWX total 0 drwx------ 2 scifi wheel 102 Apr 24 10:06 . drwxrwxrwt 11 root wheel 510 Apr 24 10:33 .. srwx------ 1 scifi wheel 0 Apr 24 10:06 org.x:0 $ _ But I think this DISPLAY value produces the first part of the error log when I launch Xquartz.app from the Dock: [snipped from system.log] --start-- Apr 24 10:33:12 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: X11.app: DISPLAY ("/tmp/launch-s9kPWX/org.x:0") does not match our id ("org.macosforge.xquartz"), unsetting. Apr 24 10:33:12 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: X11.app: main(): argc=2 Apr 24 10:33:12 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: argv[0] = /Applications/Utilities/XQuartz.app/Contents/MacOS/X11.bin Apr 24 10:33:12 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: argv[1] = -psn_0_569483 Apr 24 10:33:12 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: Waiting for startup parameters via Mach IPC. Apr 24 10:33:12 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: X11.app: Could not connect to server (DISPLAY is not set). Starting X server. Apr 24 10:33:12 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: X11.app: Launching /opt/X11/bin/startx: Apr 24 10:33:12 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: argv[0] = /bin/sh Apr 24 10:33:12 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: argv[1] = -c Apr 24 10:33:12 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: argv[2] = /opt/X11/bin/startx Apr 24 10:33:12 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: lockfile: Forcing lock on "/Volumes/RamDisk/tmp/font_cache.lock" Apr 24 10:33:13 scifi org.macosforge.xquartz.privileged_startx[63124]: lockfile: Try praying, giving up on "/opt/X11/var/run/font_cache.lock" Apr 24 10:33:13 scifi org.macosforge.xquartz.privileged_startx[63124]: font_cache: Scanning system font directories to generate X11 font caches Apr 24 10:33:13 scifi org.macosforge.xquartz.privileged_startx[63124]: open(encodings.dir): Permission denied Apr 24 10:33:13 scifi defaults[63138]: nThe domain/default pair of (org.macosforge.xquartz.X11, dpi) does not exist Apr 24 10:33:13 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: launch_msg("CheckIn") IPC failure: Operation not permitted Apr 24 10:33:13 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: X11.app: No launchd socket handed off, unsetting DISPLAY Apr 24 10:33:13 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: X11.app: do_start_x11_server(): argc=4 Apr 24 10:33:13 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: argv[0] = /opt/X11/bin/X Apr 24 10:33:13 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: argv[1] = :0 Apr 24 10:33:13 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: argv[2] = -nolisten Apr 24 10:33:13 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: argv[3] = tcp Apr 24 10:33:13 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: Xquartz starting: Apr 24 10:33:13 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: X.Org X Server 1.10.0.902 Apr 24 10:33:13 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: Build Date: 20110411 Apr 24 10:33:13 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created. Apr 24 10:33:13 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: _XSERVTransSocketUNIXCreateListener: mkdir(/tmp/.X11-unix) failed, errno = 2 Apr 24 10:33:13 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: _XSERVTransMakeAllCOTSServerListeners: failed to create listener for local Apr 24 10:33:13 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: Fatal server error: Apr 24 10:33:13 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: Cannot establish any listening sockets - Make sure an X server isn't already running Apr 24 10:33:13 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: OsVendorFatalError Apr 24 10:33:13 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[63105]: AbortDDX Apr 24 10:33:13 scifi ReportCrash[63141]: DebugSymbols was unable to start a spotlight query: spotlight is not responding or disabled. Apr 24 10:33:14 scifi com.apple.launchd.peruser.501[338] ([0x0-0x8b08b].org.macosforge.xquartz.X11[63105]): Job appears to have crashed: Abort trap Apr 24 10:33:14 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[0]: Xquartz: start_x11_server: (ipc/mig) server died Apr 24 10:33:15 scifi ReportCrash[63141]: Saved crash report for X11.bin[63105] version 2.6.2_beta1 (2.6.20) to /Users/scifi/Library/Logs/DiagnosticReports/X11.bin_2011-04-24-103314_SciFi.crash Apr 24 10:33:15 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[0]: /opt/X11/bin/xinit: giving up Apr 24 10:33:15 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[0]: /opt/X11/bin/xinit: unable to connect to X server: Connection refused Apr 24 10:33:15 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[0]: /opt/X11/bin/xinit: server error Apr 24 10:33:16 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[0]: font_cache: Scanning user font directories to generate X11 font caches Apr 24 10:33:17 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[0]: font_cache: Updating FC cache Apr 24 10:33:20 scifi [0x0-0x8b08b].org.macosforge.xquartz.X11[0]: font_cache: Done Apr 24 10:33:38 scifi org.macosforge.xquartz.privileged_startx[63124]: font_cache: Updating FC cache Apr 24 10:33:40 scifi org.macosforge.xquartz.privileged_startx[63124]: font_cache: Done --end-- (Just some random notes here.) (There is no critter named /tmp/.X11-unix (shown via ls -al) presently on my system. The /tmp dir itself does have root:wheel ownership with "drwxrwxrwt" flags.) (I have disabled Spotlight via one of the 3rd-party tools. GNU 'find' and 'grep' are good enough for me without extra overhead .) (BTW I have env-vars for T[E]MP[DIR] all set to the /Volumes/RamDisk/tmp path, in case you're wondering about the font_cache.lock msg above.) (When this does work, I'm also still been experiencing my "semi-stuck H/h" keyboard key as noted in my bugreport #443, now occurring on 10.6.x also -- 'h' tells Pan to show/hide headers on Usenet posts, so this is rather unnerving for me.) … I'm wondering if the _original_ X11 subsystem is somehow inserting its "org.x" string into DISPLAY, somehow? But why won't Xquartz fix it? What should I do, please? Thank you.
On Apr 24, 2011, at 09:31, sci-fi@hush.ai wrote:
Hello,
I think DISPLAY is getting a weird value on my system here.
We've completely rebooted, and this is still occurring on my system with any of the 2.6.1-2.6.2 incarnations of Xquartz. (IIRC this didn't happen with 2.6.0 and earlier.) Presently I have the beta1 of 2.6.2 installed and trying to get it started-up here. (Yes I did re-run the installer for 2.6.2_beta1 after the 10.6.7/etc system updates.)
The user's env-var matches what launchctl returns:
$ launchctl getenv DISPLAY /tmp/launch-s9kPWX/org.x:0
You should have /Library/LaunchAgents/org.macosforge.xquartz.startx.plist What is the output of "launchctl list org.macosforge.xquartz.startx"
<snip/>
(There is no critter named /tmp/.X11-unix (shown via ls -al) presently on my system. The /tmp dir itself does have root:wheel ownership with "drwxrwxrwt" flags.)
It should be created by /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist What is the output of "sudo launchctl list org.macosforge.xquartz.privileged_startx"
(BTW I have env-vars for T[E]MP[DIR] all set to the /Volumes/RamDisk/tmp path, in case you're wondering about the font_cache.lock msg above.)
There are security implications to doing that. I home /Volumes/RamDisk/tmp is owned by your user account.
…
I'm wondering if the _original_ X11 subsystem is somehow inserting its "org.x" string into DISPLAY, somehow? But why won't Xquartz fix it?
By "_original_", I'm assuming you mean Apple-provided... launchd will prefer XQuartz due to its location in /Library.
participants (2)
-
Jeremy Huddleston
-
sci-fi@hush.ai