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/CC1350: CCS segfault when env variable too long

Part Number: CC1350
Other Parts Discussed in Thread: CCSTUDIO

Tool/software: Code Composer Studio

I debugged a segfault at startup that occurred on CCSv7 and CCSv8.

Turns out there is stack corruption when the environment variable "no_proxy" contains ~256 chars or more.

Steps to reproduce:

$ cd ~/ti/ccsv7/eclipse
$ ./ccstudio
< works fine >
<CTRL-C>
$ no_proxy=`seq 100` ./ccstudio
Segmentation fault (core dumped)

This was at work where the IT environment has gone somewhat off the rails. Other environment variables might also trigger this.

Since all current segfault-at-startup posts on the forum points to either tweaking jvm stack size (-Xmx/-Xss) or an obscure kernel bug, I thought a post was in order.