Skip to content

serf panics on MacOS when waking up from sleep during a network switch #688

Description

@arianvp

To reproduce:

  1. close macbook
  2. walk to a different WiFi access point
  3. open MacBook lid
  4. serf panics

I think it might specifically be because I switched to a network out without Ipv6.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x102f50328]

goroutine 701 [running]:
net.(*UDPConn).SyscallConn(0x140000a47c0?)
	net/udpsock.go:129 +0x18
golang.org/x/net/internal/socket.NewConn({0x1032dad18?, 0x0})
	golang.org/x/net@v0.0.0-20210410081132-afb366fc7cd1/internal/socket/rawconn.go:57 +0x170
golang.org/x/net/ipv6.NewPacketConn({0x1032d8c60?, 0x0})
	golang.org/x/net@v0.0.0-20210410081132-afb366fc7cd1/ipv6/endpoint.go:121 +0x40
github.com/hashicorp/mdns.(*client).setInterface(0x14000390c60, 0x1400008dda0?)
	github.com/hashicorp/mdns@v1.0.4/client.go:191 +0xac
github.com/hashicorp/mdns.Query(0x1400016df68)
	github.com/hashicorp/mdns@v1.0.4/client.go:72 +0x6c
github.com/hashicorp/serf/cmd/serf/command/agent.(*AgentMDNS).poll(0x14000186480, 0x14000300000)
	github.com/hashicorp/serf/cmd/serf/command/agent/mdns.go:127 +0x9c
created by github.com/hashicorp/serf/cmd/serf/command/agent.(*AgentMDNS).run
	github.com/hashicorp/serf/cmd/serf/command/agent/mdns.go:115 +0x320

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions