Skip to content

panic: runtime error: invalid memory address or nil pointer dereference #7063

Closed

Description

@tomasz1986

The panic error name looks the same as #7005, but the content seems to differ, so I am submitting a new issue. If the two are related to the same problem, please close this one and use the other one instead.

The panic happened without any user intervention. Syncthing had just been doing its job, and I only found the log file later.

The log comes from Syncthing v1.10.0 (x86-32) running in Windows 10 Enterprise 2016 LTSB x86.

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0xbe295e]

goroutine 184 [running]:
github.com/syncthing/notify.(*readdcw).loopevent(0x12c881e0, 0x62, 0x139f7880)
	github.com/syncthing/[email protected]/watcher_readdcw.go:400 +0x3e
github.com/syncthing/notify.(*readdcw).loop(0x12c881e0)
	github.com/syncthing/[email protected]/watcher_readdcw.go:362 +0xb7
created by github.com/syncthing/notify.(*readdcw).lazyinit
	github.com/syncthing/[email protected]/watcher_readdcw.go:335 +0xa2

panic-20201028-081907.log

Activity

  1. added
    bug
    needs-triage
    on Oct 28, 2020
  2. imsodin commented on Oct 29, 2020

    @imsodin
    Member

    This is a bug in the notify library, I reported it there: rjeczalik/notify#191

    Anything peculiar you did at the time?

  3. added
    not-our-bug
    and removed
    needs-triage
    on Oct 29, 2020
  4. tomasz1986 commented on Oct 30, 2020

    @tomasz1986
    MemberAuthor

    Anything peculiar you did at the time?

    Actually, yes! I have just re-checked all the logs, and it seems to have happened right after Syncthing restarted itself (due to Restart On Wakeup enabled) after Windows had been resumed from hibernation.

    This is the relevant part from the normal log file.

    [7LDIB] 08:18:02 INFO: Paused state detected, possibly woke up from standby. Restarting in 1m0s.
    [7LDIB] 08:19:02 WARNING: Database indirection GC failed: context canceled
    [7LDIB] 08:19:03 INFO: Exiting
    [start] 08:19:04 INFO: syncthing v1.10.1-dev.5.g94f964f6-tomasz86-stable "Fermium Flea" (go1.15.1 windows-386) tomasz86@tomasz86 2020-10-13 12:19:02 UTC [noupgrade, stnoupgrade]
    [7LDIB] 08:19:06 INFO: Completed initial scan of sendreceive folder "XXX" (xxxxx-xxxxx)
    panic: runtime error: invalid memory address or nil pointer dereference
    

    This is the only device, where I even use hibernation, but normally there do not seem to be any issues. The device is woken up like that almost every day. This is the only panic that I have experienced.

  5. added 2 commits that reference this issue on Nov 1, 2020
    745520b
    ac4950f
  6. added this to the v1.12.0 milestone on Nov 3, 2020
  7. added a commit that references this issue on Nov 9, 2020
    cdf06b8
  8. added
    frozen-due-to-age
    on Nov 2, 2021
  9. locked and limited conversation to collaborators on Nov 2, 2021
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-agenot-our-bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions