Project

General

Profile

Actions

Bug #10914

closed

seg fault: librbd::LibrbdWriteback::read at librbd/LibrbdWriteback.cc:124

Added by Jason Dillaman about 9 years ago. Updated about 9 years ago.

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 #1

Updated by Jason Dillaman about 9 years ago

  • Status changed from New to Fix Under Review
Actions #2

Updated by Jason Dillaman about 9 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF