# Fuse crash with FuseWriteCache

**URL:** <https://eos-community.web.cern.ch/t/fuse-crash-with-fusewritecache/146>\
**Category:** Development\
**Created:** [May 17, 2018, 1:29am UTC](https://eos-community.web.cern.ch/t/fuse-crash-with-fusewritecache/146 "2018-05-17T01:29:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yaodong](https://eos-community.web.cern.ch/letter_avatar_proxy/v4/letter/y/5f8ce5/32.png) [@Yaodong](https://eos-community.web.cern.ch/u/Yaodong)\
**Post date:** [May 17, 2018, 1:29am UTC](https://eos-community.web.cern.ch/t/fuse-crash-with-fusewritecache/146/1 "2018-05-17T01:29:55Z")

</div>

Hello,

I would like to report one bug we met on Citrine. Recently EOSD sometimes crashed which is difficult to reproduce. After we updated to version 4.2.22, it still occurred. Today I checked the coredump file that showed:  
#0 0x000000000050326e in typeinfo for filesystem ()  
#1 0x0000000000482991 in WaitAsyncIO (this=0x7f5a4a249310) at /usr/src/debug/eos-4.2.22-1/fuse/FuseCache/LayoutWrapper.hh:209  
#2 FileAbstraction::WaitFinishWrites (this=0x7f5a4a249310) at /usr/src/debug/eos-4.2.22-1/fuse/FuseCache/FileAbstraction.cc:222  
#3 0x000000000047eb42 in FuseWriteCache::ForceAllWrites (this=0x7f5a64c96f00, fabst=0x7f5a4a249310, wait=Unhandled dwarf expression opcode 0xf3  
)  
at /usr/src/debug/eos-4.2.22-1/fuse/FuseCache/FuseWriteCache.cc:320  
#4 0x0000000000459bd3 in filesystem::close (this=0x749be8, fildes=6, inode=14590874977566720, uid=61, gid=140, pid=30237)  
at /usr/src/debug/eos-4.2.22-1/fuse/filesystem.cc:3588  
#5 0x0000000000442b00 in EosFuse::release (req=0x7f5a4dc6f280, ino=14590874977566720, fi=0x7f5a4c3fec80)  
at /usr/src/debug/eos-4.2.22-1/fuse/eosfuse.cc:1535  
#6 0x0000003d46814ed2 in ?? () from /lib64/libfuse.so.2  
#7 0x0000003d468120ef in ?? () from /lib64/libfuse.so.2  
#8 0x00000038eea07aa1 in start\_thread () from /lib64/libpthread.so.0  
#9 0x00000038ee2e8bcd in clone () from /lib64/libc.so.6

Cheers, yaodong@IHEP

---

<div class="post-metadata">

**Author:** ![Yaodong](https://eos-community.web.cern.ch/letter_avatar_proxy/v4/letter/y/5f8ce5/32.png) [@Yaodong](https://eos-community.web.cern.ch/u/Yaodong)\
**Post date:** [August 10, 2018, 3:23am UTC](https://eos-community.web.cern.ch/t/fuse-crash-with-fusewritecache/146/2 "2018-08-10T03:23:20Z")

</div>

The bug still exists in Version 4.2.4, and does any one meet the problem in other site? Thanks.

#0 0x0000000000503d1e in typeinfo for filesystem ()\_  
#1 0x0000000000482851 in WaitAsyncIO (this=0x7ff50ac9a210) at /usr/src/debug/eos-4.2.24-1/fuse/FuseCache/LayoutWrapper.hh:209\_  
#2 FileAbstraction::WaitFinishWrites (this=0x7ff50ac9a210) at /usr/src/debug/eos-4.2.24-1/fuse/FuseCache/FileAbstraction.cc:222\_  
#3 0x000000000047e942 in FuseWriteCache::ForceAllWrites (this=0x7ff527f9c200, fabst=0x7ff50ac9a210, wait=Unhandled dwarf expression opcode 0xf3) at /usr/src/debug/eos-4.2.24-1/fuse/FuseCache/FuseWriteCache.cc:320\_  
#4 0x0000000000458178 in filesystem::truncate (this=0x749be8, fildes=Unhandled dwarf expression opcode 0xf3) at /usr/src/debug/eos-4.2.24-1/fuse/filesystem.cc:3721  
#5 0x000000000046a1bc in filesystem::truncate2 (this=0x749be8, fullpath=0x7ff50ac7c528 \<Address 0x7ff50ac7c528 out of bounds\>, inode=Unhandled dwarf expression opcode 0xf3)at /usr/src/debug/eos-4.2.24-1/fuse/filesystem.cc:3767  
#6 0x0000000000439e5d in EosFuse::setattr (req=0x7ff504bff900, ino=73406963509100544, attr=0x7ff4ea7febf0, to\_set=8, fi=Unhandled dwarf expression opcode 0xf3) at /usr/src/debug/eos-4.2.24-1/fuse/eosfuse.cc:455

---

<div class="post-metadata">

**Author:** ![crystal](https://eos-community.web.cern.ch/user_avatar/eos-community.web.cern.ch/crystal/32/23_2.png) [@crystal](https://eos-community.web.cern.ch/u/crystal)\
**Post date:** [August 10, 2018, 5:04am UTC](https://eos-community.web.cern.ch/t/fuse-crash-with-fusewritecache/146/3 "2018-08-10T05:04:35Z")

</div>

pretty sure we’ve seen this also, currently running 4.2.24 - we ended up just turning the fuse cache off to avoid it.

i have seen other people reporting the crash though - not sure if it’s been resolved in later versions?

---

<div class="post-metadata">

**Author:** ![Yaodong](https://eos-community.web.cern.ch/letter_avatar_proxy/v4/letter/y/5f8ce5/32.png) [@Yaodong](https://eos-community.web.cern.ch/u/Yaodong)\
**Post date:** [August 10, 2018, 6:14am UTC](https://eos-community.web.cern.ch/t/fuse-crash-with-fusewritecache/146/4 "2018-08-10T06:14:37Z")

</div>

I have tried to turn off fuse cache by setting EOS\_FUSE\_CACHE=0, but it seemed not to work. Could you please tell me how you did it? Thank you very much.

---

<div class="post-metadata">

**Author:** ![crystal](https://eos-community.web.cern.ch/user_avatar/eos-community.web.cern.ch/crystal/32/23_2.png) [@crystal](https://eos-community.web.cern.ch/u/crystal)\
**Post date:** [August 20, 2018, 11:27pm UTC](https://eos-community.web.cern.ch/t/fuse-crash-with-fusewritecache/146/5 "2018-08-20T23:27:24Z")

</div>

sorry!! i totally forgot to reply -

our eosd config has:

```auto
export EOS_FUSE_KERNELCACHE=0
export EOS_FUSE_CACHE=0

```

i hope that helps!
