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: infinite loop of create a new thread


pyxue wrote:
> 
> Hi;
> 
> I meet a strange problem during my porting ecos to another platform. If I
> didn't use create a new  thread function in my  test, everything
> seems well, but if I use this function, my new thread can't run, on the
> other hand, the program jump to the init io device, and run in a circle
> from init io device to cyg_start.
> I am sure the kernel should be the same in porting ecos to another
> platform, but when we create a new thread, maybe we use something which is
> related to platform, and this cause my program not to work well.
> Can someone give me some indications ? Many thanks!

Stack corruption? Is the board actually resetting - sometimes failures can
cause a board to reset, which may give the appearance of it looping.

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

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