maharmstone / btrfs

WinBtrfs - an open-source btrfs driver for Windows
GNU Lesser General Public License v3.0
5.9k stars 225 forks source link

UNEXPECTED_KERNEL_MODE_TRAP BSODs when trying to index files with Everything #515

Open aziztcf opened 2 years ago

aziztcf commented 2 years ago

This has happened before with other software too but with Everything I can reproduce it consistently.

  1. add BTRFS drive to search folder
  2. select it and rescan now
  3. BSOD

attached are two minidumps, I did take a peek with windbg but sadly my windows dev skills aren't too great! minidumps.zip

Apparently recursion shenanigans. Maybe something to do with // FIXME - recursion is a bad idea in kernel mode ;)

UNEXPECTED_KERNEL_MODE_TRAP_M (1000007f)
Arg1: 0000000000000008, EXCEPTION_DOUBLE_FAULT
Arg2: ffff900171694e70
Arg3: ffff818f8d1b8ff0
Arg4: fffff8043dec1e61

FAULTING_SOURCE_LINE_NUMBER:  1905

FAULTING_SOURCE_CODE:  
  1901:         LIST_ENTRY* le2 = le->Flink;
  1902: 
  1903:         reap_filerefs(Vcb, c);
  1904: 
> 1905:         le = le2;
  1906:     }
  1907: 
  1908:     if (fr->refcount == 0)
  1909:         reap_fileref(Vcb, fr);
  1910: }
maharmstone commented 2 years ago

Thanks, I'll try to reproduce. I think you're probably right given the comment, it's probably running out of stack space.