Skip to content

channels leak mach ports on darwin #503

@gopherbot

Description

@gopherbot

by runningwild:

What steps will reproduce the problem?
Compile and run the attached program, foo.go, then view with top.

What is the expected output? What do you see instead?
Expected to see top output saying something that remains constant, instead got this:
PID    COMMAND      %CPU      TIME     #TH  #WQ  #PORTS  #MREG RPRVT  RSHRD  RSIZE 
VPRVT   
52479  foo          97.9      00:02.66 3/1  0    26543+  21    668K   240K   852K   14M 

With #PORTS at 26k and increasing at the rate of 10k per second or so.


What is your $GOOS?  $GOARCH?
GOOS=darwin
GOARCH=amd64 and 386

Which revision are you using?  (hg identify)
ed4677dbdbbc tip

Attachments:

  1. foo.go (75 bytes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions