]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
bufferptr: Offset should not beyond raw_length rather than _len.
authorJianpeng Ma <jianpeng.ma@intel.com>
Mon, 4 May 2015 13:36:14 +0000 (21:36 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Mon, 4 May 2015 16:05:30 +0000 (00:05 +0800)
commit1006adbdfd8364d689930ccfc4a06b0a70ce90b2
treecf48c9a8ef946fcbea9d93c5b44e2e609453e431
parent1de75edb38c5116000897f958d6b843b598ed59f
bufferptr: Offset should not beyond raw_length rather than _len.

Fixes: #11526
Commit dfccd3d19c introduce this bug"
./include/buffer.h: 240: FAILED assert(_len >= o)

 ceph version 0.94-1402-g5ac962d
(5ac962d879d920805bd661857592860caae27f2b)
 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char
const*)+0x80) [0x1640e50]
 2: (ceph::buffer::ptr::set_offset(unsigned int)+0x3a) [0x1647462]
 3: (ceph::buffer::list::splice(unsigned int, unsigned int,
ceph::buffer::list*)+0x238) [0x16458ba]
 4: (JournalStream::read(ceph::buffer::list&, ceph::buffer::list*,
unsigned long*)+0x17c) [0x145588e]
 5: (Journaler::try_read_entry(ceph::buffer::list&)+0x1ef) [0x1453d65]
 6: (MDLog::_replay_thread()+0xc6a) [0x1434200]
 7: (MDLog::ReplayThread::entry()+0x1c) [0x10f0d88]
 8: (Thread::entry_wrapper()+0xa8) [0x16310ee]
 9: (Thread::_entry_func(void*)+0x18) [0x163103c]
 10: /lib64/libpthread.so.0() [0x334c607ee5]
 11: (clone()+0x6d) [0x334bef4d1d]
 NOTE: a copy of the executable, or `objdump -rdS <executable>` is
needed to interpret this.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/include/buffer.h