Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime error: invalid memory address or nil pointer dereference #278

Open
Jipok opened this issue Feb 25, 2024 · 1 comment
Open

runtime error: invalid memory address or nil pointer dereference #278

Jipok opened this issue Feb 25, 2024 · 1 comment

Comments

@Jipok
Copy link

Jipok commented Feb 25, 2024

Yesterday I started the service, and today it stopped working.
I opened the logs, but there was an endless repetition of this:

2024/02/25 14:00:46 [Recovery] 2024/02/25 - 14:00:46 panic recovered:
runtime error: invalid memory address or nil pointer dereference
/usr/lib/go/src/runtime/panic.go:261 (0x455c97)
        panicmem: panic(memoryError)
/usr/lib/go/src/runtime/signal_unix.go:861 (0x455c65)
        sigpanic: panicmem()
/home/kiv/go/pkg/mod/github.com/anacrolix/torrent@v1.54.0/webrtc.go:56 (0xbc615d)
/home/kiv/go/pkg/mod/github.com/anacrolix/torrent@v1.54.0/torrent.go:1950 (0xbbafb4)
/home/kiv/go/pkg/mod/github.com/anacrolix/torrent@v1.54.0/torrent.go:1934 (0xbbadd3)
/home/kiv/go/pkg/mod/github.com/anacrolix/torrent@v1.54.0/torrent.go:1927 (0xbbabf9)
/home/kiv/dev/distribyted/torrent/stats.go:204 (0xd92a4d)
/home/kiv/dev/distribyted/torrent/stats.go:154 (0xd924b5)
/home/kiv/dev/distribyted/http/api.go:40 (0xec7544)
/home/kiv/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 (0xec95b8)
/home/kiv/dev/distribyted/http/http.go:77 (0xec9587)
/home/kiv/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 (0xeb04ca)
/home/kiv/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/logger.go:172 (0xec91a4)
/home/kiv/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 (0xebc4f9)
/home/kiv/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/recovery.go:102 (0xebc4e7)
/home/kiv/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 (0xebb3da)
/home/kiv/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:620 (0xebb06d)
/home/kiv/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:576 (0xebab9c)
/usr/lib/go/src/net/http/server.go:2938 (0x72a2ad)
        serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
