Bug #70202
open[arm64] runtime error: downcast of misaligned address
0%
Description
/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.h:307:2: runtime error: downcast of misaligned address 0xfffffffffffffe49 for type 'LogicalChildNode', which requires 8 byte alignment
0xfffffffffffffe49: note: pointer points here
<memory cannot be printed>
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.h:307:2
/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.cc:446:8: runtime error: upcast of misaligned address 0xfffffffffffffe49 for type 'crimson::os::seastore::LogicalChildNode', which requires 8 byte alignment
0xfffffffffffffe49: note: pointer points here
<memory cannot be printed>
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.cc:446:8
/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.cc:450:29: runtime error: upcast of misaligned address 0xfffffffffffffe49 for type 'crimson::os::seastore::LogicalChildNode', which requires 8 byte alignment
0xfffffffffffffe49: note: pointer points here
<memory cannot be printed>
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.cc:450:29
INFO 2025-02-27 03:55:53,562 [shard 0:main] seastore_epm - BackgroundProcess::run_until_halt: started...
INFO 2025-02-27 03:55:53,563 [shard 0:main] seastore_epm - BackgroundProcess::run_until_halt: finished
INFO 2025-02-27 03:55:53,766 [shard 0:main] test - EphemeralTestState::restart_fut: begin ...
INFO 2025-02-27 03:55:53,767 [shard 0:main] seastore_tm - TransactionManager::close: ...
RF Updated by Ronen Friedman almost 2 years ago
@Matan Breizman - can you take a look? it might be what got all ARM64 CI stuck.
MB Updated by Matan Breizman almost 2 years ago
- Project changed from Ceph to crimson
- Subject changed from crimson: CI tests failure due to 'runtime error: downcast of misaligned address' to [arm64] runtime error: downcast of misaligned address
We had past instances of this, see:
https://tracker.ceph.com/issues/65635#note-15
This looks to be introduced in https://github.com/ceph/ceph/pull/61347/commits/90101c75f258adc0d7e214a6a60e9ecd8d533c16.
I'm not sure that this is what causes "unittest-transaction-manager" to timeout but it's highly possible:
The following tests FAILED:
263 - unittest-transaction-manager (Timeout)
Until this is resolved, I'll try to disable this test on arm64 to help with unblocking arm64 CI tests - https://github.com/ceph/ceph/pull/62032.
Note: This can be reproduced locally on arm64 machines when starting a local cluster.
MB Updated by Matan Breizman almost 2 years ago
- Related to Bug #70254: [arm64] Re-enable Seastore unittests added
XX Updated by Xuehan Xu almost 2 years ago · Edited
I think this could be caused by the `reserved_ptr` being `0x1`. Maybe `0x8` would fix the issue? Maybe I shouldn't be using an integer as an invalid pointer in the first place.
XX Updated by Xuehan Xu almost 2 years ago
- Pull request ID set to 62084
MB Updated by Matan Breizman over 1 year ago · Edited
- Category set to Seastore
- Status changed from New to In Progress
- Assignee set to Matan Breizman
The errors are gone with: 62084
I'll keep this one open to verify that we didn't hide any actual bugs (due to accessing the reserved ptrs)
Note: this was reproduced with x86_64 local cluster when trying to boot:
kernel callstack: ceph/src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.h:295:2: runtime error: pointer index expression with base 0x000000000001 overflowed to 0xfffffffffffffe49 ceph/src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.cc:444:6: runtime error: member access within misaligned address 0xfffffffffffffe49 for type 'struct LogicalChild Node', which requires 8 byte alignment 0xfffffffffffffe49: note: pointer points here <memory cannot be printed> ceph/src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.cc:444:6: runtime error: pointer index expression with base 0xfffffffffffffe49 overflowed to 0x000000000001 ceph/src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.cc:450:28: runtime error: member access within misaligned address 0xfffffffffffffe49 for type 'struct LogicalChil dNode', which requires 8 byte alignment 0xfffffffffffffe49: note: pointer points here <memory cannot be printed> ceph/src/crimson/os/seastore/lba_manager/btree/btree_lba_manager.cc:450:28: runtime error: pointer index expression with base 0xfffffffffffffe49 overflowed to 0x000000000001
XX Updated by Xuehan Xu over 1 year ago
- Related to Bug #71794: SeaStore: "upcast of misligned address" added