This is the mail archive of the ecos-discuss@sources.redhat.com 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: Error on Cyg_Counter::add_alarm


> If you enable assertions (always a good idea during
> development) you will also enable stack checking. 

I did not have assertions enabled, and I should
have known better.

But after enabling the traces and providing my own 
cyg_assert_fail() I noticed that, with the stack back
at 8K, the assertion comes immediately at the start of
the DHCP process (network stack).

So, the 8K might be plenty for a run-of-the-mill thread,
but as soon as you begin adding things such as an entire
network stack, things get ugly pretty quickly.

The only course of action now it to raise the stack space
until the assertions disappear, and then, as Arkadi
recommended, give it some slack.

Thanks
Tony


____________________________________________________________
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10

-- 
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]