简体   繁体   中英

Unexplained memory leak -> _stack_chk_fail

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM