Bug #575
monmaptool terminates when input file is not a monmap
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
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.
History
#1 Updated by Sage Weil over 13 years ago
- Target version set to v0.24
#2 Updated by Sage Weil over 13 years ago
- Assignee set to Samuel Just
#3 Updated by Samuel Just over 13 years ago
- Status changed from New to Resolved