Skip to content

FreeBSD sporadic EADDRINUSE #1694

@bradfitz

Description

@bradfitz
The FreeBSD builder sporadically fails with (among other things) EADDRINUSE errors.

e.g.
Change 4e18f60442c2 broke the freebsd-386 build:
http://godashboard.appspot.com/log/c55befefa54d803c1b6327356ac0db98109203d2f462e9efb547462e7cc3f948

... shows a net.Dial failing.

This test program (attached) will reproduce it after a few tries on a 64-bit FreeBSD
8.0-RELEASE-p4 box:

[bradfitz@ch ~]$ ./stress 
2011/04/14 09:22:34 at 0
2011/04/14 09:22:34 at 100
2011/04/14 09:22:34 at 200
2011/04/14 09:22:34 Accept: dial tcp 127.0.0.1:57021: address already in use

Output also includes sometimes:

...
2011/04/14 09:16:49 at 9400
2011/04/14 09:16:49 at 9500
2011/04/14 09:16:49 at 9600
2011/04/14 09:16:49 Accept: dial tcp 127.0.0.1:38028: connection reset by peer

Attachments:

  1. stress.go (590 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