fred@cadence.com (Fred Cox) (11/22/89)
We have a need to run programs that normally display lots of stuff in a mode where we don't care to have the output on the screen. (Testing) Seemingly, Xndx is the answer to our prayers. We can start it up, and set the DISPLAY variable to point to it, and our program will run along merrily displaying stuff to the non-existent display, while doing other work. However, Xndx (X11R3) has several bugs. 1) The server has a severe memory leak: cds557% setenv DISPLAY unix:1 cds557% Xndx :1 & [1] 13446 cds557% ps u USER PID %CPU %MEM SZ RSS TT STAT START TIME COMMAND fred 13447 38.5 5.1 144 368 p2 R 15:02 0:00 ps u fred 13446 3.6 21.8 1112 1584 p2 S 15:02 0:00 Xndx :1 cds557% xlswins 0x8006d () cds557% ps u USER PID %CPU %MEM SZ RSS TT STAT START TIME COMMAND fred 13449 27.6 5.1 144 368 p2 R 15:03 0:00 ps u fred 13446 4.1 23.6 2096 1712 p2 S 15:02 0:01 Xndx :1 cds557% xhost access control enabled (only the following hosts are allowed) cds557 localhost cds557% ps u USER PID %CPU %MEM SZ RSS TT STAT START TIME COMMAND fred 13451 19.7 5.1 144 368 p2 R 15:03 0:00 ps u fred 13446 2.8 23.7 3080 1720 p2 S 15:02 0:02 Xndx :1 Notice that the size of Xndx grows about 1 Meg for every program that talks to it. 2) It ignores xhost requests: cds557% xhost access control enabled (only the following hosts are allowed) cds557 localhost cds557% xhost +cds787 cds787 being added to access control list cds557% xhost access control enabled (only the following hosts are allowed) cds557 localhost cds557% xhost -cds557 cds557 being removed from access control list cds557% xhost access control enabled (only the following hosts are allowed) cds557 localhost 3) After an as yet undetermined sequence, the first call to XKeysymToKeycode calls a static Initialize function in XKeyBind.c, which dumps core. If anyone has fixed these bugs, or has suggestions, please email or post. Thank you, Fred Cox ======== fred@cadence.com or uunet!cadence!fred or hpda.hp.com!cadence!fred