Re: file descriptor leak in 5.2-RC

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Sat, 27 Dec 2003 22:51:46 +0100
In message <20031227205000.GG86308_at_e-Gitt.NET>, Oliver Brandmueller writes:

>Do you mean, there's something in the place where a daemonized process 
>exits?

I really don't know...

The most suspect places are calls to dup(2)/dup2(2), close(2), exec(2)
[for close on exec filedescriptors], exit(2) processing and finally
filedescriptor-passing via sockets.

I have only followed this on the sideline, so I don't have all the
details at hand and I can't really say how I would go about debugging
it, probably by trying to reproduce it in single-user and then
pouring printfs all over the kernel where filedescriptors gets
created/destroyed, and try to figure out which one doesn't get there.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk_at_FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
Received on Sat Dec 27 2003 - 12:51:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:35 UTC