Describe the bug
ShmDispatcher crash by race condition
To Reproduce
Steps to reproduce the behavior:
- Message enqueue to shm dispatcher
- Segment remap
- ShmDispatcher start to process message
- Use overdue idx to bounds check for new segment
- Crash
To resolve
Bounds check should before remap call