Justin Hawkwood wrote:
What is “__stack_chk_fail” anyway?
stack_chk_fail is a function that checks for corruption on the stack and aborts if it finds corruption…. i.e. you are corrupting the stack, you have a memory leak or are overwriting memory
Check you are releasing all you create, check you aren’t using something you previously released, check you aren’t writing past the end of some data block (string,class,memory allocated block,etc).