Project

General

Profile

Actions

Bug #70202

open
RF MB

[arm64] runtime error: downcast of misaligned address

Bug #70202: [arm64] runtime error: downcast of misaligned address

Added by Ronen Friedman almost 2 years ago. Updated over 1 year ago.

Status:
In Progress
Priority:
Normal
Category:
Seastore
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

Description

https://jenkins.ceph.com/job/ceph-pull-requests-arm64/69010/consoleFull#-17554798182a811ea2-3e7b-466b-84b4-d13df7e35809

/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: ...


Related issues 2 (0 open — 2 closed)

Related to crimson - Bug #70254: [arm64] Re-enable Seastore unittestsResolvedChanyoung Park

Actions
Related to crimson - Bug #71794: SeaStore: "upcast of misligned address"ResolvedXuehan Xu

Actions

RF Updated by Ronen Friedman almost 2 years ago Actions #1

@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 Actions #2

  • 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 Actions #3

  • Related to Bug #70254: [arm64] Re-enable Seastore unittests added

XX Updated by Xuehan Xu almost 2 years ago · Edited Actions #4

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 Actions #5

  • Pull request ID set to 62084

MB Updated by Matan Breizman over 1 year ago · Edited Actions #6

  • 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 Actions #7

  • Related to Bug #71794: SeaStore: "upcast of misligned address" added
Actions

Also available in: PDF Atom