libp2p / libp2p/go-libp2p

Possible deadlock in mdns on macOS

Open
#2,228 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

effort/days exp/intermediate help wanted kind/bug P3
Dominant language
Go
Stars
6.9k
Forks
1.3k
Avg merge
13d 21h
Merged PRs (30d)
1

Description

Running `GOLOG_LOG_LEVEL=debug go test ./p2p/discovery/mdns -v` stalls on my
laptop. CI seems fine so far.

It eventually hits this error:

```
mdns_test.go:79:
Error Trace: /Users/marco/pl/libp2p/go-libp2p/p2p/discovery/mdns/mdns_test.go:79
Error: Condition never satisfied
Test: TestOtherDiscovery
Messages: expected peers to find each other
```

but doesn't exit the test.

macOS: 13.2.1 on M1.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running GOLOG_LOG_LEVEL=debug go test ./p2p/discovery/mdns -v on macOS and inspect p2p/discovery/mdns/mdns_test.go, especially TestOtherDiscovery and line 79. Compare the stalled behavior with the successful CI case; done means the test completes without hanging and TestOtherDiscovery can find the expected peers.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.