This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Startup problem
On Thu, 2004-06-10 at 09:23, Sven Rehfuss wrote:
> Hi,
> use a debugger and check the code. If the routines modify stack
> variables before decrementing the stack pointer, it maybe is the same
> problem I had.
> If it is the same problem, I can give you the solution.
Why not share this solution with us all? After all, that's what this
forum is for!
>
> Regards,
> Sven Rehfuß
>
>
> Am Do, den 10.06.2004 schrieb Rycerz Roman-G11565 um 17:08:
> > Hi
> >
> > I have an intermittent problem. When starting up the eCos kernel the call to "cyg_hal_invoke_constructors" sometimes fails with a segmentation violation.
> > It seems to happening when the destructors are being called.
> > in thread.cxx
> >
> > its in the routine "~cyg_thread_remove_from_list", it seem to be working it way back thru a linked list assigning
> > prev = prev->list_next when it blows up prev is set to the contents of memory "0", location a null ptr problem.
> >
> > I know this is a quite vague description, and I may all wrong..
> > But does anyone have any ideas why this is happening ???
You've not told us much about your environment.
* What target platform [processor architecture]?
* What tools are you using
* What eCos configuration
* Is this repeatable or random
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss