[OpenAFS] Git throwing bus error when pack files not entirely cached

Ciprian Dorin Craciun ciprian.craciun@gmail.com
Wed, 22 Apr 2020 15:34:01 +0300

Sorry for reviving this old thread, but this happened to me also.

My details:
* the same computer is used as both server and client;
* openSUSE 15.0 as distribution;
* Linux 4.12.14-lp150.12.79-default x86_64
* OpenAFS 1.8.0-lp150.2.2.1 (both client and server packages);
* OpenAFS `kmp-default` 1.8.0_k4.12.14_lp150.12.13-lp150.2.2.1;
* Git 2.16.4;
* large Git repository:
  * ~30 GiB;
  * most objects are packed;
  * largest pack is ~2.5 GiB;
  * a few are 200-400 MiB;
  * most are under 128 MiB;
* contents of `/etc/openafs/cacheinfo`:
* `/var/cache/openafs` is on Ext4 and still has a lot of space free;
* nothing useful in neither `dmesg` or logs;
* `afsd` is started as:
/usr/sbin/afsd -blocks 33554432 -chunksize 17 -files 524288
-files_per_subdir 4096 -dcache 524288 -stat 524288 -volumes 4096
-splitcache 90/10 -afsdb -dynroot-sparse -fakestat-all -inumcalc md5
-backuptree -daemons 8 -rxmaxfrags 8 -rxmaxmtu 1400 -rxpck 4096

How to provoke it:  run one of the following:

git fsck --root --tags --no-reflogs --full --connectivity-only
--unreachable --dangling --name-objects

git fsck --root --tags --no-reflogs --full --strict --unreachable
--dangling --name-objects

At random times I get:
Bus error (core dumped)

If one wants to try this and doesn't have a large enough repository, I
would recommend:


I haven't yet tried to preload the files.

Hope it helps find the issue,