Skip to content

Bug: watcher enqueues dangling path pointer for modified events #3

@justrach

Description

@justrach

Severity: Critical

In incrementalDiff, entry.path from the walker is tied to the per-cycle arena. When pushed into the EventQueue, the path outlives the arena's deinit, creating a dangling pointer.

Fix: Use the persistent allocator to dupe paths before enqueuing, or use the already-duped key from the known map.

Files: src/watcher.zig:228

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:p2Medium prioritystatus:doneWork item is complete

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions