Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

***stack smashing detected*** #37

Closed
pifordi opened this issue May 18, 2018 · 1 comment
Closed

***stack smashing detected*** #37

pifordi opened this issue May 18, 2018 · 1 comment

Comments

@pifordi
Copy link

pifordi commented May 18, 2018

I give an error when I run uart_example
*** stack smashing detected ***: ./uart_example terminated
Aborted

How to fix it?
I want to take some samples from guidance and process it. The executable file is ended after for loop ends and I can not execute functions after for loop. for loop means(for(int i = 0; i < 1000; ++i))

@pifordi
Copy link
Author

pifordi commented May 19, 2018

To solve the issue edit makefile on uart_example like the following;

"CXX = g++ -fno-stack-protector"

This enable buffer overflow and example works fine.

@pifordi pifordi closed this as completed May 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant