LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.

Notices


Reply
  Search this Thread
Old 04-26-2015, 12:40 AM   #1
mmandava
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
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.
 
Old 04-26-2015, 03:21 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Which application you are using?

Have you tried 'ulimit' command. It allows one to raise stack size.
 
Old 05-02-2015, 02:21 PM   #3
rhubarbdog
Member
 
Registered: Apr 2015
Location: Yorkshire, England
Distribution: Linux Mint
Posts: 145

Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Thread overran stack, or stack corrupted rrlangly Linux - Kernel 1 12-20-2011 11:04 PM
Fighting stack corruption sree_ec Programming 6 12-16-2010 02:44 PM
single 8K process stack vs 4K process stack and a seperate 4K interrupt stack charvak Linux - Kernel 1 03-17-2010 06:58 PM
Difference b/t Kernel stack and User stack hazzyb Linux - Software 2 09-29-2008 07:40 PM
Network protocol stack corruption. Has it ever happened? tomdkat Linux - Networking 1 11-27-2005 09:42 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX

All times are GMT -5. The time now is 10:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration