Tutorial :Unexplained memory leak -> _stack_chk_fail



Question:

When my app starts up, I get 1 or more 4.00KB memory leaks with the frame being _stack_chk_fail and the library libSystem.B.dylib. Any suggestions on what this could be would be appreciated. Thank you.


Solution:1

This website - http://blog.freimann.org/archives/16-__stack_chk_fail-when-compiling-filo.html

suggests you add

-fno-stack-protector  

to your compile options.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »