This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: about elix
- To: <ecos-discuss at sources dot redhat dot com>
- Subject: Re: [ECOS] about elix
- From: "wangwei" <wangw at start dot com dot cn>
- Date: Thu, 24 May 2001 15:05:31 +0800
- References: <003b01c0e41b$0462af00$592da8c0@start.com.cn>
Hi:
I met a problem When tring nanox in ecos .
In file ntetris.c ,The function nanosleep() is called .
this function belong elix module ,file "time.cxx" ; it will call
pthread_self_info()
to get pthread_info , but the thread "ntetris" isn't created by
pthread_create(),but cyg_thread_create(). So it will return a involid
pthread_info which value is 0 .
when nanosleep() called "self->thread->delay( ticks )" in file time.cxx
line number 633 , it will read or write some member variable of cyg_thread
,it is
possible to cause a exception 4 .(invilid memory operation).
Do you think it is correct ?
Thinks!