Project

General

Profile

Actions

Bug #64893

open

unittest_bufferlist - valgrind failed

Added by Nitzan Mordechai about 2 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Tests
Target version:
-
% Done:

0%

Source:
Tags:
low-hanging-fruit
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

running unit-test with valgraind:
ctest -R unittest_bufferlist -T memcheck

==3235347== Process terminating with default action of signal 6 (SIGABRT)
==3235347==    at 0x4E59B7F: raise (raise.c:51)
==3235347==    by 0x2095FD: reraise_fatal (signal_handler.cc:88)
==3235347==    by 0x2095FD: handle_oneshot_fatal_signal(int) (signal_handler.cc:367)
==3235347==    by 0x4E59CDF: ??? (in /usr/lib64/libpthread-2.28.so)
==3235347==    by 0x83A4A4E: UnknownInlinedFun (internal-signals.h:84)
==3235347==    by 0x83A4A4E: raise (raise.c:48)
==3235347==    by 0x8377DB4: abort (abort.c:79)
==3235347==    by 0x5535CB6: ceph::__ceph_assert_fail(char const*, char const*, int, char const*) (assert.cc:75)
==3235347==    by 0x5535DFA: ceph::__ceph_assert_fail(ceph::assert_data const&) (assert.cc:80)
==3235347==    by 0x58E6A49: ceph::buffer::v15_2_0::ptr::ptr(ceph::buffer::v15_2_0::ptr const&, unsigned int, unsigned int) (buffer.cc:348)
==3235347==    by 0x1B3673: BufferPtr_constructors_Test::TestBody() (bufferlist.cc:238)
==3235347==    by 0x1F69B6: HandleSehExceptionsInMethodIfSupported<testing::Test, void> (gtest.cc:2605)
==3235347==    by 0x1F69B6: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2641)
==3235347==    by 0x1EB35D: Run (gtest.cc:2680)
==3235347==    by 0x1EB35D: testing::Test::Run() (gtest.cc:2670)
==3235347==    by 0x1EB4B4: Run (gtest.cc:2858)
==3235347==    by 0x1EB4B4: testing::TestInfo::Run() (gtest.cc:2831)
==3235347== 
==3235347== HEAP SUMMARY:
==3235347==     in use at exit: 2,702,758 bytes in 10,333 blocks
==3235347==   total heap usage: 7,047,115 allocs, 7,036,782 frees, 22,344,910,128 bytes allocated
==3235347== 
==3235347== 32 bytes in 1 blocks are definitely lost in loss record 435 of 887
==3235347==    at 0x4C3BDBB: calloc (vg_replace_malloc.c:1117)
==3235347==    by 0x83A78C2: __cxa_thread_atexit_impl (cxa_thread_atexit_impl.c:106)
==3235347==    by 0x7ABB92C: __cxa_thread_atexit (atexit_thread.cc:46)
==3235347==    by 0x558D3BC: CachedStackStringStream::CachedStackStringStream() (StackStringStream.h:132)
==3235347==    by 0x5632EFB: MutableEntry (Entry.h:56)
==3235347==    by 0x5632EFB: AdminSocket::entry() (admin_socket.cc:245)
==3235347==    by 0x7AE9BA2: execute_native_thread_routine (thread.cc:80)
==3235347==    by 0x4E4F1CE: start_thread (pthread_create.c:479)
==3235347==    by 0x838FD82: clone (clone.S:95)
==3235347== 
==3235347== 64 bytes in 1 blocks are definitely lost in loss record 506 of 887
==3235347==    at 0x4C37833: operator new(unsigned long) (vg_replace_malloc.c:417)
==3235347==    by 0x5634C37: thread<make_named_thread<void (AdminSocket::*)() noexcept, AdminSocket*>(std::string_view, void (AdminSocket::*&&)() noexcept, AdminSocket*&&)::<lambda(auto:57&&, auto:58&& ...)>, void (AdminSocket::*)() noexcept, AdminSocket*> (std_thread.h:143)
==3235347==    by 0x5634C37: std::thread make_named_thread<void (AdminSocket::*)() noexcept, AdminSocket*>(std::basic_string_view<char, std::char_traits<char> >, void (AdminSocket::*&&)() noexcept, AdminSocket*&&) (Thread.h:81)
==3235347==    by 0x56339AB: AdminSocket::init(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (admin_socket.cc:1053)
==3235347==    by 0x5688DEF: common_init_finish(ceph::common::CephContext*) (common_init.cc:106)
==3235347==    by 0x17A131: main (unit.cc:42)
...

No data to display

Actions

Also available in: Atom PDF