Re: [Rd] (PR#10379) Re: x11(....) kills R without DISPLAY

From: Christian Brechbühler <>
Date: Mon, 29 Oct 2007 22:22:17 -0400

On 10/29/07, Prof Brian Ripley <> wrote:
> The problem is that the XtOpenDisplay call did not specify the display.
> Easily fixed ....

On 10/29/07, <> wrote:
> The culprit would seem to be this bit of devX11.c
> 1302 xtdpy = XtOpenDisplay(app_con, NULL, "r_x11",
> "R_x11",
> 1303 NULL, 0, &zero, NULL);
> 1304 toplevel = XtAppCreateShell(NULL, "R_x11",
> The 2nd arg to XtOpenDisplay is listed as display_string, so passing a
> NULL here seems like trouble when the default ways of finding the
> display do not work.
> Looks like a fix is to insert p instead of NULL. (Tested rudimentarily.)

Prof. Ripley replaced that NULL with dsp -- p is normally the same. It's in svn (r43300 on he trunk, r43301 on R-2-6-branch). It built without a hitch, and the fix solves my problem.

P. Dalgaard also pinpointed the problem. And confirmed Xt was involved :-) Apparently an XOpenDisplay on the specified display may be followed by an XtOpenDisplay, previously on the default display.

Thanks to everyone who helped figure this out and fix the problem! /Christian Brechbuehler

        [[alternative HTML version deleted]] mailing list Received on Tue 30 Oct 2007 - 02:24:52 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 30 Oct 2007 - 03:46:12 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.