This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Stack error...
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: Re: [ECOS] Stack error...
- From: Cristiano Ligieri Pereira <cpereira at ics dot uci dot edu>
- Date: Fri, 20 Jul 2001 10:12:37 -0700 (PDT)
It seems to be working fine with the diag_printf instead of printf. At
least it has been run for several hours already without any crash.
Thanks,
Cristiano.
> > I'm using some debugging printf's within the kernel instead of TRACING
> > cause the TRACING messages are too big... Could it be a possible problem?
>
> printf() does kernel operations like lock mutexes and so on. If used from
> _within_ the kernel I could easily imagine it causing you to fill up your
> stack, due to effectively calling into itself again and again. Try
> diag_printf() from <cyg/infra/diag.h> if you don't mind it being somewhat
> simpler than standard printf().