Project

General

Profile

Actions

Bug #575

closed

monmaptool terminates when input file is not a monmap

Added by Wido den Hollander over 13 years ago. Updated over 13 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Monitor
Target version:
% Done:

0%

Source:
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

For example:

root@noisy:/var/lib/ceph/mon.noisy/monmap# monmaptool --print latest 
monmaptool: monmap file latest
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted
root@noisy:/var/lib/ceph/mon.noisy/monmap# monmaptool --print /root/.bashrc 
monmaptool: monmap file /root/.bashrc
terminate called after throwing an instance of 'ceph::buffer::end_of_buffer'
  what():  buffer::end_of_buffer
Aborted
root@noisy:/var/lib/ceph/mon.noisy/monmap#

It should exit with a non-zero exit status and a nice message when the input is not a monmap.

Actions

Also available in: Atom PDF