threads / bug / 59835

BUG: fsmonitor.c:21: fsmonitor_dirty has more entries than the index

Subject: BUG: fsmonitor.c:21: fsmonitor_dirty has more entries than the index

## tl;dr

2 messages between Jun 3, 2023 and Jun 4, 2023.

replies: 1people: 2as markdown or json

Fedor Bocharov· Jun 3, 2023, 18:18 UTC · lore

Thank you for filling out a Git bug report! Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)
1. create commit in master (default branch)
2. amend it
3. send commit to the upstream via pull request
4. after commit is merged into the upstream, execute `git pull --rebase=merges --ff --autostash`
5. run git status

What did you expect to happen? (Expected behavior) Git will print repository status

What happened instead? (Actual behavior)
BUG: fsmonitor.c:21: fsmonitor_dirty has more entries than the index (547842 > 54)
error: git died of signal 6

What's different between what you expected and what actually happened? I don't expect git to come into broken state after executing ordinary commands.

Anything else you want to add: I have this options set in the config: core.fsmonitor=true core.repositoryformatversion=0 core.filemode=true core.bare=false core.logallrefupdates=true core.ignorecase=true core.precomposeunicode=true core.fsmonitor=true core.fscache=false core.preloadindex=true core.multipackindex=true core.splitindex=true core.untrackedcache=true submodule.active=. branch.master.remote=origin branch.master.merge=refs/heads/master status.showuntrackedfiles=all

Please review the rest of the bug report below. You can delete any lines you don't wish to share.

[System Info] git version: git version 2.39.1 cpu: arm64 no commit associated with this build sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh feature: fsmonitor--daemon uname: Darwin 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:24 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6000 arm64 compiler info: clang: 14.0.0 (clang-1400.0.29.202) libc info: no libc information available $SHELL (typically, interactive shell): /bin/zsh

[Enabled Hooks]
Junio C Hamano· Jun 4, 2023, 04:38 UTC · re: Fedor Bocharov · lore

Re: BUG: fsmonitor.c:21: fsmonitor_dirty has more entries than the index

Fedor Bocharov <fedor.bocharov@jetbrains.com> writes:
Show 7 quoted lines
> Anything else you want to add:
> I have this options set in the config:
> core.fsmonitor=true
> core.splitindex=true
> ...
> feature: fsmonitor--daemon
> uname: Darwin 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 20:52:24 PDT 2023; root:xnu-8796.121.2~5/RELEASE_ARM64_T6000 arm64

I wonder if this is similar to what the topic that includes 3704fed5 (split-index & fsmonitor: demonstrate a bug, 2023-03-26) [*] addressed.

The fix appeared in Git 2.41-rc0 and above.
[References]
* https://lore.kernel.org/git/pull.1497.v2.git.1679870743.gitgitgadget@gmail.com/

← back to recent threads