This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS v5.1 Segmentation Fault during compile

I've recently downloaded and installed CCS v5.1 and it's been giving me some issues. As background, this is a previous problem that I had that appeard to be caused by a bad installation: Can't run GRACE on new CCS 5.1 install I'm running under Windows XP Pro SP3. I got those issues resolved by doing the installation over again as Administrator.

But now my issue is that a few of my files won't build, they generate a segmentation fault:


INTERNAL ERROR: C:\ti\ccsv5\tools\compiler\msp430\bin\acp430.exe experienced a segmentation fault while processing

This is a serious problem. Please contact Customer

Support with this message and a copy of the input file

and help us to continue to make the tools more robust.


I did some investigating, and it appears to be triggered by a rather complex data structure that I have used for at least 8 years with many different compilers. I've boiled it down to the essence needed to trigger the fault, and the code is attached. This is a very consistent fault, it happens every time. I can make it compile normally by changing the linked list so that the references are not circular, but that breaks my data integrity. Or it will compile if the circularly linked structures are never referenced, but again that's not very useful.

In the applilcation, the actual structures represent the various states of a state machine, and the links between states based on various events. As long as the links are linear, the compiler is happy. But a state machine is not very useful if it can't make loops, and as soon as I put a link back to a previous state, the compile aborts.

Any help is greatly appreciated. This is a relatively simple project, and it is falling seriously behind schedule with these development tool issues I've been experiencing.

-- Adam