Project

General

Profile

Actions

Bug #65635

closed
RS RS

Crimson seastore unit test random failure on AARCH64 (DEADLYSIGNAL by caused by a READ memory access)

Bug #65635: Crimson seastore unit test random failure on AARCH64 (DEADLYSIGNAL by caused by a READ memory access)

Added by Rongqi Sun over 2 years ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Seastore
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v19.3.0-5734-g20f7d47e86
Released In:
v20.2.0~1738
Upkeep Timestamp:
2025-11-01T01:18:39+00:00

Description

[ RUN ] omap_manager_test/omap_manager_test_t.force_leafnode_split_merge_fullandbalanced/0
INFO 2024-04-23 08:11:12,809 [shard 0:main] test - EphemeralTestState::tm_setup: begin with 1 devices ...
INFO 2024-04-23 08:11:12,809 [shard 0:main] seastore_device - Initing ephemeral segment manager with config ephemeral_config_t(size=1073741824, block_size=4096, segment_size=8388608)
INFO 2024-04-23 08:11:14,546 [shard 0:main] seastore_device - Mkfs ephemeral segment manager with device_config_t(major_dev=1, spec=device_spec(magic=43981, dtype=EPHEMERAL_MAIN, Dev(0)), meta=00000000-0000-0000-0000-000000000000, secondary())
INFO 2024-04-23 08:11:14,547 [shard 0:main] seastore_cache - Cache::Cache: created, lru_size=67108864
Reactor stalled for 183 ms on shard 0. Backtrace: 0x6392023 0xb797c63 0xb797183 0xb57f5f7 0xb579ba7 0xb579673 0xb57a007 0xb580a77 0x7db 0x6eede67 0xb1f5303 0xb1f51df 0xb1f5107 0xb1f4e7b 0xb1f4c6b 0xb1f4b23 0xb1f4617 0xb1f3b9f 0xb1f398f 0xb1f330b 0xb1f2daf 0xb1f25df 0xb1f2423 0xb444413 0xb42e3a3 0xb431477 0xb424a73 0x6de992f 0x6ddb4a7 0x6beb1cb 0x6ab2ac7 0x649e483 0x661eeeb 0x661ed6b 0x661ed03 0x661ec5f 0x661ebd3 0x66218e3 0x662173f 0x662150b 0x66212e7 0x66210af 0x6621007 0x6620d5f 0x6620b3b 0x6620667 0xb5a0d87 0xb5adc5b 0xb5b32c7 0xb5b150f 0xb32ecb7 0xb32c767 0xb32f473 0x68ca363 0x68ca167 0x68ca003 0x68c9c8f 0x68c9a6f 0x68c97d7 0x68c937f 0xdbc6b 0x7d5c7 0xe5edb
AddressSanitizer:DEADLYSIGNAL =================================================================
2278087ERROR: AddressSanitizer: SEGV on unknown address 0x000000000009 (pc 0xffffbd230848 bp 0xffffb54e0b00 sp 0xffffb54e0b00 T1)
2278087The signal is caused by a READ memory access.
2278087Hint: address points to the zero page.
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer: nested bug in the same thread, aborting.

https://jenkins.ceph.com/job/ceph-pull-requests-arm64/55534/consoleFull#-1246041688e840cee4-f4a4-4183-81dd-42855615f2c1


Files

console.zip (414 KB) console.zip Rongqi Sun, 05/08/2024 02:32 AM
clipboard-202407080936-m5ozf.png (15 KB) clipboard-202407080936-m5ozf.png Rongqi Sun, 07/08/2024 01:36 AM

Related issues 1 (0 open — 1 closed)

Related to crimson - Bug #65842: unittest-seastore (Failed) on arm64Duplicate

Actions

RS Updated by Rongqi Sun over 2 years ago Actions #2

Attach full make check log.

YC Updated by Yingxin Cheng over 2 years ago Actions #3

  • Subject changed from unittest-omap-manager (Failed) on AARCH64 to Crimson test random failure on AARCH64 (DEADLYSIGNAL by caused by a READ memory access)

Seems it can fail anytime regardless of the specific crimson test.

Examples:

[ RUN      ] transaction_manager_test/tm_single_device_test_t.random_writes_concurrent/0
...
INFO  2024-05-07 08:07:27,855 [shard 0:main] seastore_epm - BackgroundProcess::run_until_halt: finished
INFO  2024-05-07 08:07:27,860 [shard 0:main] seastore_epm - BackgroundProcess::run_until_halt: started...
INFO  2024-05-07 08:07:27,864 [shard 0:main] seastore_epm - BackgroundProcess::run_until_halt: finished
INFO  2024-05-07 08:07:27,865 [shard 0:main] seastore_epm - BackgroundProcess::run_until_halt: started...
AddressSanitizer:DEADLYSIGNAL
=================================================================
==2401438==ERROR: AddressSanitizer: SEGV on unknown address 0x0000000002b9 (pc 0xffff8e1fd4c8 bp 0xffff862efae0 sp 0xffff862efae0 T1)
==2401438==The signal is caused by a READ memory access.
==2401438==Hint: address points to the zero page.
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer: nested bug in the same thread, aborting.

