Actions
Bug #10914
closedseg fault: librbd::LibrbdWriteback::read at librbd/LibrbdWriteback.cc:124
Status:
Resolved
Priority:
High
Assignee:
-
Target version:
-
% Done:
0%
Source:
other
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Current code static_casts the provided Context to C_AioRead when the actual type is ObjectCacher::C_ReadFinish. Therefore read op flags are always incorrectly set and a crash will occur whenever the Context is near the end of the heap.
124 AioRead *req = (static_cast<C_AioRead *>(onfinish))->get_req();
(gdb) set print object on (gdb) ptype onfinish type = /* real type = ObjectCacher::C_ReadFinish * */
Actions