Bug #15261
ceph-bluefs-tool segfault
% Done:
0%
Source:
other
Tags:
bluestore, bluefs
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Executing
- ./ceph-bluefs-tool
as it is leads to segfault due to reference to args0. Also, there's less help from the tool of what parameters it expects.
Moreover, there's an assert() failure when checking the return value of buffer::list::write_fd():
int rc = bl.write_fd(fd);
assert(rc == r);
... write_fd() returns 0 on success.
Associated revisions
os/bluestore: ceph-bluefs-tool fixes
Couple of fixes:
- check vector size before using
- fix assert() failure after write_fd()
Fixes: #15261
Signed-off-by: Venky Shankar <vshankar@redhat.com>
History
#1 Updated by Venky Shankar about 8 years ago
Patch to follow.
#2 Updated by Venky Shankar about 8 years ago
#3 Updated by Nathan Cutler about 8 years ago
- Status changed from New to Fix Under Review
#4 Updated by Sage Weil almost 8 years ago
- Status changed from Fix Under Review to Resolved