Re: Re: CyaSSL library port (WIP): Space for struct corrupts other eCos-data in RAM

Ross Younger <[email protected]>
Newsgroups gmane.os.ecos.general
Message-ID <[email protected]>
On 11/10/13 21:18, Daniel Zebralla wrote:
> I now solved the problem by putting all CyaSSL-related stuff and tests into
> an individual thread:
 > Is there some general rule of thumb, that one should not do 
memory-intensive
 > work in the 'main'-thread?

Did you by any chance put your RsaKey struct on the stack, as opposed to 
static or malloced? Threads in eCos often have very small stacks; the 
corruption you describe sounds typical of a stack overrun.

You can find the stack size for the default ("main") thread in the .ecc 
file you're using.


Ross

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.