Skip to content

panic: bug: ClusterConfig called on closed or nonexistent connection #9021

Closed

Activity

  1. added
    bug
    needs-triage
    on Aug 7, 2023
  2. imsodin commented on Aug 7, 2023

    @imsodin
    Member

    Full failure with backtrace (though I then realized it's a custom panic, so the backtrace isn't that relevant xD ):

    --- FAIL: TestAutoAcceptEnc (0.00s)
    panic: bug: ClusterConfig called on closed or nonexistent connection [recovered]
    	panic: bug: ClusterConfig called on closed or nonexistent connection
    
    goroutine 2647 [running]:
    testing.tRunner.func1.2({0x13758c0, 0x16504d0})
    	C:/hostedtoolcache/windows/go/1.20.7/x64/src/testing/testing.go:1526 +0x24e
    testing.tRunner.func1()
    	C:/hostedtoolcache/windows/go/1.20.7/x64/src/testing/testing.go:1529 +0x39f
    panic({0x13758c0, 0x16504d0})
    	C:/hostedtoolcache/windows/go/1.20.7/x64/src/runtime/panic.go:884 +0x213
    github.com/syncthing/syncthing/lib/model.(*model).ClusterConfig(0xc0066dd040, {0x1664208?, 0xc000538600?}, {{0xc005c72ec0?, 0x0?, 0x0?}})
    	D:/a/syncthing/syncthing/lib/model/model.go:1176 +0xfea
    github.com/syncthing/syncthing/lib/model.TestAutoAcceptEnc.func2({0x2, 0x23, 0xe5, 0xbf, 0x3f, 0x57, 0x1f, 0x39, 0xd2, 0xf0, ...}, ...)
    	D:/a/syncthing/syncthing/lib/model/model_test.go:1341 +0x125
    github.com/syncthing/syncthing/lib/model.TestAutoAcceptEnc(0xc0066dcd00)
    	D:/a/syncthing/syncthing/lib/model/model_test.go:1398 +0x168a
    testing.tRunner(0xc0066dcd00, 0x153de38)
    	C:/hostedtoolcache/windows/go/1.20.7/x64/src/testing/testing.go:1576 +0x10b
    created by testing.(*T).Run
    	C:/hostedtoolcache/windows/go/1.20.7/x64/src/testing/testing.go:1629 +0x3ea
    FAIL	github.com/syncthing/syncthing/lib/model	2.286s
    
  3. imsodin commented on Aug 7, 2023

    @imsodin
    Member

    Also the referenced large refactor made it into 1.23.7-rc.2 - that's a kind of change that should likely go into an rc.1 for more testing. Lets revert it on the release branch - what do you think @calmh ?

  4. calmh commented on Aug 7, 2023

    @calmh
    Member

    Incidentally I recently set up logging of test results to produce stats on test flakiness and actually do something about this.

  5. imsodin commented on Aug 7, 2023

    @imsodin
    Member

    Ah good, I was actually having some doubts about the validity of that test/failure in the back of my head, but haven't yet looked at the actual issue at all. In retrospect I'd still have probably waited with shipping that for the next release but also ¯\_(ツ)_/¯

    Just kicked off a loop of that test to see if I can repro locally, I am curious how/why that happens.
    Edit: Oh that didn't take long. Man I want more Syncthing time for multiple-conns, possible index-handler lifetime shenanigans and now this - I get nostalgic of the time where you paid me top eur for my hobby xD

  6. added 2 commits that reference this issue on Aug 12, 2023
    9c5753f
    f9491fc
  7. added this to the v1.24.0 milestone on Aug 23, 2023
  8. added
    build
    and removed
    bug
    needs-triage
    on Aug 23, 2023
  9. added a commit that references this issue on Sep 1, 2023
    a6f61f7
  10. added a commit that references this issue on Jan 28, 2024
    40b3b9a
  11. added
    frozen-due-to-age
    on Aug 20, 2024
  12. locked and limited conversation to collaborators on Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions