You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Panic due to internal folder context used on exported methods #6664
bugA 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 discussion
File "/tmp/sync/lib/model/folder.go", line 243, in doInSync
case <-f.ctx.Done():
File "/tmp/sync/lib/model/folder_recvonly.go", line 67, in Revert
f.doInSync(func() error { f.revert(); return nil })
File "/tmp/sync/lib/model/model.go", line 2264, in Revert
runner.Revert()
panic: runtime error: invalid memory address or nil pointer dereference
Since we get the context as an argument to serve, using that context in any exported method is racy. We should probably have a second context/channel for folder lifetime created in the constructor and cancelled in Stop, in addition to the current one for "serve lifetime".
bugA 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 discussion
Activity
lib/model: Add done chan to track folder-lifetime (fixes syncthing#6664)
Merge branch 'main' into encryption-featureflag
Merge branch 'main' into cdc
Merge tag 'v1.12.0' into ios_try_syncthing-1.12