Comment 3 for bug 1890334

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

Test case: steps to reproduce

$ juju add-model ceph-lp1890334
$ juju deploy ./ceph-lp1890334.yaml

$ 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:
Version: 14.2.9-0ubuntu0.19.10.1~cloud0

$ 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
*** Caught signal (Segmentation fault) **
 in thread 7f1a88953700 thread_name:msgr-worker-1
 ceph version 14.2.9 (581f22da52345dba46ee232b73b990f06029a2a0) nautilus (stable)
 1: (()+0x128a0) [0x7f1bc19708a0]
 2: (bool ProtocolV2::append_frame<ceph::msgr::v2::MessageFrame>(ceph::msgr::v2::MessageFrame&)+0x48a) [0x7f1bb908e19a]
 3: (ProtocolV2::write_message(Message*, bool)+0x4dd) [0x7f1bb90709dd]
 4: (ProtocolV2::write_event()+0x2c5) [0x7f1bb9085d55]
 5: (AsyncConnection::handle_write()+0x43) [0x7f1bb90449e3]
 6: (EventCenter::process_events(unsigned int, std::chrono::duration<unsigned long, std::ratio<1l, 1000000000l> >*)+0xd57) [0x7f1bb909d157]
 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_name:msgr-worker-1
 ...
Segmentation fault

real 0m4.786s
user 0m1.546s
sys 0m1.449s

With the patched package:
---

$ dpkg -s librados2 | grep ^Version:
Version: 14.2.9-0ubuntu0.19.10.1~cloud1

$ 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.

real 0m30.627s
user 0m51.452s
sys 0m20.738s