Menu

#37 xhost causes memory leak

Causes Crash
closed-invalid
nobody
X libraries (9)
5
2001-04-06
2001-04-05
Tom Tarka
No

Should I be posting xlib errors here?

I found that when I started X with an xinitrc file that
contains:

/usr/X11R6/bin/xhost + insert.valid.host.here.net
/usr/X11R6/bin/xhost + yet.another.host.com

it started then died with the following errors in the
Terminal:

Operating System: Darwin
Mac OS X Quartz support available.
_XSERVTransmkdir: Owner of /tmp/.X11-unix
should be set to root
insert.valid.host.here.net being added to access
control list
yet.another.host.com being added to access
control list

waiting for X server to shut down ddxGiveUp
Apr 04 18:09:03 Xdarwin[21318] ***
_NSAutoreleaseNoPool(): Object 0x1584590 of
class NSCFString autoreleased with no pool in
place - just leaking
Apr 04 18:09:03 Xdarwin[21318] ***
_NSAutoreleaseNoPool(): Object 0x1670410 of
class NSEvent autoreleased with no pool in place
- just leaking
Apr 04 18:09:03 Xdarwin[21318] Deferred
termination on a secondary thread is not currently
supported
..........

xinit: X server slow to shut down, sending KILL
signal.

waiting for server to die

%

When I started it without the .xinitrc, but run
xhost in one of my xterms, it runs fine, but on
exiting twm and all my xterms, I get the same
message in the console. The messages after exit,
are:

waiting for X server to shut down ddxGiveUp
Bad write to event pipe.
Bad write to event pipe.
Apr 04 18:11:50 Xdarwin[21327] ***
_NSAutoreleaseNoPool(): Object 0x1578910 of
class NSCFString autoreleased with no pool in
place - just leaking
Apr 04 18:11:50 Xdarwin[21327] ***
_NSAutoreleaseNoPool(): Object 0x1580340 of
class NSEvent autoreleased with no pool in place
- just leaking
Apr 04 18:11:50 Xdarwin[21327] Deferred
termination on a secondary thread is not currently
supported
.

.........

xinit: X server slow to shut down, sending KILL
signal.

waiting for server to die

%

Discussion

  • Torrey T. Lyons

    Torrey T. Lyons - 2001-04-06

    Logged In: YES
    user_id=133579

    Don't set .xinitrc to be only the lines you mentioned:

    /usr/X11R6/bin/xhost + insert.valid.host.here.net
    /usr/X11R6/bin/xhost + yet.another.host.com

    If you do this xinit, will execute these commands and then shutdown the X server, just as you saw. You should copy a proper .xinitrc script (such as in /etc/X11/xinit/xinitrc) to .xinitrc in your home directory. Then add the extra commands you want executed. Remember that when you .xinitrc script finishes, the X server is automatically shutdown.

    All the messages about leaking are confusing, but they are not anything to do with xhost. These messages are due to problems in the way XDarwin shuts down. Because of thread synchronization issues you will sometimes get these messages if you quit the X server in certain ways and sometimes not. We are working on cleaning up this up, but for now you can ignore these messages.

     
  • Torrey T. Lyons

    Torrey T. Lyons - 2001-04-06
    • status: open --> closed-invalid
     

Log in to post a comment.