autotier icon indicating copy to clipboard operation
autotier copied to clipboard

[BUG] Periodic Segfaults

Open nsadlo opened this issue 2 years ago • 1 comments

Describe the bug While using the mount to read and write files there will be a segfault. The more heavy IO load the more likely it appears to occur.

To Reproduce

  • Contents of /etc/autotier.conf
# autotier config
[Global]                       # global settings
Log Level = 1                  # 0 = none, 1 = normal, 2 = debug
Tier Period = 1000             # number of seconds between file move batches
Copy Buffer Size = 1 MiB       # size of buffer for moving files between tiers

[SSD Tier]                       # tier name (can be anything)
Path = /SSD_TIER               # full path to tier storage pool
Quota = 80 %                   # absolute or % usage to keep tier under
# Quota format: x ( % | [K..T][i]B )
# Example: Quota = 5.3 TiB

[HDD Tier]
Path = /HDD_TIER
Quota = 100 %
  • Command/fstab entry used to mount

/usr/bin/autotierfs /mnt/STORAGE fuse allow_other,default_permissions 0 0

  • Action that caused error

Downloading games from Steam and using FUSE mount as library location. Also copying music collection over as a test.

Expected behavior autotierfs would not crash

Error Output If applicable, include any error messages shown, including output of journalctl | grep autotierfs | grep -v "Tiering complete".

There was no output from that command. But the following is what appears in /var/log/kern.log

Apr 30 21:27:50 HOSTNAME kernel: [13594.549530] autotierfs[615276]: segfault at 7f441c2e9b8b ip 000055c145819d38 sp 00007f441e7fb770 error 4 in autotierfs[55c1457a6000+468000] Apr 30 21:27:50 HOSTNAME kernel: [13594.549547] Code: 4e 08 49 89 c0 31 d2 48 63 c1 48 f7 f7 49 39 d2 0f 85 0e 05 00 00 48 89 f0 41 39 c9 75 d5 49 8b 00 48 85 c0 0f 84 fa 04 00 00 <4c> 8b 68 10 4c 8d 64 24 60 4c 8d 74 24 50 4c 89 64 24 50 4d 85 ed Apr 30 21:53:21 HOSTNAME kernel: [15125.653021] autotierfs[807976]: segfault at 7facac111 ip 000055ec053a6e1e sp 00007fac1dffa770 error 4 in autotierfs[55ec05333000+468000] Apr 30 21:53:21 HOSTNAME kernel: [15125.653033] Code: 8b 48 08 49 89 c2 31 d2 48 63 c1 48 f7 f6 49 39 d1 0f 85 16 04 00 00 4c 89 c0 39 cf 75 d5 49 8b 02 48 85 c0 0f 84 03 04 00 00 <48> 8b 40 10 48 89 44 24 08 e8 14 5c 00 00 49 89 c7 48 83 f8 ff 0f

System (please complete the following information):

  • OS: [e.g. Ubuntu 20.04, Arch] Kubuntu 22.04
  • Fuse library version [apt list --installed | grep fuse] exfat-fuse/jammy,now 1.3.0+git20220115-2 amd64 [installed] fuse3/jammy,now 3.10.5-1build1 amd64 [installed,automatic] kio-fuse/jammy,now 5.0.1-1 amd64 [installed,automatic] libfuse2/jammy,now 2.9.9-5ubuntu3 amd64 [installed,automatic] libfuse3-3/jammy,now 3.10.5-1build1 amd64 [installed] libfuse3-dev/jammy,now 3.10.5-1build1 amd64 [installed] libsquashfuse0/jammy,now 0.1.103-3 amd64 [installed,automatic]
  • Version [e.g. v1.1.3] latest github build 1.2.0-1

Additional context My Tiers are zpools, but I do not think that should matter as I believe the underlying FS does not matter.

nsadlo avatar May 01 '22 12:05 nsadlo

Nevermind, close this out as it appears the issue was building the facebook rocksdb from the latest instead of the referenced version

nsadlo avatar Jun 19 '22 21:06 nsadlo