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]

Re: cyg_current_time () locking up


On Fri, Aug 10, 2001 at 05:35:48PM +0100, Hugo Tyson wrote:
> Grant Edwards <grante@visi.com> writes:
> > On Fri, Aug 10, 2001 at 05:50:46PM +0200, Andrew Lunn wrote:
> > > On Fri, Aug 10, 2001 at 09:47:47AM -0600, Trenton D. Adams wrote:
> > 
> > > > Nope, that's not what's locking it up.  I get the error below after
> > > > fiddling with some of the code.  What does it mean?
> > > > 
> > > > ASSERT FAIL: <2>[166]static void Cyg_Scheduler::unlock_inner() Bad next
> > > > thread
> > > 
> > > At a guess, you have a stack overflow which has corrupted something
> > > important in one of your threads. Try making your stacks bigger.
> > 
> > I don't remember seeing the choice, but does eCos have an
> > option to check for stack overflows
> 
> See the option CYGFUN_KERNEL_ALL_THREADS_STACK_CHECKING.

Cool!  

One of the disadvantages of editing ecos.ecc rather than using
a GUI is that it's easy to overlook things like that.

-- 
Grant Edwards
grante@visi.com


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