Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2001 08:07:14 -0400
From:      "Brian F. Feldman" <green@FreeBSD.org>
To:        hackers@FreeBSD.org
Subject:   Anyone know of RFMEM vm/sysv_shm.c-related races?
Message-ID:  <200104241207.f3OC7F159738@green.bikeshed.org>

next in thread | raw e-mail | index | archive | help
In some way, using Linux LinuxThreads programs that use shared memory, I've 
ended up with dozens of shared memory segments that reportedly still have 1 
attachment (which I'm really darn certain is impossible since I've killed
_everything_ in sight).  I think something must have happened that for some 
reason shmexit() was not called on process exit, vm_shm refcnt was increased 
too many times, vm_shm refcnt was not decreased enough times... whatever the 
case, there may be an old vmspace just floating around stranded, or just a 
simple bug with vm_shm...

Does anyone have any clues about races or weird issues in this area?  It's 
pretty exasperating to not be able to figure this one out.  I don't 
immediately see any obvious races after half an hour of searching (since it 
appears all calls that can modify vmspace directly require Giant being held).

-- 
 Brian Fundakowski Feldman           \  FreeBSD: The Power to Serve!  /
 green@FreeBSD.org                    `------------------------------'



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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