Possible deadlock in mdns on macOS
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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