Project

General

Profile

Bug #7009

mon: leaking memory from elector mon commands

Added by Sage Weil over 6 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
Monitor
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

    <frame>
      <ip>0x74EB36</ip>
      <obj>/usr/bin/ceph-mon</obj>
      <fn>ceph::buffer::list::iterator::copy(unsigned int, std::string&amp;)</fn>
      <dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-0.73-332-g707454b/src/common</dir>
      <file>buffer.cc</file>
      <line>880</line>
    </frame>
    <frame>
      <ip>0x658DB3</ip>
      <obj>/usr/bin/ceph-mon</obj>
      <fn>MonCommand::decode_array(MonCommand**, int*, ceph::buffer::list::iterator&amp;)</fn>
      <dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-0.73-332-g707454b/src/./include</dir>
      <file>encoding.h</file>
      <line>174</line>
    </frame>
    <frame>
      <ip>0x657662</ip>
      <obj>/usr/bin/ceph-mon</obj>
      <fn>Elector::handle_victory(MMonElection*)</fn>
      <dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-0.73-332-g707454b/src/mon</dir>
      <file>Elector.cc</file>
      <line>326</line>
    </frame>
    <frame>
      <ip>0x658718</ip>
      <obj>/usr/bin/ceph-mon</obj>
      <fn>Elector::dispatch(Message*)</fn>
      <dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-0.73-332-g707454b/src/mon</dir>
      <file>Elector.cc</file>
      <line>418</line>
    </frame>
    <frame>
      <ip>0x584DC6</ip>
      <obj>/usr/bin/ceph-mon</obj>
      <fn>Monitor::dispatch(MonSession*, Message*, bool)</fn>
      <dir>/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-0.73-332-g707454b/src/mon</dir>
      <file>Monitor.cc</file>
      <line>2891</line>
    </frame>

ubuntu@teuthology:/a/sage-2013-12-15_08:46:18-fs-wip-mds-cluster2-testing-basic-plana/4379


Related issues

Duplicated by Ceph - Bug #7015: valgrind issues in mon (I think based on the output below) Duplicate 12/16/2013

Associated revisions

Revision 7e618c93 (diff)
Added by Sage Weil over 6 years ago

mon: move supported_commands fields, methods into Monitor, and fix leak

We were leaking the static leader_supported_mon_commands. Move this into
the class so that we can clean up in the destructor.

Rename get_command_descriptions -> format_command_descriptions.

Fixes: #7009
Signed-off-by: Sage Weil <>

History

#1 Updated by Sage Weil over 6 years ago

  • Status changed from 12 to In Progress
  • Assignee changed from Greg Farnum to Sage Weil

#2 Updated by Sage Weil over 6 years ago

  • Status changed from In Progress to Fix Under Review

#3 Updated by Sage Weil over 6 years ago

  • Status changed from Fix Under Review to Resolved

Also available in: Atom PDF