Resolution:
You need to isolate the actual point in execution where the memory corruption occurs the investigate the cause. To do this you could:
- Run with a memory strategy that indicates that memory is to be validated each time an allocation or free operation occurs (will have a major effect on performance)
- Add calls to CBL_MEM_VALIDATE() at appropriate points in the application