Created
January 24, 2023 13:55
-
-
Save aclamk/3db31e0cdefbb12fbfbbdedfb781e587 to your computer and use it in GitHub Desktop.
btree warning
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
akupczyk@o08 build-rel]$ ninja ceph_test_objectstore | |
[1/3] Building CXX object src/os/CMakeFiles/os.dir/bluestore/BlueStore.cc.o | |
In file included from ../src/include/cpp-btree/btree_set.h:49, | |
from ../src/os/bluestore/BlueStore.cc:28: | |
../src/include/cpp-btree/btree.h: In member function ‘btree::internal::btree<Params>::iterator btree::internal::btree<Params>::internal_emplace(btree::internal::btree<Params>::iterator, Args&& ...) [with Args = {const long unsigned int&}; Params = btree::internal::set_params<long unsigned int, std::less<long unsigned int>, mempool::pool_allocator<mempool::mempool_bluestore_fsck, long unsigned int>, 256, false>]’: | |
../src/include/cpp-btree/btree.h:515:84: warning: array subscript 32 is outside array bounds of ‘btree::internal::AlignedAlloc<8, mempool::pool_allocator<mempool::mempool_bluestore_fsck, long unsigned int> >::M [32]’ [-Warray-bounds] | |
515 | btree_node*& mutable_child(int i) { return GetField<&internal_fields::children>()[i]; } | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | |
In file included from ../src/os/bluestore/BlueStore.h:41, | |
from ../src/os/bluestore/BlueStore.cc:30: | |
../src/include/mempool.h:348:33: note: referencing an object of size between 32 and 256 allocated by ‘void* operator new [](std::size_t)’ | |
348 | T* r = reinterpret_cast<T*>(new char[total]); | |
| ^~~~~~~~~~~~~~~ | |
In file included from ../src/include/cpp-btree/btree_set.h:49, | |
from ../src/os/bluestore/BlueStore.cc:28: | |
../src/include/cpp-btree/btree.h:515:84: warning: array subscript 32 is outside array bounds of ‘btree::internal::AlignedAlloc<8, mempool::pool_allocator<mempool::mempool_bluestore_fsck, long unsigned int> >::M [32]’ [-Warray-bounds] | |
515 | btree_node*& mutable_child(int i) { return GetField<&internal_fields::children>()[i]; } | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | |
In file included from ../src/os/bluestore/BlueStore.h:41, | |
from ../src/os/bluestore/BlueStore.cc:30: | |
../src/include/mempool.h:348:33: note: referencing an object of size between 32 and 256 allocated by ‘void* operator new [](std::size_t)’ | |
348 | T* r = reinterpret_cast<T*>(new char[total]); | |
| ^~~~~~~~~~~~~~~ | |
In file included from ../src/include/cpp-btree/btree_set.h:49, | |
from ../src/os/bluestore/BlueStore.cc:28: | |
../src/include/cpp-btree/btree.h:522:22: warning: array subscript 32 is outside array bounds of ‘btree::internal::AlignedAlloc<8, mempool::pool_allocator<mempool::mempool_bluestore_fsck, long unsigned int> >::M [32]’ [-Warray-bounds] | |
522 | mutable_child(i) = c; | |
| ~~~~~~~~~~~~~~~~~^~~ | |
In file included from ../src/os/bluestore/BlueStore.h:41, | |
from ../src/os/bluestore/BlueStore.cc:30: | |
../src/include/mempool.h:348:33: note: referencing an object of size between 32 and 256 allocated by ‘void* operator new [](std::size_t)’ | |
348 | T* r = reinterpret_cast<T*>(new char[total]); | |
| ^~~~~~~~~~~~~~~ | |
In file included from ../src/include/cpp-btree/btree_set.h:49, | |
from ../src/os/bluestore/BlueStore.cc:28: | |
../src/include/cpp-btree/btree.h:514:83: warning: array subscript 32 is outside array bounds of ‘btree::internal::AlignedAlloc<8, mempool::pool_allocator<mempool::mempool_bluestore_fsck, long unsigned int> >::M [32]’ [-Warray-bounds] | |
514 | btree_node* child(int i) const { return GetField<&internal_fields::children>()[i]; } | |
| ^ | |
In file included from ../src/os/bluestore/BlueStore.h:41, | |
from ../src/os/bluestore/BlueStore.cc:30: | |
../src/include/mempool.h:348:33: note: referencing an object of size between 32 and 256 allocated by ‘void* operator new [](std::size_t)’ | |
348 | T* r = reinterpret_cast<T*>(new char[total]); | |
| ^~~~~~~~~~~~~~~ | |
[3/3] Linking CXX executable bin/ceph_test_objectstore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment