mach_thread_self() needs to be balanced with mach_port_deallocate()

Bug #723581 reported by Nikodemus Siivola
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
High
Unassigned

Bug Description

To quote http://www.gnu.org/software/hurd/gnumach-doc/Thread-Information.html

"mach_thread_self has an effect equivalent to receiving a send right for the thread port. mach_thread_self returns the name of the send right. In particular, successive calls will increase the calling task's user-reference count for the send right."

I have no reason to believe this is a specialty of hurd -- according to this

  http://thread.gmane.org/gmane.lisp.openmcl.devel/6885

thread Darwin does exactly the same thing.

Revision history for this message
Alastair Bridgewater (alastair-bridgewater) wrote :

Is this fixed by 1.0.46.25 - 1.0.46.31, or is there still more to do?

Revision history for this message
Cyrus Harmon (ch-launchpad) wrote :

Yes, I think .25-.31 fix this problem. If we see new port leakage, let's start a new bug.

Changed in sbcl:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.