Bug #59335
closedFound coredumps on smithi related to sqlite3
0%
Description
/a/yuriw-2023-03-28_22:43:59-rados-wip-yuri11-testing-2023-03-28-0950-distro-default-smithi/7223995
2023-03-29T04:48:18.349 DEBUG:teuthology.run_tasks:Unwinding manager internal.sudo
2023-03-29T04:48:18.361 INFO:teuthology.task.internal:Restoring /etc/sudoers...
2023-03-29T04:48:18.361 DEBUG:teuthology.orchestra.run.smithi052:> sudo mv -f /etc/sudoers.orig.teuthology /etc/sudoers
2023-03-29T04:48:18.373 DEBUG:teuthology.orchestra.run.smithi110:> sudo mv -f /etc/sudoers.orig.teuthology /etc/sudoers
2023-03-29T04:48:18.384 DEBUG:teuthology.run_tasks:Unwinding manager internal.coredump
2023-03-29T04:48:18.403 DEBUG:teuthology.orchestra.run.smithi052:> sudo sysctl -w kernel.core_pattern=core && sudo bash -c 'for f in `find /home/ubuntu/cephtest/archive/coredump -type f`; do file $f | grep -q systemd-sysusers && rm $f || true ; done' && rmdir --ignore-fail-on-non-empty -- /home/ubuntu/cephtest/archive/coredump
2023-03-29T04:48:18.415 DEBUG:teuthology.orchestra.run.smithi110:> sudo sysctl -w kernel.core_pattern=core && sudo bash -c 'for f in `find /home/ubuntu/cephtest/archive/coredump -type f`; do file $f | grep -q systemd-sysusers && rm $f || true ; done' && rmdir --ignore-fail-on-non-empty -- /home/ubuntu/cephtest/archive/coredump
2023-03-29T04:48:18.423 INFO:teuthology.orchestra.run.smithi052.stdout:kernel.core_pattern = core
2023-03-29T04:48:18.436 INFO:teuthology.orchestra.run.smithi110.stdout:kernel.core_pattern = core
2023-03-29T04:48:18.467 DEBUG:teuthology.orchestra.run.smithi052:> test -e /home/ubuntu/cephtest/archive/coredump
2023-03-29T04:48:18.490 WARNING:teuthology.task.internal:Found coredumps on [email protected], flagging run as failed
2023-03-29T04:48:18.490 DEBUG:teuthology.orchestra.run.smithi110:> test -e /home/ubuntu/cephtest/archive/coredump
2023-03-29T04:48:18.511 DEBUG:teuthology.orchestra.run:got remote process result: 1
2023-03-29T04:48:18.512 DEBUG:teuthology.run_tasks:Unwinding manager internal.archive
2023-03-29T04:48:18.524 INFO:teuthology.task.internal:Transferring archived files...
2023-03-29T04:48:18.524 DEBUG:teuthology.misc:Transferring archived files from smithi052:/home/ubuntu/cephtest/archive to /home/teuthworker/archive/yuriw-2023-03-28_22:43:59-rados-wip-yuri11-testing-2023-03-28-0950-distro-default-smithi/7223995/remote/smithi052
2023-03-29T04:48:18.525 DEBUG:teuthology.orchestra.run.smithi052:> sudo tar cz -f - -C /home/ubuntu/cephtest/archive -- .
2023-03-29T04:48:25.303 INFO:teuthology.task.internal:Transferring binaries for coredumps...
2023-03-29T04:48:25.513 INFO:teuthology.task.internal: core looks like: /home/teuthworker/archive/yuriw-2023-03-28_22:43:59-rados-wip-yuri11-testing-2023-03-28-0950-distro-default-smithi/7223995/remote/smithi052/coredump/1680065090.39304.core.gz: gzip compressed data, was "1680065090.39304.core", last modified: Wed Mar 29 04:48:18 2023, max compression
2023-03-29T04:48:25.514 INFO:teuthology.task.internal:core is compressed, try accessing gzip file ...
2023-03-29T04:48:26.160 INFO:teuthology.task.internal: core looks like: /tmp/tmpsr59t_lu: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, from 'sqlite3 -cmd .output /dev/null -cmd .load libcephsqlite.so -cmd pragma journal_', real uid: 1000, effective uid: 1000, real gid: 1271, effective gid: 1271, execfn: '/usr/bin/sqlite3', platform: 'x86_64'
2023-03-29T04:48:26.190 INFO:teuthology.task.internal: dump_program: sqlite3 -cmd .output /dev/null -cmd .load libcephsqlite.so -cmd pragma journal_
2023-03-29T04:48:26.191 DEBUG:teuthology.orchestra.run.smithi052:> which 'sqlite3 -cmd .output /dev/null -cmd .load libcephsqlite.so -cmd pragma journal_'
2023-03-29T04:48:26.199 DEBUG:teuthology.orchestra.run:got remote process result: 1
2023-03-29T04:48:26.200 ERROR:teuthology.run_tasks:Manager failed: internal.archive
There is a core file located at /a/yuriw-2023-03-28_22:43:59-rados-wip-yuri11-testing-2023-03-28-0950-distro-default-smithi/7223995/remote/smithi052/coredump/1680065090.39304.core.gz.
The coredump was not generated by any daemon, and there was no executable. So, I checked the details with `file`. Looks like it has something to do with sqlite3. This is also reflected in the above teuthology log.
~$ file 1680065090.39304.core
1680065090.39304.core: ELF 64-bit LSB core file x86-64, version 1 (SYSV), SVR4-style, from 'sqlite3 -cmd .output /dev/null -cmd .load libcephsqlite.so -cmd pragma journal_', real uid: 1000, effective uid: 1000, real gid: 1271, effective gid: 1271, execfn: '/usr/bin/sqlite3', platform: 'x86_64'
LF Updated by Laura Flores over 3 years ago
/a/yuriw-2023-04-25_21:30:50-rados-wip-yuri3-testing-2023-04-25-1147-distro-default-smithi/7253347
LF Updated by Laura Flores over 3 years ago
- Assignee set to Patrick Donnelly
Patrick would you be the person to go to for this?
PD Updated by Patrick Donnelly over 3 years ago
The common theme here is that atexit cleanup of sqlite3 is causing segmentation faults or:
2023-08-21T20:21:24.873 INFO:tasks.workunit.client.0.smithi141.stderr:Error: near line 3: stepping, disk I/O error (10) 2023-08-21T20:21:24.885 INFO:tasks.workunit.client.0.smithi141.stderr:terminate called after throwing an instance of 'std::runtime_error' 2023-08-21T20:21:24.885 INFO:tasks.workunit.client.0.smithi141.stderr: what(): EVP_DecryptInit_ex failed 2023-08-21T20:21:34.850 INFO:tasks.workunit.client.0.smithi141.stderr:/home/ubuntu/cephtest/clone.client.0/qa/workunits/rados/test_libcephsqlite.sh: line 129: 40508 Aborted (core dumped) sqlite3 -cmd '.output /dev/null' -cmd '.load libcephsqlite.so' -cmd 'pragma journal_mode = PERSIST' -cmd ".open file:///$pool:$ns/baz.db?vfs=ceph" -cmd '.output stdout' <<< "$a"
/teuthology/pdonnell-2023-08-21_19:21:49-rados:basic-main-distro-default-smithi/7374185/teuthology.log
I've not isolated the cause yet and it's probably some kind of memory corruption :/
It's decidedly just an annoyance because this only happens with atexit cleanup.
PD Updated by Patrick Donnelly about 3 years ago
- Has duplicate Bug #63408: libcephsqlite fails with coredump added
PD Updated by Patrick Donnelly about 3 years ago
/a/yuriw-2023-10-25_14:34:26-rados-wip-yuri5-testing-2023-10-24-0737-pacific-distro-default-smithi/7437307
PD Updated by Patrick Donnelly about 3 years ago
- Assignee deleted (
Patrick Donnelly)
LF Updated by Laura Flores almost 3 years ago
/a/yuriw-2024-01-19_23:17:02-rados-wip-yuri4-testing-2024-01-18-1257-pacific-distro-default-smithi/7524433
LF Updated by Laura Flores over 2 years ago
/a/teuthology-2024-04-28_20:00:15-rados-main-distro-default-smithi/7677031
LF Updated by Laura Flores over 1 year ago
/a/yuriw-2025-03-27_15:03:25-rados-wip-yuri7-testing-2025-03-26-1605-distro-default-smithi/8213263
SS Updated by Sridhar Seshasayee over 1 year ago
/a/skanta-2025-03-27_08:02:07-rados-wip-bharath10-testing-2025-03-27-0430-distro-default-smithi/8212787
LF Updated by Laura Flores over 1 year ago
/a/skanta-2025-04-04_06:10:17-rados-wip-bharath10-testing-2025-04-03-2112-distro-default-smithi/8223549
SS Updated by Sridhar Seshasayee over 1 year ago
/a/yuriw-2025-04-07_23:32:09-rados-wip-yuri13-testing-2025-04-07-1144-distro-default-smithi/8229223
KS Updated by Kamoltat (Junior) Sirivadhna over 1 year ago
/a/skanta-2025-04-09_05:31:19-rados-wip-bharath17-testing-2025-04-08-0602-distro-default-smithi/8233188/
KS Updated by Kamoltat (Junior) Sirivadhna over 1 year ago
/a/lflores-2025-04-14_14:00:23-rados-wip-lflores-testing-2-2025-04-11-1133-distro-default-smithi/8239409
LF Updated by Laura Flores over 1 year ago
/a/lflores-2025-04-15_00:57:49-rados-wip-lflores-testing-5-2025-04-14-1635-distro-default-gibba/8241287
KS Updated by Kamoltat (Junior) Sirivadhna over 1 year ago
- Assignee set to Patrick Donnelly
from rados suite watch: ping @Patrick Donnelly
Hi Patrick,
do you mind taking a look at this, problem seems to be persistence in the main RADOS suite.
KS Updated by Kamoltat (Junior) Sirivadhna over 1 year ago
Patrick will take a look when he has time, he said the core files just needs debugging .. likely happends during atexit handling with the sqlite3 binary.
JB Updated by Jonathan Bailey about 1 year ago
/a/skanta-2025-08-27_01:46:19-rados-wip-bharath1-testing-2025-08-26-1433-distro-default-smithi/8466510
LF Updated by Laura Flores about 1 year ago
/a/yuriw-2025-09-15_21:18:21-rados-wip-yuri5-testing-2025-09-15-1211-tentacle-distro-default-smithi/8502193
LF Updated by Laura Flores about 1 year ago
- Backport set to tentacle
AM Updated by Aishwarya Mathuria about 1 year ago
/a/yuriw-2025-09-24_18:46:32-rados-wip-yuri8-testing-2025-09-24-0752-tentacle-distro-default-smithi/8518613
NN Updated by Naveen Naidu 12 months ago
/a/skanta-2025-11-21_10:17:34-rados-wip-bharath11-testing-2025-11-21-0531-distro-default-smithi/8617954
LF Updated by Laura Flores 10 months ago
/a/lflores-2026-01-21_20:56:39-rados-main-distro-default-trial/11810
NM Updated by Nitzan Mordechai 10 months ago
/a/yuriw-2026-02-04_23:08:40-rados-wip-yuri3-testing-2026-02-04-1948-tentacle-distro-default-trial/35529
LS Updated by Lee Sanders 10 months ago
/a/skanta-2026-01-29_13:05:02-rados-wip-bharath5-testing-2026-01-28-2018-distro-default-trial/25738
NM Updated by Nitzan Mordechai 10 months ago
/a/yaarit-2026-02-10_23:48:52-rados-wip-rocky10-branch-of-the-day-2026-02-09-1770676549-distro-default-trial/44253
NM Updated by Nitzan Mordechai 9 months ago
/a/yuriw-2026-03-07_15:37:55-rados-wip-rocky10-branch-of-the-day-2026-03-06-1772840606-distro-default-trial/92991
BH Updated by Brad Hubbard 9 months ago · Edited
Nitzan Mordechai wrote in #note-27:
/a/yuriw-2026-03-07_15:37:55-rados-wip-rocky10-branch-of-the-day-2026-03-06-1772840606-distro-default-trial/92991
I managed to set up an environment to debug the coredump.
(gdb) bt
#0 __pthread_rwlock_rdlock_full64 (abstime=0x0, clockid=0, rwlock=0x0) at ./nptl/pthread_rwlock_common.c:298
#1 ___pthread_rwlock_rdlock (rwlock=0x0) at ./nptl/pthread_rwlock_rdlock.c:26
#2 0x00007f921e456ccd in CRYPTO_THREAD_read_lock (lock=<optimized out>) at ../crypto/threads_pthread.c:85
#3 0x00007f921e449f06 in ossl_lib_ctx_get_data (ctx=0x7f921e6d44e0 <default_context_int.lto_priv>, index=0, meth=0x7f921e68b7a0 <evp_method_store_method.lto_priv>) at ../crypto/context.c:377
#4 0x00007f921e529bf1 in get_evp_method_store (libctx=<optimized out>) at ../crypto/evp/evp_fetch.c:82
#5 inner_evp_generic_fetch.constprop.0 (methdata=methdata@entry=0x7f921a891730, prov=<optimized out>, prov@entry=0x0, operation_id=operation_id@entry=2, name=0x7f921e5dfcdb "id-aes128-GCM",
properties=properties@entry=0x7f921e5dbdbc "", new_method=new_method@entry=0x7f921e429de0 <evp_cipher_from_algorithm>, up_ref_method=0x7f921e421320 <evp_cipher_up_ref>, free_method=0x7f921e42a320 <evp_cipher_free>, name_id=0)
at ../crypto/evp/evp_fetch.c:248
#6 0x00007f921e4212b3 in evp_generic_fetch (free_method=0x7f921e42a320 <evp_cipher_free>, up_ref_method=0x7f921e421320 <evp_cipher_up_ref>, new_method=0x7f921e429de0 <evp_cipher_from_algorithm>, properties=0x7f921e5dbdbc "",
name=<optimized out>, operation_id=2, libctx=0x0) at ../crypto/evp/evp_fetch.c:372
#7 EVP_CIPHER_fetch (ctx=ctx@entry=0x0, algorithm=<optimized out>, properties=properties@entry=0x7f921e5dbdbc "") at ../crypto/evp/evp_enc.c:1652
#8 0x00007f921e4297c0 in evp_cipher_init_internal (ctx=0x7f91fc00c0e0, cipher=0x7f921e688c20 <aesni_128_gcm>, impl=<optimized out>, key=0x0, iv=0x0, enc=<optimized out>, params=0x0) at ../crypto/evp/evp_enc.c:175
#9 0x00007f921e429c2f in EVP_CipherInit_ex (ctx=<optimized out>, cipher=<optimized out>, impl=<optimized out>, key=<optimized out>, iv=<optimized out>, enc=<optimized out>) at ../crypto/evp/evp_enc.c:436
#10 0x00007f921ee3e9f4 in ceph::crypto::onwire::AES128GCM_OnWireRxHandler::AES128GCM_OnWireRxHandler (cct=<optimized out>, new_nonce_format=true, nonce=..., key=..., this=0x7f91fc007d10) at msg/./src/msg/async/crypto_onwire.cc:186
#11 std::make_unique<ceph::crypto::onwire::AES128GCM_OnWireRxHandler, ceph::common::CephContext*&, std::array<unsigned char, 16ul>&, ceph::crypto::onwire::nonce_t&, bool&> () at /usr/include/c++/12/bits/unique_ptr.h:1065
#12 ceph::crypto::onwire::rxtx_t::create_handler_pair (cct=0x55efc9d53ba0, auth_meta=..., new_nonce_format=<optimized out>, crossed=<optimized out>) at msg/./src/msg/async/crypto_onwire.cc:309
#13 0x00007f921ee23c40 in ProtocolV2::handle_auth_done (this=0x7f91cc0945f0, payload=...) at /usr/include/c++/12/bits/shared_ptr_base.h:1665
#14 0x00007f921ee16a29 in ProtocolV2::run_continuation (this=0x7f91cc0945f0, continuation=...) at msg/./src/msg/async/ProtocolV2.cc:54
#15 0x00007f921edee56e in std::function<void (char*, long)>::operator()(char*, long) const (__args#1=0, __args#0=<optimized out>, this=0x7f91cc0744d8) at /usr/include/c++/12/bits/std_function.h:591
#16 AsyncConnection::process (this=0x7f91cc074140) at msg/./src/msg/async/AsyncConnection.cc:485
#17 0x00007f921ee3300c in EventCenter::process_events (this=0x55efc9d0a058, timeout_microseconds=<optimized out>, working_dur=0x7f921a891d88) at msg/./src/msg/async/Event.cc:465
#18 0x00007f921ee38bf9 in operator() (__closure=<optimized out>) at msg/./src/msg/async/Stack.cc:50
#19 std::__invoke_impl<void, NetworkStack::add_thread(Worker*)::<lambda()>&> (__f=...) at /usr/include/c++/12/bits/invoke.h:61
#20 std::__invoke_r<void, NetworkStack::add_thread(Worker*)::<lambda()>&> (__fn=...) at /usr/include/c++/12/bits/invoke.h:111
#21 std::_Function_handler<void(), NetworkStack::add_thread(Worker*)::<lambda()> >::_M_invoke(const std::_Any_data &) (__functor=...) at /usr/include/c++/12/bits/std_function.h:290
#22 0x00007f921e81f253 in std::execute_native_thread_routine (__p=0x55efc9e9c5f0) at ../../../../../src/libstdc++-v3/src/c++11/thread.cc:82
#23 0x00007f921f5e8ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#24 0x00007f921f67a8d0 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81
I wonder if we are racing with this thread?
Thread 3 (Thread 0x7f921f51d740 (LWP 21504)): #0 _int_free (av=0x7f9204000030, p=0x7f92040111a0, have_lock=0) at ./malloc/malloc.c:4553 #1 0x00007f921f5f9453 in __GI___libc_free (mem=<optimized out>) at ./malloc/malloc.c:3391 #2 0x00007f921e44105c in OPENSSL_LH_flush (lh=<optimized out>) at ../crypto/lhash/lhash.c:121 #3 OPENSSL_LH_flush (lh=lh@entry=0x7f920400f530) at ../crypto/lhash/lhash.c:109 #4 0x00007f921e4410af in OPENSSL_LH_free (lh=0x7f920400f530) at ../crypto/lhash/lhash.c:101 #5 OPENSSL_LH_free (lh=0x7f920400f530) at ../crypto/lhash/lhash.c:96 #6 0x00007f921e454192 in err_cleanup () at ../crypto/err/err.c:229 #7 OPENSSL_cleanup () at ../crypto/init.c:438 #8 OPENSSL_cleanup () at ../crypto/init.c:338 #9 0x00007f921f599495 in __run_exit_handlers (status=1, listp=0x7f921f76e838 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at ./stdlib/exit.c:113 #10 0x00007f921f599610 in __GI_exit (status=<optimized out>) at ./stdlib/exit.c:143 #11 0x00007f921f57dd97 in __libc_start_call_main (main=main@entry=0x55efa2b3b020, argc=argc@entry=13, argv=argv@entry=0x7ffea71715a8) at ../sysdeps/nptl/libc_start_call_main.h:74 #12 0x00007f921f57de40 in __libc_start_main_impl (main=0x55efa2b3b020, argc=13, argv=0x7ffea71715a8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffea7171598) at ../csu/libc-start.c:392 #13 0x000055efa2b3c9c5 in ?? ()
Of course the rwlock = 0x0 is a giveaway that the lock has been destroyed.
BH Updated by Brad Hubbard 9 months ago · Edited
Brad Hubbard wrote in #note-28:
Nitzan Mordechai wrote in #note-27:
/a/yuriw-2026-03-07_15:37:55-rados-wip-rocky10-branch-of-the-day-2026-03-06-1772840606-distro-default-trial/92991
I managed to set up an environment to debug the coredump.
[...]
I wonder if we are racing with this thread?
[...]
Of course the rwlock = 0x0 is a giveaway that the lock has been destroyed.
Likely race...
Thread 1 Thread 3
-------- --------
EVP_CIPHER_fetch()
get_evp_method_store()
exit()
__run_exit_handlers()
OPENSSL_cleanup()
free EVP store
destroy locks
CRYPTO_THREAD_read_lock(lock=NULL)
Segfault
I wonder if adding something here would suffice or not?
BH Updated by Brad Hubbard 8 months ago
I dumped out the log and here is what the thread that segfaults is doing.
$ grep 7f921a892640 log.txt 2026-03-07 17:10:09.591746 thread: 0x7f921a892640 priority: 1 subsystem: 30 --2- >> [v2:10.20.193.11:3301/0,v1:10.20.193.11:6790/0] conn(0x55efca0d86f0 0x55efca0266d0 unknown :-1 s=BANNER_CONNECTING pgs=0 gs=2 cs=0 l=0 c_cookie=0 s_cookie=0 reconnecting=0 rev1=0 crypto rx=0 tx=0 comp rx=0 tx=0)._handle_peer_banner_payload supported=3 required=0 2026-03-07 17:10:09.591746 thread: 0x7f921a892640 priority: 1 subsystem: 30 --2- >> [v2:10.20.193.11:3301/0,v1:10.20.193.11:6790/0] conn(0x55efca0d86f0 0x55efca0266d0 unknown :-1 s=HELLO_CONNECTING pgs=0 gs=2 cs=0 l=0 c_cookie=0 s_cookie=0 reconnecting=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0).handle_hello peer v2:10.20.193.11:3301/0 says I am v2:10.20.193.11:37938/0 (socket says 10.20.193.11:37938) 2026-03-07 17:10:09.591746 thread: 0x7f921a892640 priority: 1 subsystem: 30 -- 10.20.193.11:0/1848501237 learned_addr learned my addr 10.20.193.11:0/1848501237 (peer_addr_for_me v2:10.20.193.11:0/0) 2026-03-07 17:10:09.591746 thread: 0x7f921a892640 priority: 10 subsystem: 32 monclient(hunting): get_auth_request con 0x55efca0d86f0 auth_method 0 2026-03-07 17:10:09.591746 thread: 0x7f921a892640 priority: 10 subsystem: 32 monclient(hunting): get_auth_request method 2 preferred_modes [2,1] 2026-03-07 17:10:09.591746 thread: 0x7f921a892640 priority: 10 subsystem: 32 monclient(hunting): _init_auth method 2 2026-03-07 17:10:09.591746 thread: 0x7f921a892640 priority: 10 subsystem: 32 monclient(hunting): _init_auth creating new auth 2026-03-07 17:10:09.591746 thread: 0x7f921a892640 priority: 10 subsystem: 32 monclient(hunting): handle_auth_reply_more payload 9 2026-03-07 17:10:09.591746 thread: 0x7f921a892640 priority: 10 subsystem: 32 monclient(hunting): handle_auth_reply_more payload_len 9 2026-03-07 17:10:09.591746 thread: 0x7f921a892640 priority: 10 subsystem: 32 monclient(hunting): handle_auth_reply_more responding with 36 bytes 2026-03-07 17:10:09.591746 thread: 0x7f921a892640 priority: 1 subsystem: 30 --2- 10.20.193.11:0/1848501237 >> [v2:10.20.193.11:3301/0,v1:10.20.193.11:6790/0] conn(0x55efca0d86f0 0x55efca0266d0 unknown :-1 s=CLOSED pgs=0 gs=2 cs=0 l=0 c_cookie=0 s_cookie=0 reconnecting=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0).handle_auth_done state changed! 2026-03-07 17:10:09.595746 thread: 0x7f921a892640 priority: 1 subsystem: 30 --2- >> [v2:10.20.193.11:3301/0,v1:10.20.193.11:6790/0] conn(0x55efca0d6e80 0x55efca0266d0 unknown :-1 s=BANNER_CONNECTING pgs=0 gs=2 cs=0 l=1 c_cookie=0 s_cookie=0 reconnecting=0 rev1=0 crypto rx=0 tx=0 comp rx=0 tx=0)._handle_peer_banner_payload supported=3 required=0 2026-03-07 17:10:09.595746 thread: 0x7f921a892640 priority: 10 subsystem: 32 monclient(hunting): get_auth_request con 0x55efca0d6e80 auth_method 0 2026-03-07 17:10:09.595746 thread: 0x7f921a892640 priority: 10 subsystem: 32 monclient(hunting): get_auth_request method 2 preferred_modes [2,1] 2026-03-07 17:10:09.595746 thread: 0x7f921a892640 priority: 10 subsystem: 32 monclient(hunting): _init_auth method 2 2026-03-07 17:10:09.595746 thread: 0x7f921a892640 priority: 10 subsystem: 32 monclient(hunting): _init_auth creating new auth 2026-03-07 17:10:09.595746 thread: 0x7f921a892640 priority: 10 subsystem: 32 monclient(hunting): handle_auth_reply_more payload 9 2026-03-07 17:10:09.595746 thread: 0x7f921a892640 priority: 10 subsystem: 32 monclient(hunting): handle_auth_reply_more payload_len 9 2026-03-07 17:10:09.595746 thread: 0x7f921a892640 priority: 10 subsystem: 32 monclient(hunting): handle_auth_reply_more responding with 36 bytes 2026-03-07 17:10:09.595746 thread: 0x7f921a892640 priority: 1 subsystem: 30 --2- 10.20.193.11:0/2588253065 >> [v2:10.20.193.18:6800/51569823,v1:10.20.193.18:6801/51569823] conn(0x7f91cc074140 0x7f91cc0945f0 unknown :-1 s=BANNER_CONNECTING pgs=0 gs=4 cs=0 l=1 c_cookie=0 s_cookie=0 reconnecting=0 rev1=0 crypto rx=0 tx=0 comp rx=0 tx=0)._handle_peer_banner_payload supported=3 required=0 2026-03-07 17:10:09.595746 thread: 0x7f921a892640 priority: 10 subsystem: 32 monclient: get_auth_request con 0x7f91cc074140 auth_method 0
Unsurprisingly, the last entry above is the last entry in the log.
As for the other thread involved in the race, here's the relevant logs from it.
2026-03-07 17:10:09.591746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 -- 10.20.193.11:0/4032661611 --> [v2:10.20.193.18:6802/3700486687,v1:10.20.193.18:6803/3700486687] -- osd_op(unknown.0.0:32903 3.14 3:2ef2ba81:test_libcephsqlit
e.sh::baz.db.0000000000000020:head [write 0~4096 in=4096b] snapc 0=[] ondisk+write+known_if_redirected+supports_pool_eio e27) -- 0x55efca64b2a0 con 0x7f91ec1068f0
2026-03-07 17:10:09.591746 thread: 0x7f921f51d740 priority: 10 subsystem: 70 client.4592: SimpleRADOSStriper: write: baz.db: dirty size: 134221824
2026-03-07 17:10:09.591746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 cephsqlite: Write: (client.4592) [cephsqlite:test_libcephsqlite.sh/baz.db] = 4096
2026-03-07 17:10:09.591746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 cephsqlite: Write: (client.4592) [cephsqlite:test_libcephsqlite.sh/baz.db] 134221824~4096
2026-03-07 17:10:09.591746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 client.4592: SimpleRADOSStriper: write: baz.db: 134221824~4096
2026-03-07 17:10:09.591746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 cephsqlite: Write: (client.4592) [cephsqlite:test_libcephsqlite.sh/baz.db] write failed: (108) Cannot send after transport endpoint shutdown
2026-03-07 17:10:09.591746 thread: 0x7f921f51d740 priority: 10 subsystem: 70 cephsqlite: maybe_reconnect: reconnecting to RADOS
2026-03-07 17:10:09.591746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 cephsqlite: _connect: initializing RADOS handle as client.libcephsqlite
2026-03-07 17:10:09.591746 thread: 0x7f921f51d740 priority: 10 subsystem: 32 monclient: get_monmap_and_config
2026-03-07 17:10:09.591746 thread: 0x7f921f51d740 priority: 10 subsystem: 32 monclient: build_initial_monmap
2026-03-07 17:10:09.591746 thread: 0x7f921f51d740 priority: 1 subsystem: 0 build_initial for_mkfs: 0 2026-03-07 17:10:09.591746 thread: 0x7f921f51d740 priority: 10 subsystem: 32 monclient: monmap:
...
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 10 subsystem: 32 monclient(hunting): _renew_subs
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 10 subsystem: 32 monclient(hunting): authenticate will time out at 755.253346s
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 32 monclient: authenticate success, global_id 4695
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 10 subsystem: 32 monclient: _renew_subs
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 10 subsystem: 32 monclient: _send_mon_message to mon.a at v2:10.20.193.11:3300/0
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 -- 10.20.193.11:0/2588253065 --> [v2:10.20.193.11:3300/0,v1:10.20.193.11:6789/0] -- mon_subscribe({mgrmap=0+}) -- 0x55efca0cf400 con 0x55efca0d86f0
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 10 subsystem: 32 monclient: _renew_subs
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 10 subsystem: 32 monclient: _send_mon_message to mon.a at v2:10.20.193.11:3300/0
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 -- 10.20.193.11:0/2588253065 --> [v2:10.20.193.11:3300/0,v1:10.20.193.11:6789/0] -- mon_subscribe({osdmap=0}) -- 0x55efca0cf400 con 0x55efca0d86f0
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 16 librados: init done
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 cephsqlite: _connect: completed connection to RADOS with address 10.20.193.11:0/2588253065
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 cephsqlite: DeviceCharacteristics: (client.4592) [cephsqlite:test_libcephsqlite.sh/baz.db]
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 cephsqlite: Close: (client.4592) [cephsqlite:test_libcephsqlite.sh/baz.db-journal]
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 client.4592: SimpleRADOSStriper: ~SimpleRADOSStriper: baz.db-journal:
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 cephsqlite: Unlock: (client.4592) [cephsqlite:test_libcephsqlite.sh/baz.db] 0
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 client.4592: SimpleRADOSStriper: unlock: baz.db:
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 cephsqlite: Unlock: (client.4592) [cephsqlite:test_libcephsqlite.sh/baz.db] failed: -108
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 10 subsystem: 70 cephsqlite: maybe_reconnect: already reconnected
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 cephsqlite: FileControl: (client.4592) [cephsqlite:test_libcephsqlite.sh/baz.db] 20, 0x7ffea716fe14
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 cephsqlite: DeviceCharacteristics: (client.4592) [cephsqlite:test_libcephsqlite.sh/baz.db]
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 cephsqlite: Unlock: (client.4592) [cephsqlite:test_libcephsqlite.sh/baz.db] 0
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 client.4592: SimpleRADOSStriper: unlock: baz.db:
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 cephsqlite: Unlock: (client.4592) [cephsqlite:test_libcephsqlite.sh/baz.db] failed: -108
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 10 subsystem: 70 cephsqlite: maybe_reconnect: already reconnected
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 cephsqlite: Close: (client.4592) [cephsqlite:test_libcephsqlite.sh/baz.db]
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 client.4592: SimpleRADOSStriper: ~SimpleRADOSStriper: baz.db:
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 client.4592: SimpleRADOSStriper: unlock: baz.db:
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 cephsqlite: Unlock: (client.4592) [cephsqlite:test_libcephsqlite.sh/baz.db] failed: -108
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 10 subsystem: 70 cephsqlite: maybe_reconnect: already reconnected
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 cephsqlite: FileControl: (client.4592) [cephsqlite:test_libcephsqlite.sh/baz.db] 20, 0x7ffea716fe14
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 cephsqlite: DeviceCharacteristics: (client.4592) [cephsqlite:test_libcephsqlite.sh/baz.db]
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 cephsqlite: Unlock: (client.4592) [cephsqlite:test_libcephsqlite.sh/baz.db] 0
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 client.4592: SimpleRADOSStriper: unlock: baz.db:
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 cephsqlite: Unlock: (client.4592) [cephsqlite:test_libcephsqlite.sh/baz.db] failed: -108
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 10 subsystem: 70 cephsqlite: maybe_reconnect: already reconnected
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 cephsqlite: Close: (client.4592) [cephsqlite:test_libcephsqlite.sh/baz.db]
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 client.4592: SimpleRADOSStriper: ~SimpleRADOSStriper: baz.db:
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 70 client.4592: SimpleRADOSStriper: unlock: baz.db:
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 -- 10.20.193.11:0/4032661611 >> [v2:10.20.193.11:6808/3209310297,v1:10.20.193.11:6809/3209310297] conn(0x55efca045280 msgr2=0x7f91ec10b0d0 crc :-1 s=STATE_CONNE
CTION_ESTABLISHED l=1).mark_down
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 --2- 10.20.193.11:0/4032661611 >> [v2:10.20.193.11:6808/3209310297,v1:10.20.193.11:6809/3209310297] conn(0x55efca045280 0x7f91ec10b0d0 crc :-1 s=READY pgs=107 g
s=88 cs=0 l=1 c_cookie=0 s_cookie=0 reconnecting=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0).stop
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 -- 10.20.193.11:0/4032661611 >> [v2:10.20.193.11:6800/2536546789,v1:10.20.193.11:6801/2536546789] conn(0x55efca0ad9a0 msgr2=0x7f91ec100ca0 crc :-1 s=STATE_CONNE
CTION_ESTABLISHED l=1).mark_down
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 --2- 10.20.193.11:0/4032661611 >> [v2:10.20.193.11:6800/2536546789,v1:10.20.193.11:6801/2536546789] conn(0x55efca0ad9a0 0x7f91ec100ca0 crc :-1 s=READY pgs=70 gs
=60 cs=0 l=1 c_cookie=0 s_cookie=0 reconnecting=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0).stop
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 -- 10.20.193.11:0/4032661611 >> [v2:10.20.193.11:6816/4064247674,v1:10.20.193.11:6818/4064247674] conn(0x55efca0477a0 msgr2=0x7f91ec1895c0 crc :-1 s=STATE_CONNE
CTION_ESTABLISHED l=1).mark_down
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 --2- 10.20.193.11:0/4032661611 >> [v2:10.20.193.11:6816/4064247674,v1:10.20.193.11:6818/4064247674] conn(0x55efca0477a0 0x7f91ec1895c0 crc :-1 s=READY pgs=108 g
s=41 cs=0 l=1 c_cookie=0 s_cookie=0 reconnecting=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0).stop
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 -- 10.20.193.11:0/4032661611 >> [v2:10.20.193.18:6802/3700486687,v1:10.20.193.18:6803/3700486687] conn(0x7f91ec1068f0 msgr2=0x7f91ec0ffbe0 crc :-1 s=STATE_CONNE
CTION_ESTABLISHED l=1).mark_down
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 --2- 10.20.193.11:0/4032661611 >> [v2:10.20.193.18:6802/3700486687,v1:10.20.193.18:6803/3700486687] conn(0x7f91ec1068f0 0x7f91ec0ffbe0 crc :-1 s=READY pgs=119 g
s=114 cs=0 l=1 c_cookie=0 s_cookie=0 reconnecting=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0).stop
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 -- 10.20.193.11:0/4032661611 >> [v2:10.20.193.18:6818/538195005,v1:10.20.193.18:6820/538195005] conn(0x55efca043990 msgr2=0x7f91ec188f80 crc :-1 s=STATE_CONNECT
ION_ESTABLISHED l=1).mark_down
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 --2- 10.20.193.11:0/4032661611 >> [v2:10.20.193.18:6818/538195005,v1:10.20.193.18:6820/538195005] conn(0x55efca043990 0x7f91ec188f80 crc :-1 s=READY pgs=112 gs=
96 cs=0 l=1 c_cookie=0 s_cookie=0 reconnecting=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0).stop
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 -- 10.20.193.11:0/4032661611 >> [v2:10.20.193.18:6819/1470849979,v1:10.20.193.18:6821/1470849979] conn(0x55efc9fbd440 msgr2=0x7f91ec109350 crc :-1 s=STATE_CONNE
CTION_ESTABLISHED l=1).mark_down
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 --2- 10.20.193.11:0/4032661611 >> [v2:10.20.193.18:6819/1470849979,v1:10.20.193.18:6821/1470849979] conn(0x55efc9fbd440 0x7f91ec109350 crc :-1 s=READY pgs=47 gs
=61 cs=0 l=1 c_cookie=0 s_cookie=0 reconnecting=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0).stop
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 -- 10.20.193.11:0/4032661611 >> [v2:10.20.193.18:6810/1256835072,v1:10.20.193.18:6811/1256835072] conn(0x7f91ec098ba0 msgr2=0x7f91ec0b8f80 crc :-1 s=STATE_CONNE
CTION_ESTABLISHED l=1).mark_down
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 --2- 10.20.193.11:0/4032661611 >> [v2:10.20.193.18:6810/1256835072,v1:10.20.193.18:6811/1256835072] conn(0x7f91ec098ba0 0x7f91ec0b8f80 crc :-1 s=READY pgs=123 g
s=101 cs=0 l=1 c_cookie=0 s_cookie=0 reconnecting=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0).stop
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 52 asok(0x55efc9d53ba0) unregister_commands objecter_requests
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 -- 10.20.193.11:0/4032661611 >> [v2:10.20.193.18:6800/51569823,v1:10.20.193.18:6801/51569823] conn(0x7f91ec074140 msgr2=0x7f91ec0945f0 secure :-1 s=STATE_CONNEC
TION_ESTABLISHED l=1).mark_down
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 --2- 10.20.193.11:0/4032661611 >> [v2:10.20.193.18:6800/51569823,v1:10.20.193.18:6801/51569823] conn(0x7f91ec074140 0x7f91ec0945f0 secure :-1 s=READY pgs=103 gs
=4 cs=0 l=1 c_cookie=0 s_cookie=0 reconnecting=0 rev1=1 crypto rx=0x7f9208002b80 tx=0x7f9208002c30 comp rx=0 tx=0).stop
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 10 subsystem: 32 monclient: shutdown
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 5 subsystem: 52 asok(0x55efc9d53ba0) unregister_commands rotate-key
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 -- 10.20.193.11:0/4032661611 >> [v2:10.20.193.11:3301/0,v1:10.20.193.11:6790/0] conn(0x7f91e8003780 msgr2=0x7f91e8023bc0 secure :-1 s=STATE_CONNECTION_ESTABLISH
ED l=1).mark_down
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 --2- 10.20.193.11:0/4032661611 >> [v2:10.20.193.11:3301/0,v1:10.20.193.11:6790/0] conn(0x7f91e8003780 0x7f91e8023bc0 secure :-1 s=READY pgs=91 gs=112 cs=0 l=1 c
_cookie=0 s_cookie=0 reconnecting=0 rev1=1 crypto rx=0x7f91fc007a30 tx=0x7f91fc007d90 comp rx=0 tx=0).stop
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 -- 10.20.193.11:0/4032661611 shutdown_connections
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 --2- 10.20.193.11:0/4032661611 >> [v2:10.20.193.11:3301/0,v1:10.20.193.11:6790/0] conn(0x7f91e8003780 0x7f91e8023bc0 unknown :-1 s=CLOSED pgs=91 gs=112 cs=0 l=1
c_cookie=0 s_cookie=0 reconnecting=0 rev1=1 crypto rx=0 tx=0 comp rx=0 tx=0).stop
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 -- 10.20.193.11:0/4032661611 >> 10.20.193.11:0/4032661611 conn(0x55efc9e9c7f0 msgr2=0x55efc9f4cb30 unknown :-1 s=STATE_NONE l=0).mark_down
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 -- 10.20.193.11:0/4032661611 shutdown_connections
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 30 -- 10.20.193.11:0/4032661611 wait complete.
2026-03-07 17:10:09.595746 thread: 0x7f921f51d740 priority: 1 subsystem: 16 librados: shutdown
Note the 108 errors.
$ errno 108 ESHUTDOWN 108 Cannot send after transport endpoint shutdown
It looks to me like the 108 errors may be the unexpected error condition leading to this race but I'll try to gather more evidence to support that.
SS Updated by Sridhar Seshasayee 8 months ago
/a/yuriw-2026-03-06_16:07:49-rados-tentacle-release-distro-default-trial/91198
BH Updated by Brad Hubbard 8 months ago
The 108 mentioned in the error is indicating -EBLOCKLISTED
Looking at the job output in teuthology.log...
2026-03-07T17:09:04.398 INFO:tasks.workunit.client.0.trial011.stderr: LIMIT (1<<20);+ '[' b '!=' b ']' 2026-03-07T17:09:04.398 INFO:tasks.workunit.client.0.trial011.stderr:+ sleep 20 2026-03-07T17:09:04.398 INFO:tasks.workunit.client.0.trial011.stderr:+ sqlite3 -cmd '.bail on' -cmd '.output /dev/null' -cmd '.load libcephsqlite.so' -cmd 'pragma journal_mode = PERSIST' -cmd '.open file:///cephsqlite:test_libcephsqlite.sh/baz.db?vfs=ceph' -cmd '.output stdout' 2026-03-07T17:09:05.277 INFO:tasks.ceph.mgr.x.trial018.stderr:INFO:mgr_util:scanning for idle connections.. 2026-03-07T17:09:05.282 INFO:tasks.ceph.mgr.x.trial018.stderr:INFO:mgr_util:scanning for idle connections.. 2026-03-07T17:09:05.282 INFO:tasks.ceph.mgr.x.trial018.stderr:INFO:mgr_util:scanning for idle connections.. 2026-03-07T17:09:05.282 INFO:tasks.ceph.mgr.x.trial018.stderr:INFO:mgr_util:cleaning up connections: [] 2026-03-07T17:09:05.283 INFO:tasks.ceph.mgr.x.trial018.stderr:INFO:mgr_util:cleaning up connections: [] 2026-03-07T17:09:05.283 INFO:tasks.ceph.mgr.x.trial018.stderr:INFO:mgr_util:cleaning up connections: [] 2026-03-07T17:09:24.395 INFO:tasks.workunit.client.0.trial011.stderr:+ jobs -l 2026-03-07T17:09:24.396 INFO:tasks.workunit.client.0.trial011.stdout:[1]+ 21504 Running sqlite3 -cmd '.bail on' -cmd '.output /dev/null' -cmd '.load libcephsqlite.so' -cmd 'pragma journal_mode = PERSIST' -cmd ".open file:///$pool:$ns/baz.db?vfs=ceph" -cmd '.output stdout' <<< "$a" & 2026-03-07T17:09:24.396 INFO:tasks.workunit.client.0.trial011.stderr:++ jobs -p 2026-03-07T17:09:24.397 INFO:tasks.workunit.client.0.trial011.stderr:+ kill -STOP -- 21504 2026-03-07T17:09:24.397 INFO:tasks.workunit.client.0.trial011.stderr:+ sleep 45 2026-03-07T17:09:35.283 INFO:tasks.ceph.mgr.x.trial018.stderr:INFO:mgr_util:scanning for idle connections.. 2026-03-07T17:09:35.283 INFO:tasks.ceph.mgr.x.trial018.stderr:INFO:mgr_util:scanning for idle connections.. 2026-03-07T17:09:35.283 INFO:tasks.ceph.mgr.x.trial018.stderr:INFO:mgr_util:cleaning up connections: [] 2026-03-07T17:09:35.284 INFO:tasks.ceph.mgr.x.trial018.stderr:INFO:mgr_util:scanning for idle connections.. 2026-03-07T17:09:35.284 INFO:tasks.ceph.mgr.x.trial018.stderr:INFO:mgr_util:cleaning up connections: [] 2026-03-07T17:09:35.284 INFO:tasks.ceph.mgr.x.trial018.stderr:INFO:mgr_util:cleaning up connections: [] 2026-03-07T17:10:05.286 INFO:tasks.ceph.mgr.x.trial018.stderr:INFO:mgr_util:scanning for idle connections.. 2026-03-07T17:10:05.287 INFO:tasks.ceph.mgr.x.trial018.stderr:INFO:mgr_util:scanning for idle connections.. 2026-03-07T17:10:05.287 INFO:tasks.ceph.mgr.x.trial018.stderr:INFO:mgr_util:scanning for idle connections.. 2026-03-07T17:10:05.288 INFO:tasks.ceph.mgr.x.trial018.stderr:INFO:mgr_util:cleaning up connections: [] 2026-03-07T17:10:05.288 INFO:tasks.ceph.mgr.x.trial018.stderr:INFO:mgr_util:cleaning up connections: [] 2026-03-07T17:10:05.288 INFO:tasks.ceph.mgr.x.trial018.stderr:INFO:mgr_util:cleaning up connections: [] 2026-03-07T17:10:09.398 INFO:tasks.workunit.client.0.trial011.stderr:+ date 2026-03-07T17:10:09.399 INFO:tasks.workunit.client.0.trial011.stdout:Sat Mar 7 17:10:09 UTC 2026 2026-03-07T17:10:09.400 INFO:tasks.workunit.client.0.trial011.stderr:++ jobs -p 2026-03-07T17:10:09.400 INFO:tasks.workunit.client.0.trial011.stderr:+ kill -CONT -- 21504 2026-03-07T17:10:09.400 INFO:tasks.workunit.client.0.trial011.stderr:+ sleep 10 2026-03-07T17:10:09.601 INFO:tasks.workunit.client.0.trial011.stderr:Error: near line 3: stepping, disk I/O error (10) 2026-03-07T17:10:19.402 INFO:tasks.workunit.client.0.trial011.stderr:/home/ubuntu/cephtest/clone.client.0/qa/workunits/rados/test_libcephsqlite.sh: line 129: 21504 Segmentation fault (core dumped) sqlite3 -cmd '.bail on' -cmd '.output /dev/null' -cmd '.load libcephsqlite.so' -cmd 'pragma journal_mode = PERSIST' -cmd ".open file:///$pool:$ns/baz.db?vfs=ceph" -cmd '.output stdout' <<< "$a"
So we start the sqlite3 command, sleep 20 seconds and then stop the job, then after 45 more seconds we CONT the job and that is when it segfaults. The disk I/O error comes from here in the sqlite3 cli utility code.
12691 /*
12692 ** Run a single line of SQL. Return the number of errors.
12693 */
12694 static int runOneSqlLine(ShellState *p, char *zSql, FILE *in, int startline){
12695 int rc;
12696 char *zErrMsg = 0;
12697
12698 open_db(p, 0);
12699 if( ShellHasFlag(p,SHFLG_Backslash) ) resolve_backslashes(zSql);
12700 if( p->flgProgress & SHELL_PROGRESS_RESET ) p->nProgress = 0;
12701 BEGIN_TIMER;
12702 rc = shell_exec(p, zSql, &zErrMsg);
12703 END_TIMER(p->out);
12704 if( rc || zErrMsg ){
12705 char zPrefix[100];
12706 const char *zErrorTail;
12707 const char *zErrorType;
12708 if( zErrMsg==0 ){
12709 zErrorType = "Error";
12710 zErrorTail = sqlite3_errmsg(p->db);
12711 }else if( cli_strncmp(zErrMsg, "in prepare, ",12)==0 ){
12712 zErrorType = "Parse error";
12713 zErrorTail = &zErrMsg[12];
12714 }else if( cli_strncmp(zErrMsg, "stepping, ", 10)==0 ){
12715 zErrorType = "Runtime error";
12716 zErrorTail = &zErrMsg[10];
This causes the cli utility to exit when process_input() (which calls runOneSqlLine()) returns the error. Still looking at what we can do about this.
PD Updated by Patrick Donnelly 8 months ago
- Status changed from New to In Progress
- Pull request ID set to 68125
PD Updated by Patrick Donnelly 8 months ago
- Status changed from In Progress to Pending Backport
- Target version set to v21.0.0
- Source set to Q/A
- Backport changed from tentacle to tentacle,squid
UB Updated by Upkeep Bot 8 months ago
- Merge Commit set to 43a3e73f7effe6430c8188b09ad054d3ab6ed578
- Fixed In set to v21.0.0-330-g43a3e73f7e
- Upkeep Timestamp set to 2026-04-08T14:13:20+00:00
UB Updated by Upkeep Bot 8 months ago
- Copied to Backport #75909: tentacle: Found coredumps on smithi related to sqlite3 added
UB Updated by Upkeep Bot 8 months ago
- Copied to Backport #75910: squid: Found coredumps on smithi related to sqlite3 added
UB Updated by Upkeep Bot 8 months ago
- Tags (freeform) set to backport_processed
PD Updated by Patrick Donnelly 8 months ago
- Related to Bug #76017: mon/MonClient: auth methods accessing MonClient members when stopping added
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Resolved
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-04-08T14:13:20+00:00 to 2026-08-27T18:29:14+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~851
- Upkeep Timestamp changed from 2026-08-27T18:29:14+00:00 to 2026-10-24T01:49:29+00:00