[ RUN      ] seastore_test/seastore_test_t.fiemap_holes/3
INFO  2024-05-07 23:39:15,267 [shard 0:main] test - setup started...
INFO  2024-05-07 23:39:15,267 [shard 0:main] test - EphemeralTestState::tm_setup: begin with 1 devices ...
Reactor stalled for 98 ms on shard 0. Backtrace: 0x6ec6f23 0xce46ef3 0xce46413 0xcc2ff7f 0xcc2a52f 0xcc29ffb 0xcc2a98f 0xcc313ff 0x7db 0x993bb 0x6f07767 0x7ff59b7 0x80024bb 0x800103f 0x8000d7f 0x8000c43 0x800075b 0x80003ff 0x8041a33 0x80416f7 0x80410e3 0x8040ec3 0x8040a97 0xcc5170f 0xcc5e5e3 0xcc63c4f 0xcc61e97 0xc9e27bb 0xc9e026b 0xc9e2f77 0x75479e3 0x75477e7 0x7547683 0x754730f 0x75470ef 0x7546e57 0x75469ff 0xdbc6b 0x7d5c7 0xe5edb
INFO  2024-05-07 23:39:15,421 [shard 0:main] seastore_cache - Cache::Cache: created, lru_size=67108864
AddressSanitizer:DEADLYSIGNAL
=================================================================
==1743331==ERROR: AddressSanitizer: SEGV on unknown address 0x0001ceb99aa8 (pc 0xffffb81df8b0 bp 0xffffb03e05f0 sp 0xffffb03e05f0 T1)
==1743331==The signal is caused by a READ memory access.
AddressSanitizer:DEADLYSIGNAL
AddressSanitizer: nested bug in the same thread, aborting.

Need more clue to understand where caused the failure and why.

YC Updated by Yingxin Cheng over 2 years ago Actions #4

  • Related to Bug #65842: unittest-seastore (Failed) on arm64 added

RS Updated by Rongqi Sun over 2 years ago Actions #5

Yingxin Cheng wrote in #note-3:

Seems it can fail anytime regardless of the specific crimson test.

Examples:
[...]

[...]

Need more clue to understand where caused the failure and why.

Indeed, but all about seastore.

YC Updated by Yingxin Cheng over 2 years ago Actions #6

  • Subject changed from Crimson test random failure on AARCH64 (DEADLYSIGNAL by caused by a READ memory access) to Crimson seastore unit test random failure on AARCH64 (DEADLYSIGNAL by caused by a READ memory access)
  • Category set to Seastore

Indeed, but all about seastore.

Seems correct, revised the title and category.

RS Updated by Rongqi Sun over 2 years ago Actions #7

Yingxin Cheng wrote in #note-6:

Indeed, but all about seastore.

Seems correct, revised the title and category.

Thanks~ Not sure if reactor stall related?

YC Updated by Yingxin Cheng over 2 years ago Actions #8

Not sure if reactor stall related?

I think not, reactor stall is a warning from seastar if a continuation takes too long to finish without yielding, see https://github.com/scylladb/seastar/blob/master/doc/tutorial.md#breaking-up-long-running-computations

The current INFO log with the AddressSanitize failure doesn't seem helpful to root cause this issue.

RS Updated by Rongqi Sun over 2 years ago Actions #9

One more log like:

AddressSanitizer:DEADLYSIGNAL =================================================================
465171ERROR: AddressSanitizer: SEGV on unknown address 0x000000809ca0 (pc 0xffff9dcaf8e0 bp 0xffff95eeeaf0 sp 0xffff95eeeaf0 T1)
465171The signal is caused by a READ memory access.
<empty stack>

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV
Thread T1 created by T0 here:
#0 0xaaaaf0c0a840 in __interceptor_pthread_create (/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/build/bin/unittest-omap-manager+0x64da840) (BuildId: adcb113182975cb103974349e9e8c9293e80df6c)
#1 0xffff9de4abc0 in std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void ()()) (/lib/aarch64-linux-gnu/libstdc++.so.6+0xdabc0) (BuildId: 36d72a0e365b5efdbeb3415da0cd2006ec399b68)
#2 0xaaaaf11e28e4 in std::thread::thread<SeastarRunner::init(int, char
*)::'lambda'(), void>(SeastarRunner::init(int, char**)::'lambda'()&&) /usr/bin/../lib/gcc/aarch64-linux-gnu/11/../../../../include/c++/11/bits/std_thread.h:143:2
#3 0xaaaaf109a684 in SeastarRunner::init(int, char**) /home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/test/crimson/seastar_runner.h:41:14
#4 0xaaaaf108c06c in main /home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/test/crimson/gtest_seastar.cc:41:47
#5 0xffff9db173f8 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#6 0xffff9db174c8 in __libc_start_main csu/../csu/libc-start.c:392:3
#7 0xaaaaf0baa3ec in _start (/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/build/bin/unittest-omap-manager+0x647a3ec) (BuildId: adcb113182975cb103974349e9e8c9293e80df6c)

465171ABORTING

Ref: https://jenkins.ceph.com/job/ceph-pull-requests-arm64/56167/consoleFull#-6031411546733401c-e9d0-4737-9832-6594c5da0afa

MB Updated by Matan Breizman over 2 years ago · Edited Actions #11

  • Status changed from New to Need More Info

Looking at recent arm64 make check runs:

Passed - https://jenkins.ceph.com/job/ceph-pull-requests-arm64/58524/
https://jenkins.ceph.com/job/ceph-pull-requests-arm64/58584/

Failed (unittest-object-data-handler) - https://jenkins.ceph.com/job/ceph-pull-requests-arm64/58593/
(unittest-staged-fltree) - https://jenkins.ceph.com/job/ceph-pull-requests-arm64/58582/

284/295 Test #260: unittest-object-data-handler ..............***Failed  792.19 sec
WARNING: debug mode. Not for benchmarking or production
WARN  2024-06-26 01:17:33,568 seastar - Seastar compiled with default allocator, --memory option won't take effect
INFO  2024-06-26 01:17:33,571 seastar - Reactor backend: linux-aio
INFO  2024-06-26 01:17:33,572 seastar - Perf-based stall detector creation failed (EACCESS), try setting /proc/sys/kernel/perf_event_paranoid to 1 or less to enable kernel backtraces: falling back to posix timer.
260/295 Test #268: unittest-staged-fltree ....................***Failed   77.64 sec
WARNING: debug mode. Not for benchmarking or production
WARN  2024-06-25 20:34:10,812 seastar - Seastar compiled with default allocator, --memory option won't take effect
INFO  2024-06-25 20:34:10,818 seastar - Reactor backend: linux-aio
INFO  2024-06-25 20:34:10,820 seastar - Perf-based stall detector creation failed (EACCESS), try setting /proc/sys/kernel/perf_event_paranoid to 1 or less to enable kernel backtraces: falling back to posix timer.

Does the issue described in tracker still occurs?

Note: attaching https://jenkins.ceph.com/job/ceph-pull-requests-arm64/buildTimeTrend

Found a recent instance of it (with Yingxin's help):
https://jenkins.ceph.com/job/ceph-pull-requests-arm64/58564/console

RS Updated by Rongqi Sun over 2 years ago · Edited Actions #12

From Jenkins dashboard https://jenkins.ceph.com/job/ceph-pull-requests-arm64/buildTimeTrend, crimson related tests are still sometimes failed and I can't firgure out why, do you mean it is related with Perf-based stall detector creation failed (EACCESS)?

MB Updated by Matan Breizman over 2 years ago Actions #13

Rongqi Sun wrote in #note-12:

From Jenkins dashboard https://jenkins.ceph.com/job/ceph-pull-requests-arm64/buildTimeTrend, crimson related tests are still sometimes failed and I can't firgure out why, do you mean it is related with Perf-based stall detector creation failed (EACCESS)?

I don't think so, it seems like a warning only. IIUC, you have access to an ARM machine. Are you able to run make check completely ? Since this may be a side effect of a different test than the one failing so running a single one may miss it.

RS Updated by Rongqi Sun over 2 years ago Actions #14

Yeh, that doesn't matter. Such as there is a machine named omani001 in the Sepia lab which is used to run arm64 make check, you know, all make checks are triggered by Jenkins mechanism, so it is hard to completely re-run make check in the local omani001 server as Jenkins did. I always did

export CHECK_MAKEOPTS=-j32 BUILD_MAKEOPTS=-j32 WITH_SEASTAR=true 
timeout 3h ./run-make-check.sh 2>&1 | tee makecheck.log

Might miss some environment variables or else.

RS Updated by Rongqi Sun over 2 years ago Actions #15

INFO  2024-07-02 13:55:40,204 [shard 0:main] test - run_async started...
==984293==WARNING: ASan doesn't fully support makecontext/swapcontext functions and may produce false positives in some cases!
/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/crimson/os/seastore/lba_manager/btree/lba_btree_node.h:175:20: runtime error: downcast of misaligned address 0x000000000001 for type 'crimson::os::seastore::LogicalCachedExtent', which requires 8 byte alignment
0x000000000001: 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/lba_btree_node.h:175:20 in 
/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/crimson/os/seastore/lba_manager/btree/lba_btree_node.h:178:30: runtime error: upcast of misaligned address 0x000000000001 for type 'crimson::os::seastore::LogicalCachedExtent', which requires 8 byte alignment
0x000000000001: 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/lba_btree_node.h:178:30 in 
INFO  2024-07-02 13:55:40,331 [shard 0:main] seastore_epm - BackgroundProcess::run_until_halt: started...
INFO  2024-07-02 13:55:40,331 [shard 0:main] seastore_epm - BackgroundProcess::run_until_halt: finished

Is it related? @Matan Breizman

MB Updated by Matan Breizman over 2 years ago Actions #16

Rongqi Sun wrote in #note-15:

[...]

Is it related? @Matan Breizman

It's hard to tell until we are able to reproduce this locally. btw, in your local attempts, was ASAN on while compiling?
Perhaps we will need a separate tracker for the new issue since it looks different from first glance.

RS Updated by Rongqi Sun over 2 years ago Actions #17

Matan Breizman wrote in #note-16:

Rongqi Sun wrote in #note-15:

[...]

Is it related? @Matan Breizman

It's hard to tell until we are able to reproduce this locally. btw, in your local attempts, was ASAN on while compiling?
Perhaps we will need a separate tracker for the new issue since it looks different from first glance.

I think crimson is using seastar with its debug mode, so ASAN is default ON.

MB Updated by Matan Breizman over 2 years ago Actions #18

I think crimson is using seastar with its debug mode, so ASAN is default ON.

IIRC, ASAN is not turned on by default on debug build. DWITH_ASAN must be set.
Moreover, a user mentioned that he disabled ASLR and didn't get the AddressSanitizer:DEADLYSIGNAL anymore.
Did you try building with ASAN? You can check with: 'cmake -L | grep ASAN'

RS Updated by Rongqi Sun over 2 years ago · Edited Actions #19

Matan Breizman wrote in #note-18:

I think crimson is using seastar with its debug mode, so ASAN is default ON.

IIRC, ASAN is not turned on by default on debug build. DWITH_ASAN must be set.
Moreover, a user mentioned that he disabled ASLR and didn't get the AddressSanitizer:DEADLYSIGNAL anymore.
Did you try building with ASAN? You can check with: 'cmake -L | grep ASAN'

As Ceph, yes, for sure ASAN is not turned on by default, BTW ASAN can't be turned on because it would cause compiled issues and we are fixing them, see https://github.com/ceph/ceph/pull/56537.

What I have being talking is about Crimson module, seastar submodule. See https://github.com/scylladb/seastar

This specific issue is only related with Crimson, no need to turn on 'global ASAN'.

Could you please add more reference of ASLR disabled part, link or something?

YC Updated by Yingxin Cheng over 2 years ago Actions #20

Agree with Rongqi, also refer to Kefu's comment: https://github.com/ceph/ceph/pull/56157#issuecomment-1999686834

Quote "AFAICT, crimson should already be using ASan, as seastar uses ASan when it is built in Debug mode."

RS Updated by Rongqi Sun about 2 years ago Actions #21

  • Status changed from Need More Info to Fix Under Review
  • Assignee set to Rongqi Sun
  • Pull request ID set to 60276

RS Updated by Rongqi Sun about 2 years ago Actions #22

  • Status changed from Fix Under Review to Resolved

UB Updated by Upkeep Bot over 1 year ago Actions #23

  • Merge Commit set to 20f7d47e86d18d97d1aa96c512d93558ebd24220
  • Fixed In set to v19.3.0-5734-g20f7d47e86d
  • Upkeep Timestamp set to 2025-07-11T12:49:34+00:00

UB Updated by Upkeep Bot over 1 year ago Actions #24

  • Fixed In changed from v19.3.0-5734-g20f7d47e86d to v19.3.0-5734-g20f7d47e86
  • Upkeep Timestamp changed from 2025-07-11T12:49:34+00:00 to 2025-07-14T23:09:21+00:00

UB Updated by Upkeep Bot about 1 year ago Actions #25

  • Released In set to v20.2.0~1738
  • Upkeep Timestamp changed from 2025-07-14T23:09:21+00:00 to 2025-11-01T01:18:39+00:00
Actions

Also available in: PDF Atom