Skip to content

Segfault instead of a clean error when base_path is the filesystem root (/) #745

Description

@jabdinghoff

Which fff frontend?

Neovim plugin (fff.nvim)

has logs

2026-08-05T10:33:59.966249Z  INFO ThreadId(02) fff_search::log: FFF tracing initialized: /home/jabdinghoff/.local/state/nvim/fff+1785926039+7921.log (pid=7921, retain_runs=20)
2026-08-05T10:33:59.966316Z  INFO ThreadId(02) open_env{db_path="/home/jabdinghoff/.cache/nvim/fff_nvim"}: fff_search::dbs::lmdb: new
2026-08-05T10:33:59.966396Z  INFO ThreadId(02) open_env{db_path="/home/jabdinghoff/.cache/nvim/fff_nvim"}: fff_search::dbs::lmdb: close time.busy=72.3µs time.idle=8.71µs
2026-08-05T10:33:59.967644Z  INFO ThreadId(02) fff_nvim: Frecency database initialized at /home/jabdinghoff/.cache/nvim/fff_nvim
2026-08-05T10:33:59.967733Z  INFO ThreadId(02) open_env{db_path="/home/jabdinghoff/.local/share/nvim/fff_queries"}: fff_search::dbs::lmdb: new
2026-08-05T10:33:59.968053Z  INFO ThreadId(02) open_env{db_path="/home/jabdinghoff/.local/share/nvim/fff_queries"}: fff_search::dbs::lmdb: close time.busy=214µs time.idle=106µs
2026-08-05T10:33:59.968109Z  INFO ThreadId(02) fff_nvim: Query tracker database initialized at /home/jabdinghoff/.local/share/nvim/fff_queries
2026-08-05T10:33:59.968121Z ERROR ThreadId(02) fff_search::file_picker: Refusing to index filesystem root: /
2026-08-05T10:33:59.968124Z ERROR ThreadId(02) fff_nvim::error: string_value="Can not run certain FFF features in a file system root or home directories. Consider smaller per-project directories."

=== CRASH SIGSEGV (fff) ===
fff.nvim's rust extension hit a segfault and is about to die.
Please file the bug at https://github.com/dmtrKovalenko/fff/issues with this banner attached.
=== CRASH END SIGSEGV ===

Description

When I open nvim at / I get a buffer with:

~     === CRASH SIGSEGV (fff) ===
~                                fff.nvim's rust extension hit a segfault and is about to die.
~                                                                                             Please file the bug at https://github.com/dmtrKovalenko/fff/issues with this banner attached.
~                                             === CRASH END SIGSEGV ===
~

before it then fully crashes.

This is on aarch64 on wsl2 on Ubuntu 24.04

Activity

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

    bugSomething isn't workingtriaged

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions