SIGSEGV in rocksdb::MergingIterator::Next() when CompactionJob: Version 7.1.1 #10755

### Expected behavior:
RocksDB works well during YCSB load phase

### Actual behavior:
Each time RocksDB worked well at the beginning but then run into SIGSEGV after 1 hour or 3 hours during YCSB load phase.
And it always happened at rocksdb::MergingIterator::Next() when doing BG Compaction.
Below is the frame when error occurs:
Stack: [0x00007f2a7abe7000,0x00007f2a7b3e6000], sp=0x00007f2a7b3e3300, free space=8176k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [] rocksdb::Customizable::AreEquivalent(rocksdb::ConfigOptions const&, rocksdb::Configurable const*, std::string*) const+0x3a
C [] rocksdb::MergingIterator::Next()+0x2d5
C [] rocksdb::CompactionIterator::Next()+0x1be
C [] rocksdb::CompactionJob::ProcessKeyValueCompaction(rocksdb::CompactionJob::SubcompactionState*)+0xca6
C [] rocksdb::CompactionJob::Run()+0x273
C [] rocksdb::DBImpl::BackgroundCompaction(bool*, rocksdb::JobContext*, rocksdb::LogBuffer*, rocksdb::DBImpl::PrepickedCompaction*, rocksdb::Env::Priority)+0xf88
C [] rocksdb::DBImpl::BackgroundCallCompaction(rocksdb::DBImpl::PrepickedCompaction*, rocksdb::Env::Priority)+0xd7
C [] rocksdb::DBImpl::BGWorkCompaction(void*)+0x4e
C [] rocksdb::ThreadPoolImpl::Impl::BGThread(unsigned long)+0x228
C [] rocksdb::ThreadPoolImpl::Impl::BGThreadWrapper(void*)+0x62

For more information, please see the attached two files about the backtrace dump.

### Steps to reproduce the behavior

  1. compile ycsb using rocksdb version 7.1.1
  2. run cmd under YCSB directory
    ./bin/ycsb load rocksdb -s -P workloads/workloada -P workloads/large.dat -p columnfamily=default

recordcount=85000000 threadcount=2 operationcount=85000000 measurementtype=timeseries timeseries.granularity=1000

There are 2 attachments in Github for this issue