Project

General

Profile

Actions

Bug #18395

closed

ceph_test_rados_api_watch_notify generates valgrind invalid read errors

Added by Brad Hubbard over 7 years ago. Updated over 7 years ago.

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

0%

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

Description

==26117== Invalid read of size 8
==26117==    at 0x34616E: operator-= (atomic_base.h:320)
==26117==    by 0x34616E: deallocate_aligned (mempool.h:335)
==26117==    by 0x34616E: operator delete (buffer.cc:287)
==26117==    by 0x34616E: ceph::buffer::raw_combined::~raw_combined() (buffer.cc:259)
==26117==    by 0x33C7E6: ceph::buffer::ptr::release() (buffer.cc:889)
==26117==    by 0x2D881C: ~ptr (buffer.h:254)
==26117==    by 0x2D881C: ceph::buffer::list::~list() (buffer.h:341)
==26117==    by 0xC20141F: __run_exit_handlers (exit.c:83)
==26117==    by 0xC201479: exit (exit.c:105)
==26117==    by 0xC1E7407: (below main) (libc-start.c:323)
==26117==  Address 0xc7b2960 is 32 bytes inside a block of size 40 free'd
==26117==    at 0x986121A: operator delete(void*) (vg_replace_malloc.c:576)
==26117==    by 0x412A87: deallocate (new_allocator.h:110)
==26117==    by 0x412A87: deallocate (alloc_traits.h:442)
==26117==    by 0x412A87: _M_deallocate_node (hashtable_policy.h:1973)
==26117==    by 0x412A87: _M_deallocate_nodes (hashtable_policy.h:1984)
==26117==    by 0x412A87: clear (hashtable.h:1901)
==26117==    by 0x412A87: ~_Hashtable (hashtable.h:1227)
==26117==    by 0x412A87: ~unordered_map (unordered_map.h:98)
==26117==    by 0x412A87: ~pool_t (mempool.h:208)
==26117==    by 0x412A87: __tcf_0 (mempool.cc:29)
==26117==    by 0xC20141F: __run_exit_handlers (exit.c:83)
==26117==    by 0xC201479: exit (exit.c:105)
==26117==    by 0xC1E7407: (below main) (libc-start.c:323)
==26117==  Block was alloc'd at
==26117==    at 0x98601FC: operator new(unsigned long) (vg_replace_malloc.c:334)
==26117==    by 0x2CEFB0: allocate (new_allocator.h:104)
==26117==    by 0x2CEFB0: allocate (alloc_traits.h:416)
==26117==    by 0x2CEFB0: _M_allocate_node<const std::piecewise_construct_t&, std::tuple<char const*&&>, std::tuple<> > (hashtable_policy.h:1947)
==26117==    by 0x2CEFB0: operator[] (hashtable_policy.h:620)
==26117==    by 0x2CEFB0: operator[] (unordered_map.h:908)
==26117==    by 0x2CEFB0: get_type (mempool.h:235)
==26117==    by 0x2CEFB0: init (mempool.h:278)
==26117==    by 0x2CEFB0: pool_allocator (mempool.h:283)
==26117==    by 0x2CEFB0: __static_initialization_and_destruction_0 (buffer.cc:241)
==26117==    by 0x2CEFB0: _GLOBAL__sub_I_buffer.cc (buffer.cc:2560)
==26117==    by 0x6E583C: __libc_csu_init (in /home/brad/working/src/ceph/build/bin/ceph_test_rados_api_watch_notify)
==26117==    by 0xC1E738F: (below main) (libc-start.c:245)
Actions #1

Updated by Kefu Chai over 7 years ago

  • Status changed from New to 12
  • Assignee set to Kefu Chai
Actions #2

Updated by Kefu Chai over 7 years ago

  • Status changed from 12 to Fix Under Review
Actions #3

Updated by Brad Hubbard over 7 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF