Actions
Bug #60254
opencrash: virtual int KernelDevice::read(uint64_t, uint64_t, ceph::bufferlist*, IOContext*, bool): assert((uint64_t)r == len)
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
% Done:
0%
Source:
Telemetry
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
29e99879e2af2689ad1e24c913cd3cb08374744933844a951e97b5e74d305600
8ed5bec0c88c660d51a9f319313525402fa89d1773b59e0e69f104b2a0f5482a
Crash signature (v2):
Description
Assert condition: (uint64_t)r == len
Assert function: virtual int KernelDevice::read(uint64_t, uint64_t, ceph::bufferlist*, IOContext*, bool)
Sanitized backtrace:
KernelDevice::read(unsigned long, unsigned long, ceph::buffer::list*, IOContext*, bool) BlueFS::_read(BlueFS::FileReader*, unsigned long, unsigned long, ceph::buffer::list*, char*) BlueRocksRandomAccessFile::Prefetch(unsigned long, unsigned long) rocksdb::LegacyRandomAccessFileWrapper::Prefetch(unsigned long, unsigned long, rocksdb::IOOptions const&, rocksdb::IODebugContext*) rocksdb::BlockPrefetcher::PrefetchIfNeeded(rocksdb::BlockBasedTable::Rep const*, rocksdb::BlockHandle const&, unsigned long, bool) rocksdb::BlockBasedTableIterator::InitDataBlock() rocksdb::BlockBasedTableIterator::FindBlockForward() rocksdb::BlockBasedTableIterator::Next() rocksdb::BlockBasedTableIterator::NextAndGetResult(rocksdb::IterateResult*) rocksdb::MergingIterator::Next() rocksdb::MergingIterator::NextAndGetResult(rocksdb::IterateResult*) rocksdb::DBIter::Next() ShardMergeIteratorImpl::next() BlueStore::read_allocation_from_onodes(SimpleBitmap*, BlueStore::read_alloc_stats_t&) BlueStore::reconstruct_allocations(SimpleBitmap*, BlueStore::read_alloc_stats_t&) BlueStore::read_allocation_from_drive_on_startup() BlueStore::_init_alloc(std::map<unsigned long, unsigned long, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, unsigned long> > >*) BlueStore::_open_db_and_around(bool, bool) BlueStore::_mount() OSD::init()
Crash dump sample:
{ "archived": "2023-04-30 11:35:27.121286", "assert_condition": "(uint64_t)r == len", "assert_file": "blk/kernel/KernelDevice.cc", "assert_func": "virtual int KernelDevice::read(uint64_t, uint64_t, ceph::bufferlist*, IOContext*, bool)", "assert_line": 1255, "assert_msg": "blk/kernel/KernelDevice.cc: In function 'virtual int KernelDevice::read(uint64_t, uint64_t, ceph::bufferlist*, IOContext*, bool)' thread 7f2d9e03f540 time 2023-04-30T04:07:24.190848+0000\nblk/kernel/KernelDevice.cc: 1255: FAILED ceph_assert((uint64_t)r == len)", "assert_thread_name": "ceph-osd", "backtrace": [ "/lib64/libpthread.so.0(+0x12cf0) [0x7f2d9c240cf0]", "gsignal()", "abort()", "(ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x18f) [0x5583c9648729]", "/usr/bin/ceph-osd(+0x598895) [0x5583c9648895]", "(KernelDevice::read(unsigned long, unsigned long, ceph::buffer::v15_2_0::list*, IOContext*, bool)+0x9d7) [0x5583ca2f1a17]", "(BlueFS::_read(BlueFS::FileReader*, unsigned long, unsigned long, ceph::buffer::v15_2_0::list*, char*)+0x5e2) [0x5583c9e11e12]", "(BlueRocksRandomAccessFile::Prefetch(unsigned long, unsigned long)+0x1f) [0x5583c9e38d9f]", "(rocksdb::LegacyRandomAccessFileWrapper::Prefetch(unsigned long, unsigned long, rocksdb::IOOptions const&, rocksdb::IODebugContext*)+0x22) [0x5583ca3688b2]", "(rocksdb::BlockPrefetcher::PrefetchIfNeeded(rocksdb::BlockBasedTable::Rep const*, rocksdb::BlockHandle const&, unsigned long, bool)+0x1a5) [0x5583ca5e53f5]", "(rocksdb::BlockBasedTableIterator::InitDataBlock()+0xca) [0x5583ca5e1d7a]", "(rocksdb::BlockBasedTableIterator::FindBlockForward()+0x21d) [0x5583ca5e2fad]", "(rocksdb::BlockBasedTableIterator::Next()+0x3a) [0x5583ca5e317a]", "(rocksdb::BlockBasedTableIterator::NextAndGetResult(rocksdb::IterateResult*)+0x1a) [0x5583ca5e31ba]", "/usr/bin/ceph-osd(+0x138ec21) [0x5583ca43ec21]", "(rocksdb::MergingIterator::Next()+0x32) [0x5583ca518862]", "(rocksdb::MergingIterator::NextAndGetResult(rocksdb::IterateResult*)+0x13) [0x5583ca516ba3]", "(rocksdb::DBIter::Next()+0x286) [0x5583ca3c9786]", "(ShardMergeIteratorImpl::next()+0x65) [0x5583ca329bd5]", "(BlueStore::read_allocation_from_onodes(SimpleBitmap*, BlueStore::read_alloc_stats_t&)+0x1997) [0x5583c9cfd737]", "(BlueStore::reconstruct_allocations(SimpleBitmap*, BlueStore::read_alloc_stats_t&)+0x5a) [0x5583c9cfe4da]", "(BlueStore::read_allocation_from_drive_on_startup()+0x105) [0x5583c9d2ef85]", "(BlueStore::_init_alloc(std::map<unsigned long, unsigned long, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, unsigned long> > >*)+0xb44) [0x5583c9d2fd54]", "(BlueStore::_open_db_and_around(bool, bool)+0x4d7) [0x5583c9d5d6b7]", "(BlueStore::_mount()+0x396) [0x5583c9d605d6]", "(OSD::init()+0x556) [0x5583c9787eb6]", "main()", "__libc_start_main()", "_start()" ], "ceph_version": "17.2.6", "crash_id": "2023-04-30T04:07:24.220070Z_a44b3e76-e4d0-4487-a2f0-6268f9c5f2e4", "entity_name": "osd.534287c4f29c03499a8cadd9f29bbdaa0ab67fa1", "os_id": "centos", "os_name": "CentOS Stream", "os_version": "8", "os_version_id": "8", "process_name": "ceph-osd", "stack_sig": "8ed5bec0c88c660d51a9f319313525402fa89d1773b59e0e69f104b2a0f5482a", "timestamp": "2023-04-30T04:07:24.220070Z", "utsname_machine": "x86_64", "utsname_release": "6.2.11-300.fc38.x86_64", "utsname_sysname": "Linux", "utsname_version": "#1 SMP PREEMPT_DYNAMIC Thu Apr 13 20:27:09 UTC 2023" }
Actions