-   Linux - Embedded & Single-board computer (
-   -   How can I check stack is OK ? (

zvivered 11-29-2012 10:49 PM

How can I check stack is OK ?

I'm developing a C++ application that runs under vanilla with busybox 1.14.1

The application is one process divided into 8 threads.

The stack allocated for a thread is 256KB

What tool can I use to make sure that my stack is big enough ?

I suspect that in a specific scenario the stack overflows.


pan64 11-30-2012 06:47 AM

probably you can try valgrind:

Mara 12-02-2012 01:14 PM

Compile your program with -fstack-check. GCC will add some stack protection code. Valgrind is a good tool too. Using the two you should be able to detect most of the problems.

All times are GMT -5. The time now is 12:51 PM.