/usr/lib/go/src/net/http/server.go:2009 (0x726193)
        (*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
/usr/lib/go/src/runtime/asm_amd64.s:1650 (0x4751a0)
        goexit: BYTE    $0x90   // NOP
@Jipok
Copy link
Author

Jipok commented Feb 26, 2024

And got it again

3:32PM WRN tracker client for "wss://tracker.openwebtorrent.com": webrtc PeerConnection state changed to closed component=torrent-client
3:32PM WRN tracker client for "wss://tracker.openwebtorrent.com": unhandled announce response "{\"action\":\"announce\",\"interval\":120,\"info_hash\":\"¨\u008fÚYTè\u0091xÃrqjjx¸\\u0018\\u000eÔÚÓ\",\"complete\":0,\"incomplete\":8}" component=torrent-client
3:32PM WRN tracker client for "wss://tracker.openwebtorrent.com": unhandled announce response "{\"action\":\"announce\",\"interval\":120,\"info_hash\":\"ÉáWc÷\\\"ò>\u0098¢\u009dìß®4\\u001b\u0098Õ0V\",\"complete\":1,\"incomplete\":3}" component=torrent-client
3:32PM WRN tracker client for "wss://tracker.openwebtorrent.com": unhandled announce response "{\"action\":\"announce\",\"interval\":120,\"info_hash\":\"Ý\u0082UìÜ|¥_°»ø\\u0013#ØpbÛ\\u001fm\\u001c\",\"complete\":3,\"incomplete\":11}" component=torrent-client
3:32PM WRN tracker client for "wss://tracker.openwebtorrent.com": unhandled announce response "{\"action\":\"announce\",\"interval\":120,\"info_hash\":\"\\b\u00ad¥§¦\\u0018:®\\u001e\\tØ1ßgHÕf\\tZ\\u0010\",\"complete\":30,\"incomplete\":783}" component=torrent-client
3:32PM WRN tracker client for "wss://tracker.btorrent.xyz": webrtc PeerConnection state changed to closed component=torrent-client
3:32PM WRN tracker client for "wss://tracker.btorrent.xyz": webrtc PeerConnection state changed to closed component=torrent-client
3:32PM WRN tracker client for "wss://tracker.btorrent.xyz": webrtc PeerConnection state changed to closed component=torrent-client
3:32PM WRN tracker client for "wss://tracker.btorrent.xyz": webrtc PeerConnection state changed to connecting component=torrent-client
3:33PM WRN tracker client for "wss://tracker.btorrent.xyz": webrtc PeerConnection state changed to closed component=torrent-client
3:33PM WRN tracker client for "wss://tracker.btorrent.xyz": webrtc PeerConnection state changed to connecting component=torrent-client
3:33PM WRN tracker client for "wss://tracker.btorrent.xyz": webrtc PeerConnection state changed to closed component=torrent-client
3:35PM WRN tracker client for "wss://tracker.btorrent.xyz": webrtc PeerConnection state changed to connecting component=torrent-client
3:35PM WRN tracker client for "wss://tracker.btorrent.xyz": webrtc PeerConnection state changed to closed component=torrent-client
3:35PM WRN tracker client for "wss://tracker.btorrent.xyz": webrtc PeerConnection state changed to connecting component=torrent-client


2024/02/26 15:36:16 [Recovery] 2024/02/26 - 15:36:16 panic recovered:
runtime error: invalid memory address or nil pointer dereference
/usr/lib/go/src/runtime/panic.go:261 (0x455c97)
        panicmem: panic(memoryError)
/usr/lib/go/src/runtime/signal_unix.go:861 (0x455c65)
        sigpanic: panicmem()
/home/trnt/go/pkg/mod/github.com/anacrolix/torrent@v1.54.1-0.20240225060101-3ad279e85cd0/webrtc.go:56 (0xbc787d)
        webrtcNetConn.RemoteAddr: return webrtcNetAddr{pair.Remote}
/home/trnt/go/pkg/mod/github.com/anacrolix/torrent@v1.54.1-0.20240225060101-3ad279e85cd0/torrent.go:1949 (0xbbc6d4)
        (*Torrent).numTotalPeers: ra := conn.conn.RemoteAddr()
/home/trnt/go/pkg/mod/github.com/anacrolix/torrent@v1.54.1-0.20240225060101-3ad279e85cd0/torrent.go:1933 (0xbbc4f3)
        (*Torrent).statsLocked: ret.TotalPeers = t.numTotalPeers()
/home/trnt/go/pkg/mod/github.com/anacrolix/torrent@v1.54.1-0.20240225060101-3ad279e85cd0/torrent.go:1926 (0xbbc319)
        (*Torrent).Stats: return t.statsLocked()
/home/trnt/distribyted/distribyted/torrent/stats.go:204 (0xd9454d)
        (*Stats).stats: st := t.Stats()
/home/trnt/distribyted/distribyted/torrent/stats.go:154 (0xd93fb5)
        (*Stats).RoutesStats: ts := s.stats(now, t, true)
/home/trnt/distribyted/distribyted/http/api.go:40 (0xec9044)
        glob..func3.1: s := ss.RoutesStats()
/home/trnt/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 (0xecb0b8)
        (*Context).Next: c.handlers[c.index](c)
/home/trnt/distribyted/distribyted/http/http.go:77 (0xecb087)
        Logger.func1: c.Next()
/home/trnt/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 (0xeb1fca)
        (*Context).Next: c.handlers[c.index](c)
/home/trnt/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/logger.go:172 (0xecaca4)
        New.ErrorLogger.ErrorLoggerT.func3: c.Next()
/home/trnt/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 (0xebdff9)
        (*Context).Next: c.handlers[c.index](c)
/home/trnt/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/recovery.go:102 (0xebdfe7)
        CustomRecoveryWithWriter.func1: c.Next()
/home/trnt/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174 (0xebceda)
        (*Context).Next: c.handlers[c.index](c)
/home/trnt/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:620 (0xebcb6d)
        (*Engine).handleHTTPRequest: c.Next()
/home/trnt/go/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:576 (0xebc69c)
        (*Engine).ServeHTTP: engine.handleHTTPRequest(c)
/usr/lib/go/src/net/http/server.go:2938 (0x72a2ad)
        serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
/usr/lib/go/src/net/http/server.go:2009 (0x726193)
        (*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
/usr/lib/go/src/runtime/asm_amd64.s:1650 (0x4751a0)
        goexit: BYTE    $0x90   // NOP

3:36PM WRN tracker client for "wss://tracker.btorrent.xyz": webrtc PeerConnection state changed to closed component=torrent-client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant