This unfortunately usually means a memory corruption. Some double freeing of memory, function that should return but doesn't or any other type of undefined behavior.
Your best bet of solving this, unless you have a clue as to where this corruption is, is to use a memory analysis tool.