Re: both X11 and XQuartz encounter similar error
Re: both X11 and XQuartz encounter similar error
- Subject: Re: both X11 and XQuartz encounter similar error
- From: Michael Lachman <email@hidden>
- Date: Sat, 11 Sep 2010 13:03:56 -0400
Jeremy,
>> dd if=/dev/urandom bs=16 count=1 2> /dev/null | hexdump -e \"x\"
running this by itself in Terminal simply returns another prompt with no other discernible effect. Is it writing to a file and if so where is it located? Am I missing the point entirely? (likely) :-)
Ken,
echo $PATH in Terminal returns:
/Library/Frameworks/Python.framework/Versions/2.6/bin:/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/X11/bin
which looks normal to me, but from what you said, it would.
Launching XQuartz 2.5.3 from the shell rather than the dock does not produce the loop. However, launching Inkscape.app (an SVG-based Illustrator substitute) from the dock afterwards does. Could this be a third-party culprit?
Launching X11.app 2.3.5 from the shell produces the loop immediately.
You're all welcome to keep working on figuring this one out, but I may just opt for completely clean reinstall of 10.6 at this point and see if that makes the problems disappear - I'm also dealing with a separate system bug that has disabled cd reading on my optical drive.
Regards,
Michael
----More log files---
xQuartz launched from shell:
Sep 11 16:34:14 Ball-of-Confusion [0x0-0x8e08e].org.macosforge.xquartz.X11[11909]: X11.app: DISPLAY ("/tmp/launch-eZ3MDn/:0") does not match our id ("org.macosforge.xquartz"), unsetting.
Sep 11 16:34:14 Ball-of-Confusion [0x0-0x8e08e].org.macosforge.xquartz.X11[11909]: X11.app: main(): argc=2
Sep 11 16:34:14 Ball-of-Confusion [0x0-0x8e08e].org.macosforge.xquartz.X11[11909]: argv[0] = /Applications/Utilities/XQuartz.app/Contents/MacOS/X11.bin
Sep 11 16:34:14 Ball-of-Confusion [0x0-0x8e08e].org.macosforge.xquartz.X11[11909]: argv[1] = -psn_0_581774
Sep 11 16:34:14 Ball-of-Confusion [0x0-0x8e08e].org.macosforge.xquartz.X11[11909]: Waiting for startup parameters via Mach IPC.
Sep 11 16:34:14 Ball-of-Confusion [0x0-0x8e08e].org.macosforge.xquartz.X11[11909]: X11.app: Could not connect to server (DISPLAY is not set). Starting X server.
Sep 11 16:34:14 Ball-of-Confusion [0x0-0x8e08e].org.macosforge.xquartz.X11[11909]: X11.app: Launching /opt/X11/bin/startx:
Sep 11 16:34:14 Ball-of-Confusion [0x0-0x8e08e].org.macosforge.xquartz.X11[11909]: argv[0] = /bin/sh
Sep 11 16:34:14 Ball-of-Confusion [0x0-0x8e08e].org.macosforge.xquartz.X11[11909]: argv[1] = -c
Sep 11 16:34:14 Ball-of-Confusion [0x0-0x8e08e].org.macosforge.xquartz.X11[11909]: argv[2] = /opt/X11/bin/startx
Sep 11 16:34:15 Ball-of-Confusion [0x0-0x8e08e].org.macosforge.xquartz.X11[11909]: lockfile: Forcing lock on "/var/folders/Rj/Rjrj4GTpE9il81dOa5rqJE+++TM/-Tmp-//font_cache.lock"
Sep 11 16:34:15 Ball-of-Confusion defaults[11934]: \nThe domain/default pair of (org.macosforge.xquartz.X11, dpi) does not exist
Sep 11 16:34:15 Ball-of-Confusion org.macosforge.xquartz.privileged_startx[11924]: lockfile: Forcing lock on "/opt/X11/var/run/font_cache.lock"
Sep 11 16:34:15 Ball-of-Confusion [0x0-0x8e08e].org.macosforge.xquartz.X11[11909]: Couldn't create cookie
Sep 11 16:34:19 Ball-of-Confusion [0x0-0x8e08e].org.macosforge.xquartz.X11[11909]: font_cache: Scanning user font directories to generate X11 font caches
Sep 11 16:34:19 Ball-of-Confusion org.macosforge.xquartz.privileged_startx[11924]: font_cache: Scanning system font directories to generate X11 font caches
Sep 11 16:34:19 Ball-of-Confusion [0x0-0x8e08e].org.macosforge.xquartz.X11[11909]: font_cache: Updating FC cache
Sep 11 16:34:20 Ball-of-Confusion org.macosforge.xquartz.privileged_startx[11924]: font_cache: Updating FC cache
Sep 11 16:34:22 Ball-of-Confusion [0x0-0x8e08e].org.macosforge.xquartz.X11[11909]: font_cache: Done
Sep 11 16:34:22 Ball-of-Confusion org.macosforge.xquartz.privileged_startx[11924]: font_cache: Done
Process inspection of open files and ports in Activity Viewer:
/Users/michael
/Applications/Utilities/XQuartz.app/Contents/MacOS/X11.bin
/Applications/Utilities/XQuartz.app/Contents/Frameworks/Sparkle.framework/Versions/A/Sparkle
/opt/X11/lib/libAppleWM.7.dylib
/opt/X11/lib/libXfixes.3.dylib
/opt/X11/lib/libX11.6.dylib
/opt/X11/lib/libxcb.1.dylib
/opt/X11/lib/libXfont.1.dylib
/opt/X11/lib/libXau.6.dylib
/opt/X11/lib/libpixman-1.0.dylib
/opt/X11/lib/libXdmcp.6.dylib
/opt/X11/lib/libXplugin.1.dylib
/usr/lib/libcrypto.0.9.7.dylib
/opt/X11/lib/libXext.6.dylib
/opt/X11/lib/libfreetype.6.dylib
/opt/X11/lib/libfontenc.1.dylib
/usr/lib/dyld
/private/var/db/dyld/dyld_shared_cache_x86_64
/dev/null
->0x04e4cce4
->0x04e4cce4
/private/etc/security/audit_control
/private/etc/security/audit_class
X11.app launched from shell
Sep 11 16:43:44 Ball-of-Confusion [0x0-0xa80a8].org.x.X11[12464]: X11.app: Detected old style launchd DISPLAY, please update xinit.
Sep 11 16:43:44 Ball-of-Confusion [0x0-0xa80a8].org.x.X11[12464]: X11.app: main(): argc=2
Sep 11 16:43:44 Ball-of-Confusion [0x0-0xa80a8].org.x.X11[12464]: argv[0] = /Applications/Utilities/X11.app/Contents/MacOS/X11.bin
Sep 11 16:43:44 Ball-of-Confusion [0x0-0xa80a8].org.x.X11[12464]: argv[1] = -psn_0_688296
Sep 11 16:43:44 Ball-of-Confusion [0x0-0xa80a8].org.x.X11[12464]: Waiting for startup parameters via Mach IPC.
Sep 11 16:43:44 Ball-of-Confusion org.x.startx[12472]: font_cache: Scanning user font directories to generate X11 font caches
Sep 11 16:43:44 Ball-of-Confusion org.x.privileged_startx[12479]: font_cache: Scanning system font directories to generate X11 font caches
Sep 11 16:43:44 Ball-of-Confusion defaults[12495]: \nThe domain/default pair of (org.x.X11, dpi) does not exist
Sep 11 16:43:44 Ball-of-Confusion org.x.startx[12472]: font_cache: Updating FC cache
Sep 11 16:43:44 Ball-of-Confusion org.x.startx[12472]: Couldn't create cookie
Sep 11 16:43:44 Ball-of-Confusion com.apple.launchd.peruser.502[160] (org.x.startx[12472]): Exited with exit code: 1
Sep 11 16:43:44 Ball-of-Confusion com.apple.launchd.peruser.502[160] (org.x.startx): Throttling respawn: Will start in 10 seconds
(block repeats)
Process inspection of open files and ports in Activity Viewer:
/Users/michael
/Applications/Utilities/X11.app/Contents/MacOS/X11.bin
/usr/X11/lib/libAppleWM.7.dylib
/usr/X11/lib/libXfixes.3.dylib
/usr/X11/lib/libX11.6.dylib
/usr/X11/lib/libXfont.1.dylib
/usr/X11/lib/libXau.6.dylib
/usr/X11/lib/libfontenc.1.dylib
/usr/X11/lib/libpixman-1.0.dylib
/usr/X11/lib/libXdmcp.6.dylib
/usr/lib/libXplugin.1.dylib
/usr/X11/lib/libXext.6.dylib
/usr/X11/lib/libfreetype.6.dylib
/usr/lib/dyld
/private/var/db/dyld/dyld_shared_cache_x86_64
/dev/null
->0x04e4d388
->0x04e4d388
/private/etc/security/audit_control
/private/etc/security/audit_class
On Sep 11, 2010, at 4:59 AM, Ken Thomases wrote:
> On Sep 10, 2010, at 7:33 PM, Jeremy Huddleston wrote:
>
>> On Sep 10, 2010, at 16:14, Michael Lachman wrote:
>>
>>> Sep 10 22:42:54 Ball-of-Confusion org.x.startx[85398]: Couldn't create cookie
>>> Sep 10 22:42:54 Ball-of-Confusion com.apple.launchd.peruser.502[123] (org.x.startx[85398]): Exited with exit code: 1
>>> Sep 10 22:42:54 Ball-of-Confusion com.apple.launchd.peruser.502[123] (org.x.startx): Throttling respawn: Will start in 10 seconds
>>
>> The others are all expected. This one is certainly unexpected. Looking at startx, we see this error coming from:
>>
>> if [ -r /dev/urandom ]; then
>> mcookie=`dd if=/dev/urandom bs=16 count=1 2>/dev/null | hexdump -e \\"x\\"`
>> else
>> mcookie=`dd if=/dev/random bs=16 count=1 2>/dev/null | hexdump -e \\"x\\"`
>> fi
>>
>> if test x"$mcookie" = x; then
>> echo "Couldn't create cookie"
>> exit 1
>> fi
>>
>>> After reading through the forum at some length, it looks like several users have had similar issues,
>>
>> Similar in that X11 doesn't start, but this is the first time I've seen something like this one.
>>
>>
>> What is output if you run:
>>
>> dd if=/dev/urandom bs=16 count=1 2> /dev/null | hexdump -e \"x\"
>
> A test in Terminal can be misleading if the problem is the environment given to apps launched from the Finder or Dock. My guess is that something has mangled the PATH via ~/.MacOSX/environment.plist. I've seen it often enough in support tickets at CodeWeavers. There's some lame third-party installer out there which tries to set PATH="/whatever/whatever:$PATH" via environment.plist, but environment.plist doesn't support that sort of substitution. Thus, the PATH ends up being _literally_ that string, and none of the standard tools can be found.
>
> Launching a shell in Terminal completely rebuilds the environment, including the PATH, from scratch. So, the problem can go undetected for some time.
>
> Cheers,
> Ken
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden