Skip to content

Auditbeat can crash when recursively watching directories in Windows  #25334

@jsoriano

Description

@jsoriano

It seems to be exactly the same case reported in the underlying fsnotify library used: fsnotify/fsnotify#318

For confirmed bugs, please report:

  • Version: 7.10.1 (probably more versions affected)
  • Operating System: Windows
  • Steps to Reproduce: Recursively watch long paths with the file_integrity module.

Failures like these ones happen:

panic: runtime error: slice bounds out of range [:262] with length 260

goroutine 101 [running, locked to thread]:
github.com/fsnotify/fsnotify.(*Watcher).readEvents(0xc00037e500)
	/go/pkg/mod/github.com/adriansr/fsnotify@v0.0.0-20180417234312-c9bbe1f46f1d/windows.go:465 +0xf8a
created by github.com/fsnotify/fsnotify.NewWatcher
	/go/pkg/mod/github.com/adriansr/fsnotify@v0.0.0-20180417234312-c9bbe1f46f1d/windows.go:48 +0x1f8

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions