Project

General

Profile

Actions

Bug #64897

open

unittest_ceph_crypto - valgrind failed

Added by Nitzan Mordechai about 2 months ago. Updated 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_ceph_crypto -T memcheck

==3232725== HEAP SUMMARY:
==3232725==     in use at exit: 1,011,704 bytes in 4,345 blocks
==3232725==   total heap usage: 45,661 allocs, 41,316 frees, 16,666,589 bytes allocated
==3232725== 
==3232725== 32 bytes in 1 blocks are definitely lost in loss record 103 of 315
==3232725==    at 0x4C3BDBB: calloc (vg_replace_malloc.c:1117)
==3232725==    by 0x83A78C2: __cxa_thread_atexit_impl (cxa_thread_atexit_impl.c:106)
==3232725==    by 0x7ABB92C: __cxa_thread_atexit (atexit_thread.cc:46)
==3232725==    by 0x558D3BC: CachedStackStringStream::CachedStackStringStream() (StackStringStream.h:132)
==3232725==    by 0x5632EFB: MutableEntry (Entry.h:56)
==3232725==    by 0x5632EFB: AdminSocket::entry() (admin_socket.cc:245)
==3232725==    by 0x7AE9BA2: execute_native_thread_routine (thread.cc:80)
==3232725==    by 0x4E4F1CE: start_thread (pthread_create.c:479)
==3232725==    by 0x838FD82: clone (clone.S:95)
==3232725== 
==3232725== 64 bytes in 1 blocks are definitely lost in loss record 144 of 315
==3232725==    at 0x4C37833: operator new(unsigned long) (vg_replace_malloc.c:417)
==3232725==    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)
==3232725==    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)
==3232725==    by 0x56339AB: AdminSocket::init(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) (admin_socket.cc:1053)
==3232725==    by 0x5688DEF: common_init_finish(ceph::common::CephContext*) (common_init.cc:106)
==3232725==    by 0x1423AE: main (ceph_crypto.cc:283)
==3232725== 
==3232725== 4,472 (8 direct, 4,464 indirect) bytes in 1 blocks are definitely lost in loss record 304 of 315
==3232725==    at 0x4C37833: operator new(unsigned long) (vg_replace_malloc.c:417)
==3232725==    by 0x558CCEE: allocate (new_allocator.h:127)
==3232725==    by 0x558CCEE: allocate (allocator.h:185)
==3232725==    by 0x558CCEE: allocate (alloc_traits.h:464)
==3232725==    by 0x558CCEE: _M_allocate (stl_vector.h:346)
==3232725==    by 0x558CCEE: _M_allocate (stl_vector.h:343)
==3232725==    by 0x558CCEE: void std::vector<std::unique_ptr<StackStringStream<4096ul>, std::default_delete<StackStringStream<4096ul> > >, std::allocator<std::unique_ptr<StackStringStream<4096ul>, std::default_delete<StackStringStream<4096ul> > > > >::_M_realloc_insert<std::unique_ptr<StackStringStream<4096ul>, std::default_delete<StackStringStream<4096ul> > > >(__gnu_cxx::__normal_iterator<std::unique_ptr<StackStringStream<4096ul>, std::default_delete<StackStringStream<4096ul> > >*, std::vector<std::unique_ptr<StackStringStream<4096ul>, std::default_delete<StackStringStream<4096ul> > >, std::allocator<std::unique_ptr<StackStringStream<4096ul>, std::default_delete<StackStringStream<4096ul> > > > > >, std::unique_ptr<StackStringStream<4096ul>, std::default_delete<StackStringStream<4096ul> > >&&) (vector.tcc:440)
==3232725==    by 0x558D38A: emplace_back<std::unique_ptr<StackStringStream<4096>, std::default_delete<StackStringStream<4096> > > > (vector.tcc:121)
==3232725==    by 0x558D38A: CachedStackStringStream::~CachedStackStringStream() (StackStringStream.h:146)
==3232725==    by 0x5632F73: ~MutableEntry (Entry.h:61)
==3232725==    by 0x5632F73: AdminSocket::entry() (admin_socket.cc:245)
==3232725==    by 0x7AE9BA2: execute_native_thread_routine (thread.cc:80)
==3232725==    by 0x4E4F1CE: start_thread (pthread_create.c:479)
==3232725==    by 0x838FD82: clone (clone.S:95)

Actions #1

Updated by Nitzan Mordechai about 2 months ago

  • Tags changed from low-hanging-fruit to #low-hanging-fruit
Actions #2

Updated by Nitzan Mordechai about 2 months ago

  • Tags changed from #low-hanging-fruit to low-hanging-fruit
Actions

Also available in: Atom PDF