This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]