threads / bug / 66916

[BUG] T7527 fails with 2/70 tests

Subject: [BUG] T7527 fails with 2/70 tests

## tl;dr

A BUG() about a double watch removal in the new Linux fsmonitor listener fails two tests on master. Read the story.

replies: 2people: 1as markdown or json

Dirk Gouders· Nov 22, 2026, 20:30 UTC · lore
Hello,

I noticed T7527 (on origin/master) is failing with 2 tests and before I start digging I want to ask if this is a known problem.

What I already saw is a core.* in a temp directory which (among others) causes the test_cmp to fail...

Regards,
Dirk

ok 1 - explicit daemon start and stop ok 2 - implicit daemon start ok 3 - implicit daemon stop (delete .git) ok 4 - implicit daemon stop (rename .git) ok 5 # skip implicit daemon stop (rename GIT~1) (missing SHORTNAMES,MINGW of MINGW,SHORTNAMES) ok 6 # skip implicit daemon stop (rename GIT~2) (missing SHORTNAMES,MINGW of MINGW,SHORTNAMES) ok 7 - cannot start multiple daemons ok 8 - setup ok 9 - update-index implicitly starts daemon ok 10 - status implicitly starts daemon ok 11 - edit some files ok 12 - create some files ok 13 - delete some files ok 14 - rename some files ok 15 - rename directory ok 16 - file changes to directory ok 17 - directory changes to a file ok 18 - rapid nested directory creation ok 19 - flush cached data ok 20 - setup worktree base ok 21 - worktree with .git file ok 22 - cleanup worktrees ok 23 - Matrix: setup for untracked-cache,fsmonitor matrix ok 24 - Matrix[uc:false] disable untracked cache ok 25 - Matrix[uc:false][fsm:false] disable fsmonitor ok 26 - Matrix[uc:false][fsm:false] edit_files ok 27 - Matrix[uc:false][fsm:false] delete_files ok 28 - Matrix[uc:false][fsm:false] create_files ok 29 - Matrix[uc:false][fsm:false] rename_files ok 30 - Matrix[uc:false][fsm:false] file_to_directory ok 31 - Matrix[uc:false][fsm:false] directory_to_file ok 32 - Matrix[uc:false][fsm:false] move_directory_contents_deeper ok 33 - Matrix[uc:false][fsm:false] move_directory_up ok 34 - Matrix[uc:false][fsm:false] move_directory ok 35 - Matrix[uc:false][fsm:true] enable fsmonitor ok 36 - Matrix[uc:false][fsm:true] edit_files ok 37 - Matrix[uc:false][fsm:true] delete_files ok 38 - Matrix[uc:false][fsm:true] create_files ok 39 - Matrix[uc:false][fsm:true] rename_files ok 40 - Matrix[uc:false][fsm:true] file_to_directory ok 41 - Matrix[uc:false][fsm:true] directory_to_file ok 42 - Matrix[uc:false][fsm:true] move_directory_contents_deeper not ok 43 - Matrix[uc:false][fsm:true] move_directory_up # # matrix_clean_up_repo && # $fn && # if test $uc = false && test $fsm = false # then # git status --porcelain=v1 >.git/expect.$fn # else # git status --porcelain=v1 >.git/actual.$fn && # test_cmp .git/expect.$fn .git/actual.$fn # fi # ok 44 - Matrix[uc:false][fsm:true] move_directory ok 45 - Matrix[uc:false][fsm:true] disable fsmonitor at end ok 46 - Matrix[uc:true] enable untracked cache ok 47 - Matrix[uc:true][fsm:false] disable fsmonitor ok 48 - Matrix[uc:true][fsm:true] enable fsmonitor ok 49 - Matrix[uc:true][fsm:true] edit_files ok 50 - Matrix[uc:true][fsm:true] delete_files ok 51 - Matrix[uc:true][fsm:true] create_files ok 52 - Matrix[uc:true][fsm:true] rename_files ok 53 - Matrix[uc:true][fsm:true] file_to_directory ok 54 - Matrix[uc:true][fsm:true] directory_to_file ok 55 - Matrix[uc:true][fsm:true] move_directory_contents_deeper not ok 56 - Matrix[uc:true][fsm:true] move_directory_up # # matrix_clean_up_repo && # $fn && # if test $uc = false && test $fsm = false # then # git status --porcelain=v1 >.git/expect.$fn # else # git status --porcelain=v1 >.git/actual.$fn && # test_cmp .git/expect.$fn .git/actual.$fn # fi # ok 57 - Matrix[uc:true][fsm:true] move_directory ok 58 - Matrix[uc:true][fsm:true] disable fsmonitor at end ok 59 - unicode in repo root path: u_c3_a6__æ ok 60 - unicode in repo root path: u_e2_99_ab__♫ ok 61 - submodule setup ok 62 - submodule always visited ok 63 - submodule absorbgitdirs implicitly starts daemon ok 64 - submodule implicitly starts daemon by pull ok 65 # skip case insensitive+preserving (missing CASE_INSENSITIVE_FS) ok 66 # skip Unicode nfc/nfd (missing !UNICODE_COMPOSITION_SENSITIVE) ok 67 - split-index and FSMonitor work well together ok 68 # skip fsmonitor subdir case wrong on disk (missing CASE_INSENSITIVE_FS) ok 69 # skip fsmonitor file case wrong on disk (missing CASE_INSENSITIVE_FS) ok 70 - untracked cache is checked after a trivial response # failed 2 among 70 test(s) 1..70

Dirk Gouders· Nov 22, 2026, 21:03 UTC · re: Dirk Gouders · lore

Re: [BUG] T7527 fails with 2/70 tests

On Sun, Nov 22 2026, Dirk Gouders wrote:
Show 7 quoted lines
> Hello,
>
> I noticed T7527 (on origin/master) is failing with 2 tests
> and before I start digging I want to ask if this is a known problem.
>
> What I already saw is a core.* in a temp directory which (among others)
> causes the test_cmp to fail...

To be more specific: the core file says, "git fsmonitor--daemon run --detach -" is failing with "BUG("double remove of watch for '%s'", w->dir);" at compat/fsmonitor/fsm-listen-linux.c:144compat/fsmonitor/fsm-listen-linux.c:144

Dirk
Dirk Gouders· Nov 22, 2026, 22:17 UTC · re: Dirk Gouders · lore

Re: [BUG] T7527 fails with 2/70 tests

On Sun, Nov 22 2026, Dirk Gouders wrote:
Show 14 quoted lines
> On Sun, Nov 22 2026, Dirk Gouders wrote:
>
>> Hello,
>>
>> I noticed T7527 (on origin/master) is failing with 2 tests
>> and before I start digging I want to ask if this is a known problem.
>>
>> What I already saw is a core.* in a temp directory which (among others)
>> causes the test_cmp to fail...
>
> To be more specific: the core file says, "git fsmonitor--daemon run
> --detach -" is failing with "BUG("double remove of watch for '%s'",
> w->dir);" at
> compat/fsmonitor/fsm-listen-linux.c:144compat/fsmonitor/fsm-listen-linux.c:144
I started digging anyway: a bisect lead me to the first bad commit:
ce48de8b2c (fsmonitor: implement filesystem change listener for Linux, 2026-04-15)
Adding the involved persons to Cc.
Dirk

← back to recent threads