Skip to content

panic: nil pointer dereference in (*indexHandlerRegistry).startLocked #9269

Closed

Description

@syncthing-sentry
2023/12/07 21:27:41 INFO: syncthing v1.27.0 "Gold Grasshopper" (go1.20.11 linux-amd64) root@buildkitsandbox 2023-12-05 07:12:09 UTC [noupgrade]
Panic at 2023-12-07T21:35:02+01:00
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x60 pc=0xd61b6e]

goroutine 171032 [running]:
github.com/syncthing/syncthing/lib/model.(*indexHandlerRegistry).startLocked(_, {{0xc00512dbc0, 0xb}, {0xc00512dbd0, 0xe}, 0x0, {0xc00116e9e0, 0x20}, 0x0, {0xc000e1bba0, ...}, ...}, ...)
	github.com/syncthing/syncthing/lib/model/indexhandler.go:419 +0x16e
github.com/syncthing/syncthing/lib/model.(*indexHandlerRegistry).AddIndexInfo(0xc0015e9400, {0xc0009d0ae0, 0xb}, 0xc00175a500)
	github.com/syncthing/syncthing/lib/model/indexhandler.go:439 +0x4b5
github.com/syncthing/syncthing/lib/model.(*model).ccHandleFolders(_, {_, _, _}, {{0x81, 0xc1, 0x8d, 0x7b, 0xd9, 0x97, ...}, ...}, ...)
	github.com/syncthing/syncthing/lib/model/model.go:1431 +0xca6
github.com/syncthing/syncthing/lib/model.(*model).ClusterConfig(0xc000002000, {0x13c2688, 0xc000fe6170}, {{0xc0011ac000?, 0xc0000d0088?, 0xc001429d78?}, 0xcf?})
	github.com/syncthing/syncthing/lib/model/model.go:1296 +0x8e8
github.com/syncthing/syncthing/lib/protocol.(*connectionWrappingModel).ClusterConfig(0xc001429d78?, {{0xc0011ac000?, 0x10?, 0xe96c40?}, 0x1?})
	github.com/syncthing/syncthing/lib/protocol/protocol.go:1143 +0x43
github.com/syncthing/syncthing/lib/protocol.encryptedModel.ClusterConfig(...)
	github.com/syncthing/syncthing/lib/protocol/encryption.go:155
github.com/syncthing/syncthing/lib/protocol.(*rawConnection).dispatcherLoop(0xc000d9b9e0)
	github.com/syncthing/syncthing/lib/protocol/protocol.go:496 +0x3b7
github.com/syncthing/syncthing/lib/protocol.(*rawConnection).Start.func2()
	github.com/syncthing/syncthing/lib/protocol/protocol.go:307 +0x25
created by github.com/syncthing/syncthing/lib/protocol.(*rawConnection).Start
	github.com/syncthing/syncthing/lib/protocol/protocol.go:306 +0x116

runner is nil here:

runner.SchedulePull()

//@calmh

Activity

  1. calmh commented on Dec 7, 2023

    @calmh
    Member

    Same as #9234 which we thought fixed.

  2. calmh commented on Dec 7, 2023

    @calmh
    Member

    Obvious culprits are 5118538 and c6334e6 where the latter added the incorrect locking subsequently fixed, but which was apparently not the root cause...

  3. imsodin commented on Dec 7, 2023

    @imsodin
    Member

    Ah crap, I reopened that issue - I'll close it again then :)

  4. added 2 commits that reference this issue on Dec 7, 2023
    87b724d
    bb5cd15
  5. added this to the v1.27.1 milestone on Dec 8, 2023
  6. added
    bug
    on Dec 8, 2023
  7. added 2 commits that reference this issue on Dec 11, 2023
    e44b2e2
    64aa109
  8. added a commit that references this issue on Jan 14, 2024
    f701994
  9. added a commit that references this issue on Jan 28, 2024
    a28de73
  10. added
    frozen-due-to-age
    on Apr 9, 2025
  11. locked and limited conversation to collaborators on Apr 9, 2025
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

    bugfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions