-
-
Notifications
You must be signed in to change notification settings - Fork 5k
panic: runtime error: slice bounds out of range [24:3] #7568
Copy link
Copy link
Closed
Labels
bugA problem with current functionality, as opposed to missing functionality (enhancement)A problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionIssues closed and untouched for a long time, together with being locked for discussion
Milestone
Description
I have just found this panic file that apparently took place today at night. I wasn't even aware of the fact, so Syncthing must have just restarted itself automatically and continued to work as usual. I also haven't found anything special in the system logs that could be connected with this.
Panic at 2021-04-13T02:12:53+09:00
panic: runtime error: slice bounds out of range [24:3]
goroutine 98846 [running]:
github.com/ccding/go-stun/stun.newPacketFromBytes(0xc004f5c400, 0x44, 0x400, 0x400, 0x44, 0x122fb48)
github.com/ccding/go-stun@v0.1.2/stun/packet.go:60 +0x574
github.com/ccding/go-stun/stun.(*Client).send(0xc0005981c0, 0xc0023c2740, 0x1242a48, 0xc000598180, 0x122fb48, 0xc00cbedf80, 0x3624c5, 0xc00d133f40, 0x0)
github.com/ccding/go-stun@v0.1.2/stun/net.go:90 +0x1c5
github.com/ccding/go-stun/stun.(*Client).sendBindingReq(0xc0005981c0, 0x1242a48, 0xc000598180, 0x122fb48, 0xc00cbedf80, 0xc00cbd0000, 0x10, 0x10, 0x0)
github.com/ccding/go-stun@v0.1.2/stun/net.go:54 +0x433
github.com/ccding/go-stun/stun.(*Client).test1(...)
github.com/ccding/go-stun@v0.1.2/stun/tests.go:24
github.com/ccding/go-stun/stun.(*Client).discover(0xc0005981c0, 0x1242a48, 0xc000598180, 0xc00cbedf80, 0xc00cbedf80, 0x0, 0x0, 0x1)
github.com/ccding/go-stun@v0.1.2/stun/discover.go:72 +0x116
github.com/ccding/go-stun/stun.(*Client).Discover(0xc0005981c0, 0x0, 0x0, 0x0, 0x0)
github.com/ccding/go-stun@v0.1.2/stun/client.go:101 +0xfc
github.com/syncthing/syncthing/lib/stun.(*Service).runStunForServer.func1(0x0, 0x384686)
github.com/syncthing/syncthing/lib/stun/stun.go:189 +0x54
github.com/syncthing/syncthing/lib/util.CallWithContext.func1(0xc00cbedf20, 0xc00d133f30, 0xc00fe61740)
github.com/syncthing/syncthing/lib/util/utils.go:257 +0x2e
created by github.com/syncthing/syncthing/lib/util.CallWithContext
github.com/syncthing/syncthing/lib/util/utils.go:256 +0x99
This is Syncthing v1.15.0 under Windows 10 (as usual, custom compiled with a few minor tweaks).
Edit: I'm sorry for creating the issue with no bug label again, but this is on GitHub not giving any choices unless I log in before pressing the new issue button, which I seem to forget to do.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugA problem with current functionality, as opposed to missing functionality (enhancement)A problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionIssues closed and untouched for a long time, together with being locked for discussion