$ time sudo LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/ceph/ ./ceph_test_rados_api_misc --gtest_filter=LibRadosMisc.ShutdownRace
Note: Google Test filter = LibRadosMisc.ShutdownRace
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from LibRadosMisc
[ RUN ] LibRadosMisc.ShutdownRace
[ OK ] LibRadosMisc.ShutdownRace (28182 ms)
[----------] 1 test from LibRadosMisc (28182 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (30586 ms total)
[ PASSED ] 1 test.
Test case: steps to reproduce
$ juju add-model ceph-lp1890334 lp1890334. yaml
$ juju deploy ./ceph-
$ watch -c juju status --color # wait all green/active/idle
$ juju scp ceph_test_ rados_api_ misc ceph-mon/0:~
$ juju ssh ceph-mon/0
With the original package:
---
$ dpkg -s librados2 | grep ^Version: 0ubuntu0. 19.10.1~ cloud0
Version: 14.2.9-
$ time sudo LD_LIBRARY_ PATH=/usr/ lib/x86_ 64-linux- gnu/ceph/ ~/ceph_ test_rados_ api_misc --gtest_ filter= LibRadosMisc. ShutdownRace'
Note: Google Test filter = LibRadosMisc. ShutdownRace ShutdownRace name:msgr- worker- 1 ba46ee232b73b99 0f06029a2a0) nautilus (stable) :append_ frame<ceph: :msgr:: v2::MessageFram e>(ceph: :msgr:: v2::MessageFram e&)+0x48a) [0x7f1bb908e19a] :write_ message( Message* , bool)+0x4dd) [0x7f1bb90709dd] :write_ event() +0x2c5) [0x7f1bb9085d55] n::handle_ write() +0x43) [0x7f1bb90449e3] :process_ events( unsigned int, std::chrono: :duration< unsigned long, std::ratio<1l, 1000000000l> >*)+0xd57) [0x7f1bb909d157] name:msgr- worker- 1
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from LibRadosMisc
[ RUN ] LibRadosMisc.
*** Caught signal (Segmentation fault) **
in thread 7f1a88953700 thread_
ceph version 14.2.9 (581f22da52345d
1: (()+0x128a0) [0x7f1bc19708a0]
2: (bool ProtocolV2:
3: (ProtocolV2:
4: (ProtocolV2:
5: (AsyncConnectio
6: (EventCenter:
7: (()+0x59b848) [0x7f1bb90a1848]
8: (()+0xbd6df) [0x7f1bb842e6df]
9: (()+0x76db) [0x7f1bc19656db]
10: (clone()+0x3f) [0x7f1bb7e89a3f]
2020-08-06 17:01:07.630 7f1a88953700 -1 *** Caught signal (Segmentation fault) **
in thread 7f1a88953700 thread_
...
Segmentation fault
real 0m4.786s
user 0m1.546s
sys 0m1.449s
With the patched package:
---
$ dpkg -s librados2 | grep ^Version: 0ubuntu0. 19.10.1~ cloud1
Version: 14.2.9-
$ time sudo LD_LIBRARY_ PATH=/usr/ lib/x86_ 64-linux- gnu/ceph/ ./ceph_ test_rados_ api_misc --gtest_ filter= LibRadosMisc. ShutdownRace ShutdownRace ShutdownRace ShutdownRace (28182 ms)
Note: Google Test filter = LibRadosMisc.
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from LibRadosMisc
[ RUN ] LibRadosMisc.
[ OK ] LibRadosMisc.
[----------] 1 test from LibRadosMisc (28182 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (30586 ms total)
[ PASSED ] 1 test.
real 0m30.627s
user 0m51.452s
sys 0m20.738s