LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Other *NIX (https://www.linuxquestions.org/questions/other-%2Anix-55/)
-   -   Stack corruption (https://www.linuxquestions.org/questions/other-%2Anix-55/stack-corruption-4175540766/)

mmandava 04-26-2015 12:40 AM

Stack corruption
 
Hi,

Ian facing a issue with stack corruption in my application.The application foot print size is very big. Is there any tool available in macos to find out place, where the stack corruption in the code.

Also observed that , when i add a new variable inside one specific function , the application is working fine.If i remove the variable same issue is observed.

Thanks in Advance.

veerain 04-26-2015 03:21 AM

Which application you are using?

Have you tried 'ulimit' command. It allows one to raise stack size.

rhubarbdog 05-02-2015 02:21 PM

Stack corruption
 
It sounds like your over running memory by a byte or so. by 1 errors as they're known are notoriously hard to find as they often do not reveal themselves until a little while later.

look at array access
are all strings nul terminated
are you miss using memset, memmove or memcpy

try running the program in gdb or debugger of your choice.


All times are GMT -5. The time now is 08:59 PM.