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]
Other format: [Raw text]

using asserts enabled with linux synthetic target


Hi - Has anyone successfully run the linux synthetic target with asserts
enabled?  

I am trying to do so, but am running into problems.

When the network alarm thread runs and preempts the idle thread, I an
error saying that the idle thread it trying to sleep.  That seems like
an ok thing in this case.  Here's the stack trace.  

0  Cyg_Scheduler_Implementation::rem_thread (this=0x20134a0,
thread=0x200f3a0)
    at
/swdev/services/os/ecos-Dec2001/packages/kernel/current/src/sched/mlqueu
e.cxx:287
#1  0x0107870e in Cyg_Thread::set_priority (this=0x200f3a0,
new_priority=7)
    at
/swdev/services/os/ecos-Dec2001/packages/kernel/current/src/common/threa
d.cxx:876
#2  0x0107a57c in Cyg_SchedThread::set_inherited_priority
(this=0x200f3b8, pri=7, thread=0x20214e0)
    at
/swdev/services/os/ecos-Dec2001/packages/kernel/current/src/sched/sched.
cxx:592
#3  0x0107a68e in Cyg_SchedThread::inherit_priority (this=0x200f3b8,
thread=0x20214e0)
    at
/swdev/services/os/ecos-Dec2001/packages/kernel/current/src/sched/sched.
cxx:684
#4  0x0107b6af in Cyg_Mutex::lock (this=0x20616c0)
    at
/swdev/services/os/ecos-Dec2001/packages/kernel/current/src/sync/mutex.c
xx:248
#5  0x0107791a in cyg_mutex_lock (mutex=0x20616c0)
    at
/swdev/services/os/ecos-Dec2001/packages/kernel/current/src/common/kapi.
cxx:900
#6  0x010824ca in cyg_splsoftnet ()
    at
/swdev/services/os/ecos-Dec2001/packages/net/tcpip/current/src/ecos/sync
h.c:154


This is the current running thread - which is the idle thread

$22 = {<Cyg_HardwareThread> = {stack_base = 33617024, stack_size =
16320, stack_limit = 33617024, 
    stack_ptr = 33631092, entry_point = 0x1078b20
<idle_thread_main(unsigned int)>, 
    entry_data = 0}, <Cyg_SchedThread> =
{<Cyg_SchedThread_Implementation> = {<Cyg_DNode_T<Cyg_Thread>> =
{<Cyg_DNode> = {next = 0x200f3b8, prev = 0x200f3b8}, <No data fields>},
priority = 31, 
      timeslice_enabled = 1}, queue = 0x0, asr_inhibit = 0, asr_pending
= 0, 
    static asr = 0x107d110 <posix_asr(unsigned int)>, asr_data = 0,
mutex_count = 1, 
    original_priority = 0, priority_inherited = 0}, state = 0,
suspend_count = 0, wakeup_count = 0, 
  wait_info = 0, unique_id = 1, static exception_control = {
    exception_handler = 0x107efc0 <cyg_posix_exception_handler(unsigned
int, int, unsigned int)>, 
    exception_data = 0}, timer = {<Cyg_Alarm> =
{<Cyg_DNode_T<Cyg_Alarm>> = {<Cyg_DNode> = {
          next = 0x200f3f8, prev = 0x200f3f8}, <No data fields>},
counter = 0x206a340, 
      alarm = 0x1078a40 <Cyg_ThreadTimer::alarm(Cyg_Alarm *, unsigned
int)>, data = 33616888, 
      trigger = 0, interval = 0, enabled = 0}, thread = 0x200f3a0},
sleep_reason = NONE, 
  wake_reason = NONE, thread_data = {0, 0, 2, 0, 0, 0}, static
thread_data_map = 48, 
  name = 0x10d79c4 "Idle Thread", list_next = 0x2069800, static
thread_list = 0x207ecc8}



Tracy Jones
Stratalight Communications
tracy@stratalight.com
408-961-6278


--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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