Sniffing X11 client/server traffic on Darwin?
Can anyone recommend a good solution for $subject? I'm still fighting the OpenFont failure I mentioned here: http://lists.apple.com/archives/x11-users/2009/Sep/msg00065.html and have now pretty much convinced myself that it's not tcl's fault but a bug in either libX11 or Snow Leopard's X server. The quickest way to prove which one is to look at the traffic, which I'd need to do between ssh and Xquartz, but I have no suitable tools on my Mac. regards, tom lane
On Nov 1, 2009, at 06:55, Tom Lane wrote:
Can anyone recommend a good solution for $subject? I'm still fighting the OpenFont failure I mentioned here: http://lists.apple.com/archives/x11-users/2009/Sep/msg00065.html
You can use xscope. It's part of 2.4.1_alpha3 and can also be installed from MacPorts. --Jeremy
On 01Nov2009 15:47, Jeremy Huddleston <jeremyhu@apple.com> wrote: | On Nov 1, 2009, at 06:55, Tom Lane wrote: | > Can anyone recommend a good solution for $subject? I'm still fighting | > the OpenFont failure I mentioned here: | > http://lists.apple.com/archives/x11-users/2009/Sep/msg00065.html | | You can use xscope. It's part of 2.4.1_alpha3 and can also be installed from MacPorts. Hmm. Can't see it in MacPorts; do you know the package name? I guess I'll have to try out 2.4.1_alpha3 then:-) -- Cameron Simpson <cs@zip.com.au> DoD#743
On 01Nov2009 19:59, Adam Mercer <ramercer@gmail.com> wrote: | On Sun, Nov 1, 2009 at 19:34, Cameron Simpson <cs@zip.com.au> wrote: | > Hmm. Can't see it in MacPorts; do you know the package name? | | [ram@cizin ~]$ port search xscope | xscope @1.2 (x11) | X11 protocol debugger How embarrassing. I did that, with no result. A "port selfupdate" later and it's there:-( Whoops. Thanks. -- Cameron Simpson <cs@zip.com.au> DoD#743 http://www.cskk.ezoshosting.com/cs/ There's a fine line between cleverness and stupidity. - Nigel Tufnel, _Spinal Tap_
Jeremy Huddleston <jeremyhu@apple.com> writes:
You can use xscope. It's part of 2.4.1_alpha3 and can also be installed from MacPorts.
Hmm, I think I'm missing something basic about configuring xscope. I installed 2.4.1_alpha3, started xquartz ok, and then do $ xscope -i1 -d0 and then in another terminal window $ DISPLAY=:1.0 xdpyinfo Xlib: connection to ":1.0" refused by server Xlib: No protocol specified xdpyinfo: unable to open display ":1.0". and xscope itself says 0.00: Client --> 12 bytes byte-order: LSB first major-version: 000b minor-version: 0000 0.00: 32 bytes <-- X11 Server SetUp Failed: major-version: 000b minor-version: 0000 reason: "No protocol specified^J" 0.00: EOF <-- Server Any help on that? regards, tom lane
I wrote:
Hmm, I think I'm missing something basic about configuring xscope.
For anyone else trying this, it seems that what "No protocol specified" really means is "no authentication information provided". There's probably a better way to deal with that, but what I did was to disable X11's authentication checks while testing. Even after that, xscope seemed to only be able to process one client session before getting stuck, but that was enough to be able to extract a trace of the problem. And, if anyone else cares about the original OpenFont complaint, the results are here: http://xquartz.macosforge.org/trac/ticket/325 regards, tom lane
participants (4)
-
Adam Mercer
-
Cameron Simpson
-
Jeremy Huddleston
-
Tom Lane