Project

General

Profile

Bug #18252

Memory leaks in object_list_begin and object_list_end

Added by Brad Hubbard 10 months ago. Updated 9 months ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
librados
Target version:
-
Start date:
12/14/2016
Due date:
% Done:

0%

Source:
Development
Tags:
Backport:
jewel
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Release:
Needs Doc:
No

Description

Clang Analyzer flags memory leaks in librados::IoCtx::object_list_begin and
librados::IoCtx::object_list_end and valgrind agrees.

==27742== 128 bytes in 1 blocks are definitely lost in loss record 45 of 79
==27742==    at 0x98641FC: operator new(unsigned long) (vg_replace_malloc.c:334) 
==27742==    by 0x30280D: librados::ObjectCursor::ObjectCursor() (librados.cc:5914)
==27742==    by 0x302BD5: librados::IoCtx::object_list_begin() (librados.cc:5943)
==27742==    by 0x2EACA9: LibRadosListPP_EnumerateObjectsPP_Test::TestBody() (list.cc:805)
==27742==    by 0x3852C3: HandleSehExceptionsInMethodIfSupported<testing::Test, void> (gtest.cc:2402)
==27742==    by 0x3852C3: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2438)
==27742==    by 0x37C289: testing::Test::Run() (gtest.cc:2475)
==27742==    by 0x37C3D7: testing::TestInfo::Run() (gtest.cc:2656)
==27742==    by 0x37C4B4: testing::TestCase::Run() (gtest.cc:2774)
==27742==    by 0x37C796: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:4649)
==27742==    by 0x385773: HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (gtest.cc:2402)
==27742==    by 0x385773: bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2438)
==27742==    by 0x37CAB3: testing::UnitTest::Run() (gtest.cc:4257)
==27742==    by 0x2D1DA8: RUN_ALL_TESTS (gtest.h:2233)
==27742==    by 0x2D1DA8: main (unit.cc:51)
==27742==ยท
==27742== 128 bytes in 1 blocks are definitely lost in loss record 46 of 79
==27742==    at 0x98641FC: operator new(unsigned long) (vg_replace_malloc.c:334) 
==27742==    by 0x30280D: librados::ObjectCursor::ObjectCursor() (librados.cc:5914)
==27742==    by 0x302C55: librados::IoCtx::object_list_end() (librados.cc:5952)
==27742==    by 0x2EACC2: LibRadosListPP_EnumerateObjectsPP_Test::TestBody() (list.cc:806)
==27742==    by 0x3852C3: HandleSehExceptionsInMethodIfSupported<testing::Test, void> (gtest.cc:2402)
==27742==    by 0x3852C3: void testing::internal::HandleExceptionsInMethodIfSupported<testing::Test, void>(testing::Test*, void (testing::Test::*)(), char const*) (gtest.cc:2438)
==27742==    by 0x37C289: testing::Test::Run() (gtest.cc:2475)
==27742==    by 0x37C3D7: testing::TestInfo::Run() (gtest.cc:2656)
==27742==    by 0x37C4B4: testing::TestCase::Run() (gtest.cc:2774)
==27742==    by 0x37C796: testing::internal::UnitTestImpl::RunAllTests() (gtest.cc:4649)
==27742==    by 0x385773: HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool> (gtest.cc:2402)
==27742==    by 0x385773: bool testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>(testing::internal::UnitTestImpl*, bool (testing::internal::UnitTestImpl::*)(), char const*) (gtest.cc:2438)
==27742==    by 0x37CAB3: testing::UnitTest::Run() (gtest.cc:4257)
==27742==    by 0x2D1DA8: RUN_ALL_TESTS (gtest.h:2233)
==27742==    by 0x2D1DA8: main (unit.cc:51)

report-ea7e12.html View - Clang Static Analyzer report (866 KB) Brad Hubbard, 12/14/2016 06:45 AM


Related issues

Copied to Ceph - Backport #18274: jewel: Memory leaks in object_list_begin and object_list_end Resolved

History

#2 Updated by Brad Hubbard 10 months ago

#3 Updated by Sage Weil 10 months ago

  • Status changed from In Progress to Pending Backport
  • Backport set to jewel

#4 Updated by Nathan Cutler 10 months ago

  • Copied to Backport #18274: jewel: Memory leaks in object_list_begin and object_list_end added

#5 Updated by Nathan Cutler 9 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF