View Single Post
  #6   Spotlight this post!  
Unread 02-16-2016, 05:31 AM
codedr codedr is offline
Registered User
FRC #0537
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Wisconsin
Posts: 68
codedr will become famous soon enoughcodedr will become famous soon enough
Re: Can anyone figure out what is wrong?

It looks like your program or some other function (perhaps on your behalf) is calling strstr() to find a substring in a larger string. Are your processing strings in your code?

If you are, I would guess that some assumption you've made about the string always having that value is not true, or your code is not finding the ending condition and is continuing past the end of the string searching for the value.

Are you able to get a full traceback of the stack when the failure occurs?

I would try and find out what the last thing you are doing in your code before it crashes.
Using printf() or logging to narrow the location down might help.
Reply With Quote