![]() |
Can anyone figure out what is wrong?
Every minute or so of teleop, my code crashes and spews this out in the debugger:
Code:
0xb6fd7d40 in ?? () from f:\frc/lib/ld-linux.so.3 |
Re: Can anyone figure out what is wrong?
It looks like it's having trouble accessing your libraries. Have you tried reformatting the roboRIO?
|
Re: Can anyone figure out what is wrong?
Can you check if you have a memory leak? Monitoring the free RAM display on the driver station will work. If you want more insight, you can try running FRCUserProgram using valgrind, which diagnoses common memory leaks and errors. However, I'm not sure if this has been attempted on a roboRIO before, so you might have some trouble setting it up. If you could post your code, that would be great.
|
Re: Can anyone figure out what is wrong?
Quote:
|
Re: Can anyone figure out what is wrong?
Have you tried running in debug to get a more complete stack trace?
|
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. |
| All times are GMT -5. The time now is 09:19 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi