Project

General

Profile

Actions

Bug #9916

closed

osd: crash in check_ops_in_flight

Added by Guang Yang over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
OSD
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
firefly
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Assertion failure:

 0> 2014-10-27 06:53:05.979871 7fd7b2156700 -1 common/buffer.cc: In function 'ceph::buffer::ptr::ptr(const ceph::buffer::ptr&
, unsigned int, unsigned int)' thread 7fd7b2156700 time 2014-10-27 06:53:05.941971
common/buffer.cc: 574: FAILED assert(_raw)

 ceph version 0.80.4 (7c241cfaa6c8c068bc9da8578ca00b9f4fc7567f)
 1: /home/y/bin64/ceph-osd() [0xaca133]
 2: (ceph::buffer::list::substr_of(ceph::buffer::list const&, unsigned int, unsigned int)+0xe4) [0xacbc84]
 3: (ceph::buffer::list::write(int, int, std::ostream&) const+0x81) [0xacbe61]
 4: (operator<<(std::ostream&, OSDOp const&)+0x1c8) [0x6cddc8]
 5: (MOSDOp::print(std::ostream&) const+0x1df) [0x71e51f]
 6: (OpTracker::check_ops_in_flight(std::vector<std::string, std::allocator<std::string> >&)+0x89a) [0x6ba68a]
 7: (OSD::check_ops_in_flight()+0x4d) [0x60767d]
 8: (OSD::tick()+0x146) [0x65f956]
 9: (Context::complete(int)+0x9) [0x660d69]
 10: (SafeTimer::timer_thread()+0x453) [0x9d1823]
 11: (SafeTimerThread::entry()+0xd) [0x9d39dd]
 12: /lib64/libpthread.so.0() [0x37aa0079d1]
 13: (clone()+0x6d) [0x37a98e8b5d]

Core dump shows the follow stack (with more details):

   ostream& operator<<(ostream& out, const OSDOp& op)
    -> case CEPH_OSD_OP_SRC_CMPXATTR: op.indata.write(0, op.op.xattr.name_len, out);
      -> buffer::list::write(int off, int len, std::ostream& out)

However, the op.indata's internal pointer for this OP is null so that it results in an assertion failure.

ceph version 0.80.4 (7c241cfaa6c8c068bc9da8578ca00b9f4fc7567f) on RHEL6.5

Actions

Also available in: Atom PDF