Closed andreasstieger closed 1 year ago
Still happening on 8.0.0
From https://kojipkgs.fedoraproject.org//packages/rocksdb/7.8.3/2.fc39/data/logs/x86_64/build.log
builddir/build/BUILD/rocksdb-7.8.3/db/c.cc: In function 'rocksdb_batched_multi_get_cf':
/builddir/build/BUILD/rocksdb-7.8.3/db/c.cc:1463:59: warning: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
1463 | PinnableSlice* value_slices = new PinnableSlice[num_keys];
| ^
/usr/include/c++/13/new:128:26: note: in a call to allocation function 'operator new []' declared here
128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^
/builddir/build/BUILD/rocksdb-7.8.3/db/version_set.cc: In member function '__ct_base ':
/builddir/build/BUILD/rocksdb-7.8.3/db/version_set.cc:2061:56: warning: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
2061 | files_(new std::vector<FileMetaData*>[num_levels_]),
| ^
/usr/include/c++/13/new:128:26: note: in a call to allocation function 'operator new []' declared here
128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^
In member function '__ct ',
inlined from '__ct_base ' at /builddir/build/BUILD/rocksdb-7.8.3/db/version_builder.cc:1317:60:
/builddir/build/BUILD/rocksdb-7.8.3/db/version_builder.cc:279:41: warning: argument 1 value '18446744073709551615' exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=]
279 | levels_ = new LevelState[num_levels_];
| ^
/usr/include/c++/13/new: In member function '__ct_base ':
/usr/include/c++/13/new:128:26: note: in a call to allocation function 'operator new []' declared here
128 | _GLIBCXX_NODISCARD void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
| ^
turned off build fails on warnings
Expected behavior
7.8.3 builds. This does not seem to be new, same for 7.7.8
Actual behavior
Steps to reproduce the behavior
Toolchain versions:
cmake: