ipfs / ipfs-desktop

An unobtrusive and user-friendly desktop application for IPFS on Windows, Mac and Linux.
https://docs.ipfs.tech/install/ipfs-desktop/
MIT License
5.85k stars 849 forks source link

macOS: panic: runtime error: slice bounds out of range #2825

Open WenjunII opened 3 weeks ago

WenjunII commented 3 weeks ago

👉️ Please describe what you were doing when this error happened.

Specifications

Error


Error: Initializing daemon...
Kubo version: 0.27.0
Repo version: 15
System version: amd64/darwin
Golang version: go1.21.7
panic: runtime error: slice bounds out of range [33554436:80]

goroutine 57 [running]:
internal/poll.(*FD).Write(0xc000b60b80, {0xc000380482, 0x50, 0x200})
    internal/poll/fd_unix.go:380  0x469
net.(*netFD).Write(0xc000b60b80, {0xc000380482?, 0xc0008c8e50?, 0x105aede?})
    net/fd_posix.go:96  0x25
net.(*conn).Write(0xc0002e6058, {0xc000380482?, 0x0?, 0x0?})
    net/net.go:191  0x45
net.dnsPacketRoundTrip({_, _}, _, {{{0x5f, 0x64, 0x6e, 0x73, 0x61, 0x64, 0x64, ...}, ...}, ...}, ...)
    net/dnsclient_unix.go:102  0x9e
net.(*Resolver).exchange(_, {_, _}, {_, _}, {{{0x5f, 0x64, 0x6e, 0x73, 0x61, ...}, ...}, ...}, ...)
    net/dnsclient_unix.go:187  0x528
net.(*Resolver).tryOneName(_, {_, _}, _, {_, _}, _)
    net/dnsclient_unix.go:277  0x466
net.(*Resolver).lookup(_, {_, _}, {_, _}, _, _)
    net/dnsclient_unix.go:444  0x2c5
net.(*Resolver).goLookupTXT(0x696c2e7061727473?, {0x2d1d850?, 0xc000051bd0?}, {0xc001280ae0, 0x20})
    net/lookup.go:845  0x85
net.(*Resolver).lookupTXT(...)
    net/lookup_unix.go:116
net.(*Resolver).LookupTXT(0xc000362738?, {0x2d1d850?, 
welcome[bot] commented 3 weeks ago

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

Finally, remember to use https://discuss.ipfs.io if you just need general support.

lidel commented 2 weeks ago

@WenjunII seems this is a known bug in Apple's macOS Sonoma: https://github.com/golang/go/issues/61060#issuecomment-1718384385

Are you able to