Actions
Bug #13496
closedlibrbd: rebuild_object_map() crashes when no object map exists
% Done:
0%
Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Doing something like:
rbd create -s 10 img rbd feature enable img exclusive-lock object-map rbd object-map rebuild img
causes a crash:
#4 0x00007fc0756a0d73 in std::terminate() () from /lib64/libstdc++.so.6 #5 0x00007fc0756a0f93 in __cxa_throw () from /lib64/libstdc++.so.6 #6 0x00007fc07711ca58 in ceph::__ceph_assert_fail (assertion=assertion@entry=0x7fc0772144e0 "object_no < m_object_map.size()", file=file@entry=0x7fc077214291 "librbd/ObjectMap.cc", line=line@entry=39, func=func@entry=0x7fc077214fa0 <librbd::ObjectMap::operator[](unsigned long)::__PRETTY_FUNCTION__> "ceph::BitVector<2u>::Reference librbd::ObjectMap::operator[](uint64_t)") at common/assert.cc:77 #7 0x00007fc07705c4ba in librbd::ObjectMap::operator[] (this=<optimized out>, object_no=<optimized out>) at librbd/ObjectMap.cc:39 #8 0x00007fc077065012 in update_object_map (new_state=0 '\000', this=0x7fc030001850) at librbd/RebuildObjectMapRequest.cc:140 #9 should_complete (r=<optimized out>, this=0x7fc030001850) at librbd/RebuildObjectMapRequest.cc:72 #10 librbd::(anonymous namespace)::C_VerifyObject::complete (this=0x7fc030001850, r=-2) at librbd/RebuildObjectMapRequest.cc:37 #11 0x00007fc0770a2cbc in librados::finish_aio_completion (c=0x7fc030001ad0, r=-2) at test/librados_test_stub/TestRadosClient.cc:47 #12 0x00007fc076f42a1a in operator() (a0=<optimized out>, this=<optimized out>) at /usr/include/boost/function/function_template.hpp:767 #13 FunctionContext::finish (this=<optimized out>, r=<optimized out>) at ./include/Context.h:460
Updated by Jason Dillaman over 8 years ago
- Status changed from Fix Under Review to Resolved
Actions