Hi,

 

I am currently trying to implement an option to utilize Ceph’s Bluestore as an backend for the storage framework JULEA, but I am currently stuck on an error when I’m using ObjectStore::create to initialize the ObjectStore.

I’m initializing Ceph beforehand using the global_init, but on calling of ObjectStore::create(https://github.com/JCoym/julea/blob/3866a3cc2edfda6a09ee84808c7ea5c4195d2aa6/bluestore/julea_bluestore.cc#L61) I get a SegFault from a mutex function of Ceph.

 

I have currently no idea what causes this error, so I would be glad if someone has an idea what I’m missing.

 

Thanks,

Johannes

 

 

*** Caught signal (Segmentation fault) **  in thread 7fcaf900e740 thread_name:bluestore_test  ceph version 15.1.0-1422-g3064f20220

(3064f2022029fb2a63802316d8c97dfdae3b2337) octopus (rc)

1: (()+0x12e4f5e) [0x7fcb05902f5e]

2: (()+0x14b20) [0x7fcaf9f52b20]

3: (ceph::mutex_debug_detail::mutex_debugging_base::_enable_lockdep()

const+0xc) [0x7fcafb3e59a2]

4:

(ceph::mutex_debug_detail::mutex_debug_impl<false>::enable_lockdep(bool

) const+0x2a) [0x7fcafb3ea302]

5:

(ceph::mutex_debug_detail::mutex_debug_impl<false>::lock(bool)+0x23)

[0x7fcafb3e85e5]

6: (std::lock_guard<ceph::mutex_debug_detail::mutex_debug_impl<false>

>::lock_guard(ceph::mutex_debug_detail::mutex_debug_impl<false>&)+0x2f)

[0x7fcafb406173]

7: (PerfCountersCollection::add(PerfCounters*)+0x37) [0x7fcafb6c8e93]

8: (Throttle::Throttle(CephContext*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long,

bool)+0x4f6) [0x7fcafb4dfe56]

9:

(BlueStore::BlueStoreThrottle::BlueStoreThrottle(CephContext*)+0xf3)

[0x7fcb053dfcb1]

10: (BlueStore::BlueStore(CephContext*,

std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long)+0xc0) [0x7fcb0534e3de]

11: (BlueStore::BlueStore(CephContext*,

std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)+0x2d) [0x7fcb0534e31b]

12: (ObjectStore::create(CephContext*,

std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned int)+0x100) [0x7fcb051b030a]

13: (julea_bluestore_init()+0x138) [0x7fcb051a4cb4]

14: ./bluestore_test() [0x40851e]

15: (__libc_start_main()+0xf3) [0x7fcaf932e1a3]

16: ./bluestore_test() [0x40843e]