Use libasan to catch a Stack over flow bug #62203
Unanswered
shahawi-sumup
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Zephyr Team,
I'm trying to use
CONFIG_STACK_CANARIES=y
with ztest on Zephyr v2.7.1 (Board=native_posix), the problem is in one of my unit tests i get OS CrashThe unit tests started with the following args:
tests
prj.conf
:How can i know the source of the problem ? libasan didn't catch it, unless I raise a trap signal in the fault handler:
but that also didn't help that much
Without
CONFIG_STACK_CANARIES
tests run smoothly without any problem, but that looks to me as if the problem is hidden until it bites back in the future.What are some suggestions to help me catch the source of the bug ?
Thanks in advance :)
Beta Was this translation helpful? Give feedback.
All reactions