[BETA7-panic] sodealloc(): so_count 1

Robert Watson rwatson at freebsd.org
Sun Oct 17 14:58:50 PDT 2004


On Sun, 17 Oct 2004, Julian Elischer wrote:

> I.e., it sounds like a
> > reference count issue due to sockets using a slightly aberrant reference
> > model.  I'll try to come up with a workaround sometime in the next 12-24
> > hours, and hopefully also a proper fix.
> 
> At the risk of sounding like a broken record, if we had a central policy
> on how reference counts were done, and library/include support for doing
> it we would be some distance ahead fo where we are now.. 
> 
> There are too many examples of "aberrant reference model". 

I've actually looked a little at normalizing socket reference counting,
but it uses a moderate number of "Weak" references, including a reference
from the protocol that isn't counted, as well as possible references from
the listen queues.  It is my intent to investigate this more, and possibly
move to a more normal referencing scheme, but not before 5.3.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert at fledge.watson.org      Principal Research Scientist, McAfee Research




More information about the freebsd-current mailing list