RocksDB crashes with SIGILL in CI
Tests fail in the CI pipelines due to the following error:
root@c4ee3b8c2718:/builds/gitlab/hpc/gekkofs/gkfs/build/tests/integration# gdb --args /builds/gitlab/hpc/gekkofs/gkfs/install/bin/gkfs_daemon --mountdir /builds/gitlab/hpc/gekkofs/gkfs/build/tests/run/popen-gw3/test_statx0/mnt --rootdir /builds/gitlab/hpc/gekkofs/gkfs/build/tests/run/popen-gw3/test_statx0/root -l lo:3226
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /builds/gitlab/hpc/gekkofs/gkfs/install/bin/gkfs_daemon...done.
(gdb) r
Starting program: /builds/gitlab/hpc/gekkofs/gkfs/install/bin/gkfs_daemon --mountdir /builds/gitlab/hpc/gekkofs/gkfs/build/tests/run/popen-gw3/test_statx0/mnt --rootdir /builds/gitlab/hpc/gekkofs/gkfs/build/tests/run/popen-gw3/test_statx0/root -l lo:3226
warning: Error disabling address space randomization: Operation not permitted
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGILL, Illegal instruction.
0x0000555ac5958a6c in rocksdb::LRUCache::LRUCache (this=0x555ac6ddd9d0, capacity=8388608, num_shard_bits=4, strict_capacity_limit=false, high_pri_pool_ratio=0, allocator=..., use_adaptive_mutex=<optimized out>) at /usr/include/c++/8/ext/atomicity.h:82
82 return __exchange_and_add(__mem, __val);
(gdb) bt
#0 0x0000555ac5958a6c in rocksdb::LRUCache::LRUCache (this=0x555ac6ddd9d0, capacity=8388608, num_shard_bits=4, strict_capacity_limit=false, high_pri_pool_ratio=0, allocator=..., use_adaptive_mutex=<optimized out>)
at /usr/include/c++/8/ext/atomicity.h:82
#1 0x0000555ac5958c5b in __gnu_cxx::new_allocator<rocksdb::LRUCache>::construct<rocksdb::LRUCache, unsigned long&, int&, bool&, double&, std::shared_ptr<rocksdb::MemoryAllocator>, bool&> (__p=0x555ac6ddd9d0, this=<optimized out>)
at /usr/include/c++/8/new:169
#2 std::allocator_traits<std::allocator<rocksdb::LRUCache> >::construct<rocksdb::LRUCache, unsigned long&, int&, bool&, double&, std::shared_ptr<rocksdb::MemoryAllocator>, bool&> (__p=0x555ac6ddd9d0, __a=...)
at /usr/include/c++/8/bits/alloc_traits.h:475
#3 std::_Sp_counted_ptr_inplace<rocksdb::LRUCache, std::allocator<rocksdb::LRUCache>, (__gnu_cxx::_Lock_policy)2>::_Sp_counted_ptr_inplace<unsigned long&, int&, bool&, double&, std::shared_ptr<rocksdb::MemoryAllocator>, bool&> (__a=...,
this=0x555ac6ddd9c0) at /usr/include/c++/8/bits/shared_ptr_base.h:545
#4 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<rocksdb::LRUCache, std::allocator<rocksdb::LRUCache>, unsigned long&, int&, bool&, double&, std::shared_ptr<rocksdb::MemoryAllocator>, bool&> (__a=..., __p=<optimized out>,
this=<optimized out>) at /usr/include/c++/8/bits/shared_ptr_base.h:677
#5 std::__shared_ptr<rocksdb::LRUCache, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<rocksdb::LRUCache>, unsigned long&, int&, bool&, double&, std::shared_ptr<rocksdb::MemoryAllocator>, bool&> (__tag=..., this=<optimized out>)
at /usr/include/c++/8/bits/shared_ptr_base.h:1342
#6 std::shared_ptr<rocksdb::LRUCache>::shared_ptr<std::allocator<rocksdb::LRUCache>, unsigned long&, int&, bool&, double&, std::shared_ptr<rocksdb::MemoryAllocator>, bool&> (__tag=..., this=<optimized out>) at /usr/include/c++/8/bits/shared_ptr.h:359
#7 std::allocate_shared<rocksdb::LRUCache, std::allocator<rocksdb::LRUCache>, unsigned long&, int&, bool&, double&, std::shared_ptr<rocksdb::MemoryAllocator>, bool&> (__a=...) at /usr/include/c++/8/bits/shared_ptr.h:706
#8 std::make_shared<rocksdb::LRUCache, unsigned long&, int&, bool&, double&, std::shared_ptr<rocksdb::MemoryAllocator>, bool&> () at /usr/include/c++/8/bits/shared_ptr.h:722
#9 rocksdb::NewLRUCache (capacity=capacity@entry=8388608, num_shard_bits=4, num_shard_bits@entry=-1, strict_capacity_limit=strict_capacity_limit@entry=false, high_pri_pool_ratio=high_pri_pool_ratio@entry=0,
memory_allocator=std::shared_ptr<rocksdb::MemoryAllocator> (empty) = {...}, use_adaptive_mutex=use_adaptive_mutex@entry=false) at cache/lru_cache.cc:566
#10 0x0000555ac58e8af8 in rocksdb::BlockBasedTableFactory::BlockBasedTableFactory (this=0x555ac6ddd7d0, _table_options=...) at /usr/include/c++/8/bits/shared_ptr_base.h:614
#11 0x0000555ac58cec94 in rocksdb::ColumnFamilyOptions::ColumnFamilyOptions (this=0x555ac5da8c80 <rocksdb::OptionsHelper::dummy_cf_options>) at /usr/include/c++/8/bits/shared_ptr_base.h:1116
#12 0x0000555ac56c9986 in __static_initialization_and_destruction_0 (__priority=65535, __initialize_p=1) at /usr/include/c++/8/ext/new_allocator.h:86
#13 0x0000555ac5a918f5 in __libc_csu_init ()
#14 0x00007ff3dc15b02a in __libc_start_main (main=0x555ac56ef5d0 <main(int, char const**)>, argc=7, argv=0x7ffe303a9718, init=0x555ac5a918b0 <__libc_csu_init>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe303a9708)
at ../csu/libc-start.c:264
#15 0x0000555ac56e10ea in _start () at options/options.cc:620