Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Apr 1995 13:06:37 -0400 (EDT)
From:      Mark Hittinger <bugs@ns1.win.net>
To:        questions@FreeBSD.org
Subject:   re: [2.0R] news server memleak?
Message-ID:  <199504141706.NAA00879@ns1.win.net>

next in thread | raw e-mail | index | archive | help
> From: Faried Nawaz <fn@pain.csrv.uidaho.edu>
> 
> i've noticed a strange thing, though, and it puzzles me.  yesterday (18 day
> uptime) i noticed that the machine was living in swap.  it had innd running
> (ps said vsz was around 7.5mb), and had a few in.nnrpds running (ps said
> vsz for each was just over a meg).  i could not see how it all added up
> to > 20mb, but i was 10mb into swap.

There is at least one known file descriptor leak in innd 1.4sec2.  Here
is a patch for it:

This is a known problem. I got a fix some while ago (Sorry, so long ago
I forget where it came from - may have been direct from rsalz) and
patched it on to INN 1.4 here.  The relevant area, as kluged, now reads
(around line 82 in site.c):

    if (AmRoot)
        xchown(name);
    if (cp) {
if (cp->fd >= 0)
syslog(L_ERROR, "DEBUG ERROR SITEspool trashed:%d %s:%d", cp->fd, sp->Name, i);
        WCHANremove(cp);
        RCHANremove(cp);
        SCHANremove(cp);
        close(cp->fd);
        cp->fd = i;
        return TRUE;
    }
    sp->Channel = CHANcreate(i, CTfile, CSwriting, SITEreader, SITEwritedone);
    if (sp->Channel == NULL) {

I don't think this has made it into the current distribution.

There is another file descriptor leak in innd lurking someplace and I
haven't been able to track it down. 

See if this helps.

Regards,

Mark Hittinger
bugs@win.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504141706.NAA00879>